Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Integrating Smarty with cakePHP

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
Neha
Smarty n00b


Joined: 08 Feb 2012
Posts: 1

PostPosted: Wed Feb 08, 2012 11:30 am    Post subject: Integrating Smarty with cakePHP Reply with quote

Hi All,
Do anyone aware how to integrate smarty with cakephp?
Actually i have added smarty.php in views folder and smarty dowloaded folder is in app/vendors. Also i have created a view and controller. Now when i run program i am getting error as below:

Notice (8): Undefined property: CakeErrorController::$pageTitle [CORE\cake\libs\view\view.php, line 309]
Notice (8): Undefined property: SmartyView::$webservices [APP\views\smarty.php, line 174]
Notice (8): Undefined property: SmartyView::$webservices [APP\views\smarty.php, line 175]
Notice (8): Undefined property: Configure::$viewPaths [APP\views\smarty.php, line 140]
Warning (2): Invalid argument supplied for foreach() [APP\views\smarty.php, line 140]
Notice (8): Undefined property: Configure::$viewPaths [APP\views\smarty.php, line 148]
Warning (2): Invalid argument supplied for foreach() [APP\views\smarty.php, line 148] Fatal error: Uncaught exception 'SmartyException' with message 'Call of unknown method 'assign_by_ref'.' in C:\inetpub\wwwroot\SBCSS\app\vendors\Smarty\libs\sysplugins\smarty_internal_templatebase.php:806 Stack trace: #0 C:\inetpub\wwwroot\SBCSS\app\views\smarty.php(102): Smarty_Internal_TemplateBase->__call('assign_by_ref', Array) #1 C:\inetpub\wwwroot\SBCSS\app\views\smarty.php(102): Smarty->assign_by_ref('session', Object(SessionHelper)) #2 C:\inetpub\wwwroot\SBCSS\cake\libs\view\view.php(498): SmartyView->_render('C:\inetpub\wwwr...', Array, false) #3 C:\inetpub\wwwroot\SBCSS\cake\libs\view\view.php(429): View->renderLayout('
Missing Dat...', 'default') #4 C:\inetpub\wwwroot\SBCSS\cake\libs\controller\controller.php(911): View->render('missingTable', NULL, NULL) #5 C:\inetpub\wwwroot\SBCSS\cake\libs\error.php(396): Controller->render('missingTable') #6 C:\inetpub\wwwroot\SBCSS\cake\libs\error.php(237): ErrorHandler->_outputMessage('missingTable') #7 C:\inetpub\wwwroot\SBCSS\cake\libs\object.php(125): ErrorHandler-> in C:\inetpub\wwwroot\SBCSS\app\vendors
\Smarty\libs\sysplugins\smarty_internal_templatebase.php on line 806


PLEASE HELP.. IT'S VERY URGENT...


Thanks,
Neha Toro
Back to top
View user's profile Send private message Send e-mail
Margodth
Smarty Rookie


Joined: 28 Mar 2004
Posts: 11

PostPosted: Fri Jun 21, 2013 4:18 pm    Post subject: Reply with quote

I hope someone can gave a hint on how to do this. I moved to cakephp recently and I'm a smarty user since 2004. I love smarty and can't wait to use it on cake.

Thanks
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Sat Jun 22, 2013 10:43 am    Post subject: Reply with quote

Have a look at https://github.com/news2u/cakephp-smartyview oer just google "cakephp smarty" to find something.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP