|
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 |
hardprod Smarty n00b
Joined: 22 Feb 2010 Posts: 1
|
Posted: Mon Feb 22, 2010 5:42 pm Post subject: what about Zend Framework with Smarty 3? |
|
|
Smarty 2x with Zend Framework works great for me.
Smarty 3 ? not really...
I think Smarty 3 filename convention coliding with Zend Autoloader.
Smarty including smarty_internal_data.php, Zend try to include the file Smarty/Internal/Data.php.
Code: | Warning: Zend_Loader::include(Smarty/Internal/Data.php) [zend-loader.include]: failed to open stream: No such file or directory in /var/www/mysite/library/Zend/Loader.php on line 83
Warning: Zend_Loader::include() [function.include]: Failed opening 'Smarty/Internal/Data.php' for inclusion (include_path='../library:.:/usr/share/php:/usr/share/php/PEAR:../application/models/:../application/forms/') in /var/www/mysite/library/Zend/Loader.php on line 83
Warning: Zend_Loader::include(Smarty/Internal/Template.php) [zend-loader.include]: failed to open stream: No such file or directory in /var/www/mysite/library/Zend/Loader.php on line 83 |
... and many more...
My way to integrate Smarty and Zend Framework
Code: |
require_once 'Smarty/Smarty.class.php';
class My_View_Smarty extends Zend_View
{
protected $_smarty;
public function __construct()
{
$this->_smarty = new Smarty;
}
}
|
|
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Dec 03, 2010 9:59 pm Post subject: |
|
|
old post but an answer: Smarty's autoloader may be conflicting, see the README that comes with Smarty 3. We are still getting that part written up for the docs. |
|
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
|