|
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 |
ivica Smarty Rookie
Joined: 11 Jul 2016 Posts: 6
|
Posted: Tue Jul 12, 2016 8:40 pm Post subject: Application::$plugins_dir has no effect |
|
|
Smarty 3.1.29
I've tried:
$this->setPluginsDir(SMARTY_DIR . 'plugins')
->addPluginsDir(SMARTY_DIR . 'smarty_plugins');
and
$this->plugins_dir[0] = SMARTY_DIR . 'plugins';
$this->plugins_dir[1] = SMARTY_DIR . 'smarty_plugins';
and always I have had this error:
ERRNO: 8
TEXT: Indirect modification of overloaded property Application::$plugins_dir has no effect
LOCATION: C:\xampp\htdocs\tshirtshop4\presentation\application.php, line 39, at July 12, 2016, 10:36 pm
Showing backtrace:
Application.__construct() # line 16, file: C:\xampp\htdocs\tshirtshop4\index.php
Three days already trying.
Thank you in advance! |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Tue Jul 12, 2016 9:14 pm Post subject: |
|
|
Nobody know, what is your "Application" supposed to mean.
There's no such word used anywhere in the Smarty source code. |
|
Back to top |
|
elpmis Smarty Elite
Joined: 07 Jun 2007 Posts: 321
|
|
Back to top |
|
ivica Smarty Rookie
Joined: 11 Jul 2016 Posts: 6
|
Posted: Wed Jul 13, 2016 9:12 am Post subject: Application::$plugins_dir has no effect |
|
|
AnrDaemon wrote: | Nobody know, what is your "Application" supposed to mean.
There's no such word used anywhere in the Smarty source code. |
My code is:
Code: | require_once SMARTY_DIR . 'Smarty.class.php';
class Application extends Smarty
{
public function __construct()
{
parent::__construct();
|
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
ivica Smarty Rookie
Joined: 11 Jul 2016 Posts: 6
|
Posted: Thu Jul 14, 2016 4:11 pm Post subject: plugins |
|
|
Work!!! Finaly, this code work:
$this->setPluginsDir(array(
SMARTY_DIR .'plugins',
PRESENTATION_DIR . 'smarty_plugins',
));
Thanks all of you very much! |
|
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
|