|
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 |
bruno rotrou Smarty n00b
Joined: 29 Mar 2011 Posts: 2
|
Posted: Tue Mar 29, 2011 10:27 am Post subject: sm3 et repertoire de plugins |
|
|
slt
débutant avec smarty , j'ai un soucis concernat les plugins.
smarty semble ne pas trouver mon repertoire de plugins.
j'ai etendu la classe de smarty c'est pour ca que j'utilise $this
Code: |
$this->loadFilter('output','trimwhitespace');
|
ce plug se trouve dans le repertoire par default de smarty et pourtant j'ai l'erreur suivante :
Code: |
Fatal error: Uncaught exception 'SmartyException' with message 'outputfilter "trimwhitespace" not callable' in D:\sites_internet\wamp\www\pollenCMS_DEV\pollencms_0.6\vendors\php\smarty\sysplugins\smarty_internal_filter.php:83 Stack trace: #0 [internal function]: Smarty_Internal_Filter->loadFilter('output', 'trimwhitespace') #1 D:\sites_internet\wamp\www\pollenCMS_DEV\pollencms_0.6\vendors\php\smarty\Smarty.class.php(774): call_user_func_array(Array, Array) #2 [internal function]: Smarty->__call('loadFilter', Array) #3 D:\sites_internet\wamp\www\pollenCMS_DEV\pollencms_0.6\core\lib\pollencms.php(65): PPollenCMS->loadFilter('output', 'trimwhitespace') #4 D:\sites_internet\wamp\www\pollenCMS_DEV\pollencms_0.6\core\lib\pollencms.php(58): PPollenCMS->loadDefaultFilters() #5 D:\sites_internet\wamp\www\pollenCMS_DEV\pollencms_0.6\core\main.php(25): PPollenCMS->PPollenCms() #6 D:\sites_internet\wamp\www\pollenCMS_DEV\pollencms_0.6\index.php(33): include('D:\sites_intern...') #7 {main} thrown in D:\sites_internet\wamp\www\pollenCMS_DEV\pollencms_0.6\vendors\php\smarty\sysplugins\smarty_internal_filter.php on line 83
|
il y a surement qqchose que je zappe.
merci
A+ |
|
Back to top |
|
bruno rotrou Smarty n00b
Joined: 29 Mar 2011 Posts: 2
|
Posted: Tue Mar 29, 2011 10:38 am Post subject: repertoire defaut des plugins |
|
|
re
j'ai résolue le problème en donnant le path complet de ce répertoire
Code: |
$this->plugins_dir[] = SITE_PATH.'vendors'.SLASH.'php'.SLASH.'smarty'.SLASH.'plugins'.SLASH;
|
mais est ce normal, pour le répertoire par defaut????
merci
A+ |
|
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
|