Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP] Smarty 3.0.7, problem z assing() . O co biega ?
fiasko
post
Post #1





Grupa: Zarejestrowani
Postów: 243
Pomógł: 1
Dołączył: 1.06.2010

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


  1. <?
  2. require_once("libs/Smarty.class.php");
  3.  
  4. $smarty = new Smarty();
  5. $smarty -> template_dir = "templates/" ; //katalog szablonów
  6. $smarty -> compile_dir = 'templates_c/' ; // katalog skompilowanych szablonów
  7. $smarty -> cache_dir = 'cache/';
  8.  
  9. $smarty -> assign('title' , 'To jest') ;
  10. $smarty -> assign('content' , 'To jest') ;
  11. $smarty -> display('index.tpl');
  12. ?>



Cytat
Fatal error: Uncaught exception 'SmartyException' with message 'Call of unknown function 'assign'.' in /home/projekty53/domains/projekty53.domena.pl/public_html/smarty/libs/Smarty.class.php:788 Stack trace: #0 /home/projekty53/domains/projekty53.domena.pl/public_html/smarty/index.php(10): Smarty->__call('assign', Array) #1 /home/projekty53/domains/projekty53.domena.pl/public_html/smarty/index.php(10): Smarty->assign('content', 'To jest') #2 {main} thrown in /home/projekty53/domains/projekty53.domena.pl/public_html/smarty/libs/Smarty.class.php on line 788


assign() - o co chodzi, że ta metoda się nie wywołuje ? Gdzie mam błąd ?

Ten post edytował fiasko 23.08.2011, 17:14:09
Go to the top of the page
+Quote Post
-iksde-
post
Post #2





Goście







byc moze to literowka a byc moze twoj blad ale nie"assing" tylko "assign"
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 23.08.2025 - 05:23