Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [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

Posty w temacie
- fiasko   [PHP] Smarty 3.0.7   23.08.2011, 17:04:11
- - iksde   byc moze to literowka a byc moze twoj blad ale nie...   23.08.2011, 17:12:39


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:44