|
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 |
Modulexpert Smarty n00b
Joined: 11 Sep 2014 Posts: 1
|
Posted: Thu Sep 11, 2014 8:51 am Post subject: Funktion _smarty_include |
|
|
Hallo!
Ich möchte gerne von V2.6 auf V3.1 updaten. derzeit hänge ich leider fest.
Ich habe folgenden Code(v2.6) in der Extendclass:
Code: |
function _smarty_include($params)
{
$params['smarty_include_tpl_file'] = $this->getEditFile($params['smarty_include_tpl_file']);
return parent::_smarty_include($params);
}
|
Da es nun in der V3 diese funktion und auch der Parameter nicht mehr vorhanden sind ,hoffe ich das mir hier einer helfen kann wie ich diese Funktion in V3 erstellen muß.
Ich bedanke im im vorraus für die Hilfe
mfg
Thorsten |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
Posted: Sat Sep 13, 2014 8:45 pm Post subject: |
|
|
Smarty 3.1 hat vollig andere interne structuren. Ich sehe nur die Verwendung eines Modifier als Lösung.
Code: | $smarty->$smarty->registerPlugin("modifier","EditFile",array($this, 'getEditFile')); |
und in den Templates dann
Code: | {include file='foo.tpl'|EditFile} |
|
|
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
|