|
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 |
pierre Smarty n00b
Joined: 05 May 2003 Posts: 3
|
Posted: Mon May 05, 2003 7:47 am Post subject: Error while trying to upgrade from 2.3.0 to 2.4.2/2.5 |
|
|
It sais _config_load not found (or somethin' like that --- can't see it right now).
I just copied the three php and one tpl file to the old location.
With the old version it still works ... didn't change anything to my extended class also!
Please help. _________________ I love scripting. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon May 05, 2003 7:55 am Post subject: |
|
|
if you upgrade, you have to upgrade the plugins-directory also. in this case config_load was taken out of the smarty-core to be a stand-alone plugin.
there may have been other changes in the mean-time that may affect your application. have a look into the file NEWS of your smarty-distribution. it contains a list of changes for each version. read over it and reflect if any of these changes may affect you. |
|
Back to top |
|
pierre Smarty n00b
Joined: 05 May 2003 Posts: 3
|
Posted: Mon May 05, 2003 8:23 am Post subject: I don't want to have all the plugins installed which one has |
|
|
I have text searched all plugins files for config_load(no case ses) and didn't find it.
I can't test it right now.
Which one has the functionality (i searched v2.4.2 for it).
thx in advance _________________ I love scripting. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon May 05, 2003 8:42 am Post subject: |
|
|
ah, config_load was taken out of the after *after* 2.5.0. my fault, sorry.
did you cleanup the templates_c- and maybe the cache-directory after upgrading? it is likely that your old compiled templates don't work with the new version. |
|
Back to top |
|
pierre Smarty n00b
Joined: 05 May 2003 Posts: 3
|
Posted: Tue May 06, 2003 6:11 am Post subject: RE: 2.3.x upgrade to >=2.4.x |
|
|
thx for the info ... after i emptied the templates_c folder it worked ...
well at least it didn't show me any error ... but ...
i load my config files in the following manner:
{config_load file="$script_name.conf" section="$script_name"}
now that worked on 2.3 but it sure doesn't on higher version?
especcially the file parameter. I know that the problem is the dot!
I don't want to change all my template files.
The $script_name is an assigned parameter which holds just hte name of the file (without php).
thx in advance
PS. Sorry for my english, i'm from Slovenia. _________________ I love scripting. |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue May 06, 2003 7:27 am Post subject: |
|
|
this should work with 2.5.0. the dot is only a problem if you want it to be a an array-index-delimiter.
{config_load file="$script_name.conf"} works as you want.
if $script_name was an array and conf was a key you would have to write {config_load file="`$config_load.conf`"} in 2.5.0 .
it doesn't work as you want in 2.4.2, though. there you would have to change your templates and use the cat-modifier or sth. like that.
HTH
messju |
|
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
|