Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> mod_rewrite, cos działać nie chce
BugsBunny
post
Post #1





Grupa: Zarejestrowani
Postów: 206
Pomógł: 4
Dołączył: 2.04.2005

Ostrzeżenie: (0%)
-----


tak wyglada mój plik .htaccess

Kod
RewriteEngine on

RewriteBase /blog/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^login$ index.php?p=login [L]


w index.tpl w sekcji head mam wpisane

  1. <base href="http://localhost/blog/">


kiedy wywołuje stronę

http://localhost/blog/login

nie mam grafiki i nie ładuje mi klas.

wyswietla się
Kod
Call to a member function IsLogIn() on a non-object


tak wyglada początek pliku login.php
  1. <?php
  2. if(!$auth->IsLogIn())
  3. {
  4. ?>


Strona działa tak:
index.php pobiera zmienna $_GET['p] i wg niej includuje plik PHP

na początku index.php jest
  1. <?php
  2. require_once 'inc/settings.php';
  3. require_once 'class/class.authorization.php';
  4. $auth = new authorization();
  5.  
  6. if($auth->IsLogIn())
  7. {
  8. // reszta kodu
  9. ?>


Wynikało by na to, że nie includuje mi pliku class.authorization.php sadsmiley02.gif

Ten post edytował BugsBunny 2.08.2007, 21:47:40
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 04:45