Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.5

Bug #17972 Smarty.php Renderer uses Depracated "register_function" with Smarty 3.xx
Submitted: 2010-10-19 06:40 UTC
From: rex_schrader Assigned:
Status: Open Package: Structures_DataGrid_Renderer_Smarty (version 0.1.5)
PHP Version: 5.2.6 OS: Windows 7
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 27 - 15 = ?

 
 [2010-10-19 06:40 UTC] rex_schrader (Rex Schrader)
Description: ------------ I am using the Smarty renderer with Smarty 3.0rc3. I recieved a "Notice" that "register_function" was deprecated and should not be used. A quick internet search gave me this note: http://www.smarty.net/forums/viewtopic.php?t=16807&sid=8b48230d97c007df6548d7a90a81925f The new function should be <smarty object>-register->templateFunction() Line 354/5 of Smarty.php should be: $this->_smarty->register->templateFunction("{$p}getPaging", array(&$this, 'smartyGetPaging')); or include a method for detecting Smarty 2 vs. Smart 3 and calling the right function Test script: --------------- ANY use of this renderer with Smarty 3.x should produce this Notice. Expected result: ---------------- No Notice.

Comments

 [2010-12-29 09:12 UTC] sfgroups (sunny ram)
I replaced, this line $this->_smarty->register_function("{$p}getPaging", array(&$this, 'smartyGetPaging')); with $this->_smarty->registerPlugin("function", "{$p}getPaging", array(&$this, 'smartyGetPaging')); Now its working. Thanks -SR