Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Błędne wywołanie konstruktora.
acztery
post
Post #1





Grupa: Zarejestrowani
Postów: 945
Pomógł: 7
Dołączył: 15.03.2005
Skąd: katowice

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


mam taki kod:

  1. <?php
  2. class FWSmarty extends Smarty
  3. {
  4. public function __construct()
  5. {
  6. $this->template_dir = '_t/'.SMARTY_CAT. '/'. SMARTY_LANG. '/tpl';
  7. $this->compile_dir = SMARTY_COMPILE_DIR;
  8. //$this->plugins_dir[] = 'ey_plugins';
  9. parent::Smarty();
  10. return;
  11. }
  12.  
  13. }
  14. ?>


na localhost dziala a na home.pl daje taki komunikat:

Cytat
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /cabin_/_i/FWSmarty.class.php on line 7


Ten post edytował seaquest 18.05.2006, 20:22:50
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: 19.08.2025 - 14:45