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

Search found 6 matches
Smarty Forum Index
Author Message
  Topic: Application::$plugins_dir has no effect
ivica

Replies: 5
Views: 20763

PostForum: Installation and Setup   Posted: Thu Jul 14, 2016 4:11 pm   Subject: plugins
Work!!! Finaly, this code work:

$this->setPluginsDir(array(
SMARTY_DIR .'plugins',
PRESENTATION_DIR . 'smarty_plugins',
));

Thanks all of you very much!
  Topic: Application::$plugins_dir has no effect
ivica

Replies: 5
Views: 20763

PostForum: Installation and Setup   Posted: Wed Jul 13, 2016 9:12 am   Subject: Application::$plugins_dir has no effect
Nobody know, what is your "Application" supposed to mean.
There's no such word used anywhere in the Smarty source code.

My code is:
require_once SMARTY_DIR . 'Smarty.class.php';
class ...
  Topic: Application::$plugins_dir has no effect
ivica

Replies: 5
Views: 20763

PostForum: Installation and Setup   Posted: Tue Jul 12, 2016 8:40 pm   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 . 'plu ...
  Topic: Plugin install
ivica

Replies: 3
Views: 10077

PostForum: General   Posted: Mon Jul 11, 2016 8:46 pm   Subject: Plugin install
As with Smarty 3.1 you can't access the directory properties of the Smarty object directly. You must use corresponding setter methodes like setPluginsDir() or addPluginsDir().

So $smarty->addPl ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
ivica

Replies: 33
Views: 51789

PostForum: General   Posted: Mon Jul 11, 2016 3:56 pm   Subject: Re: Smarty error: unable to read resource: "store_front
Hi,

I am new to the book and I seem to be having this problem on chapter 3, it appears that here might be something wrong my setup or config.php that reads:

<?php
// SITE ROOT contains the f ...
  Topic: Beginning PHP and MySQL E-commerce Plugin Error
ivica

Replies: 33
Views: 51789

PostForum: General   Posted: Mon Jul 11, 2016 3:54 pm   Subject: Beginning PHP and MySQL E-commerce Plugin Error
Not correct:
define('SMARTY_DIR', SITE_ROOT . '/libs/smarty/');
Must be:
define('SMARTY_DIR', SITE_ROOT . '/libs/smarty/libs');
because Smarty.class.php is in:
define('SMARTY_DIR', SITE_ROOT . ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP