RE:[SMARTY] Fatal error: Cannot redeclare class-got it!!!
| From: | UpFront Technology | Date: | Fri, 06 Feb 2004 00:28:11 +0000 |
| Subject: | RE:[SMARTY] Fatal error: Cannot redeclare class-got it!!! | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10930@lists.php.net to get a copy of this message | ||
I got the trick here:
http://php3.de/class-exists
if(!class_exists('some_new_class'))
{
class some_new_class extends Smarty
all other code
}
just added it to the smarty.config code...works great!!!
Hope this helps somebody.
Joe