Re: [SMARTY] smarty does not work on second page
| From: | michael young | Date: | Mon, 24 May 2004 15:34:07 +0000 |
| Subject: | Re: [SMARTY] smarty does not work on second page | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11404@lists.php.net to get a copy of this message | ||
OK
the error is gone
I did
require('smarty.class.php');
$smarty = new Smarty;
Do I need to do both on each page I'll be using smarty on?
Mrak wrote:
have you instantiated an object? michael young wrote:Hi,My problem is this. In index.php, smarty seems to work fine.but then a.php runs and smarty gives this error: Fatal error: Call to a member function assign() on a non-object in /path/to/files/a.php on line 14 I've tryed in a.php: include smarty.class.php it does nothing. what am I doing wrong? thank you for your time. Michael