|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
dnszero Smarty n00b
Joined: 01 Jul 2003 Posts: 2
|
Posted: Tue Jul 01, 2003 6:25 pm Post subject: Call to undefined function: assign() |
|
|
I installed smarty and attempted the example in the manual, but I get the following eror:
Fatal error: Call to undefined function: assign() in /usr/home/guido/projects/reverse/shit.php on line 13
Here is my code:
Code: | <?php
// load Smarty library
define('SMARTY_DIR','usr/local/lib/php/smarty/');
require('/usr/local/lib/php/smarty/Smarty.class.php');
$smart = new Smarty;
$smarty->template_dir = '/usr/home/guido/projects/reverse/templates/';
$smarty->compile_dir = '/usr/home/guido/projects/reverse/templates_c/';
$smarty->config_dir = '/usr/home/guido/projects/reverse/configs/';
$smarty->cache_dir = '/usr/home/guido/projects/reverse/cache/';
$smarty->assign('name','Billy Bob');
$smarty->display('shit.tpl');
?>
|
I double checked all of the install instructions. My directories are 775 nobody:nobody. I can't seem to find any reason for the above error.
Any ideas?
Thanks. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue Jul 01, 2003 7:17 pm Post subject: |
|
|
are you kidding?
you instanciate $smart, but try to call methods of $smarty. |
|
Back to top |
|
dnszero Smarty n00b
Joined: 01 Jul 2003 Posts: 2
|
Posted: Tue Jul 01, 2003 7:31 pm Post subject: |
|
|
DOH!
Thanks, that's prolly a nicer reply than I could've managed had I seen the same thing. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|