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

Smarty Upgrade

 
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
ananthbtechit
Smarty n00b


Joined: 25 Mar 2016
Posts: 3

PostPosted: Fri Mar 25, 2016 10:04 am    Post subject: Smarty Upgrade Reply with quote

I am using the smarty 2.6.2 for my application.Now i want to upgrade to 3.1.27.But lot of error has comes .Pls help someone help me.
Back to top
View user's profile Send private message Send e-mail
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Fri Mar 25, 2016 12:24 pm    Post subject: Reply with quote

You paying?
Back to top
View user's profile Send private message
jbatres
Smarty n00b


Joined: 05 Apr 2016
Posts: 3

PostPosted: Tue Apr 05, 2016 6:57 pm    Post subject: Smarty 3 Custom Install Reply with quote

I have a couple of scripts running Smarty 2 and I want to upgrade them to Smarty 3 from scratch without using the backward compatibility script, and yes, I'am paying Very Happy
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Apr 05, 2016 7:02 pm    Post subject: Reply with quote

If your templates are not using {php} tag, the conversion should be straightforward.
In fact, for some of my projects the conversion was "drop Smarty3 over Smarty2, call it a day".
Back to top
View user's profile Send private message
jbatres
Smarty n00b


Joined: 05 Apr 2016
Posts: 3

PostPosted: Tue Apr 05, 2016 7:11 pm    Post subject: Reply with quote

I just started playing around with Smarty 3, but I can't figure out the initial configuration as my scripts are running smarty 2 and the include file or lines are different, that is way I was looking for someone that could just go in there and setup Smarty 3 and make my scripts work with it.
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Apr 05, 2016 7:16 pm    Post subject: Reply with quote

I don't understand. File name for Smarty class is the same for Smarty2 and Smarty3, so do its location.
The rest is up to the Smarty's own loader.
Your code should just work, unless you have a bad case of mixup.
Back to top
View user's profile Send private message
elpmis
Smarty Elite


Joined: 07 Jun 2007
Posts: 321

PostPosted: Tue Apr 05, 2016 8:18 pm    Post subject: Reply with quote

jbatres wrote:
I just started playing around with Smarty 3, but I can't figure out the initial configuration as my scripts are running smarty 2 and the include file or lines are different, that is way I was looking for someone that could just go in there and setup Smarty 3 and make my scripts work with it.


For a smart move to Smarty3 you could use SmartyBC class (uses Smarty3 but supports some elements of Smarty2 too)
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Tue Apr 05, 2016 10:15 pm    Post subject: Reply with quote

elpmis wrote:
For a smart move to Smarty3 you could use SmartyBC class
That should be the last resort action, if all else fails. IMO.
Back to top
View user's profile Send private message
jbatres
Smarty n00b


Joined: 05 Apr 2016
Posts: 3

PostPosted: Wed Apr 06, 2016 2:11 am    Post subject: Reply with quote

Thank you for your suggestions, I think I'll try a complete new installation of Smarty 3. If the file structure is similar, I should be able to get this working. I will keep you guys posted if I run into trouble.

Thanks again,
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Wed Apr 06, 2016 3:11 am    Post subject: Reply with quote

jbatres wrote:
Thank you for your suggestions, I think I'll try a complete new installation of Smarty 3. If the file structure is similar, I should be able to get this working. I will keep you guys posted if I run into trouble.

Thanks again,

While directory structure is similar, I suggest reviewing the recommended loading practice for Smarty3 to make your life easier.
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