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

plugins_dir | Path Problem ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
felic
Smarty Rookie


Joined: 22 Jul 2003
Posts: 9

PostPosted: Tue Jul 22, 2003 1:15 pm    Post subject: plugins_dir | Path Problem ? Reply with quote

Hi all,

this of course works (inside a class function):

Code:
$this->plugin_dir = ''.$_SERVER['DOCUMENT_ROOT'].'/plugins';


This doesn`t... :
Code:
$this->plugin_dir = ''.$_SERVER['DOCUMENT_ROOT'].'/my_plugins';


so, just a simply try to define a different (existing with excactly the same rights than the original Wink) plugins_dir... (it doesn`t matter if i rename the folder without underscores or not)

But always i get the "...is not implemented..." Error. My fault or is it not possible (i dont think so) to define a different plugins_dir ? I even tried it as an Array, but, you reckon what happened Confused

The hole Application i build works fine - until i try to change the plugins_dir Directories...

May someone can give me a clue ? Many thanks in advance.
greets
felic
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Tue Jul 22, 2003 6:25 pm    Post subject: Reply with quote

Can you post the VALUE of

$this->plugin_dir = ''.$_SERVER['DOCUMENT_ROOT'].'/my_plugins';

?
Back to top
View user's profile Send private message
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Tue Jul 22, 2003 8:30 pm    Post subject: Reply with quote

Actually, it should be:

$this->plugins_dir

The reason it was working in the first case is that since you weren't setting the plugins_dir value, Smarty was using the default. In the second case, it continued to use the default since you set the wrong variable.

HTH
Back to top
View user's profile Send private message
felic
Smarty Rookie


Joined: 22 Jul 2003
Posts: 9

PostPosted: Tue Jul 22, 2003 8:35 pm    Post subject: Reply with quote

Hi,

a print_r shows up the correct path. (With or without a ending slash)

[plugin_dir] => /Library/WebServer/Documents/temp/creatics/lib/Smarty/my_plugins/

smarty doesn`t recognize the giving path either... when i empty the standard dir (plugins) leaving all the (standard) plugs in my new dir, smarty failes with the same error ("...is not implemented...."),- just like i am not be able to define the plugins_dir path in anyway. Same procedere at the other dirs are all o.k and works fine...

greets
felic
Back to top
View user's profile Send private message
felic
Smarty Rookie


Joined: 22 Jul 2003
Posts: 9

PostPosted: Tue Jul 22, 2003 8:38 pm    Post subject: Reply with quote

oh f..., yeah, you right. Dumb me Rolling Eyes

I thing i should leave my desk for today Wink

Many thanks for your help.

bye
felic
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP