Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

smartypaginate php7 constructor

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
thiebo
Smarty Pro


Joined: 16 Jan 2005
Posts: 144
Location: Paris

PostPosted: Mon Dec 14, 2015 10:05 am    Post subject: smartypaginate php7 constructor Reply with quote

Hi,

I just updated to php7 and I got this error message on a page using smarty paginate :

Quote:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SmartyPaginate has a deprecated constructor in /Library/WebServer/Documents/messources/SmartyPaginate.class.php on line 29


The only thing I did was changing

Code:

class SmartyPaginate {

    /**
     * Class Constructor
     */
    function SmartyPaginate() { }


to this :

Code:

class SmartyPaginate {

    /**
     * Class Constructor
     */
    function __construct() { }



Seems to work fine.
Back to top
View user's profile Send private message Visit poster's website
elpmis
Smarty Elite


Joined: 07 Jun 2007
Posts: 320

PostPosted: Mon Dec 14, 2015 2:05 pm    Post subject: Reply with quote

Thx for your advice!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons 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