|
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 |
felic Smarty Rookie
Joined: 22 Jul 2003 Posts: 9
|
Posted: Tue Jul 22, 2003 1:15 pm Post subject: plugins_dir | Path Problem ? |
|
|
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 ) 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
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Jul 22, 2003 6:25 pm Post subject: |
|
|
Can you post the VALUE of
$this->plugin_dir = ''.$_SERVER['DOCUMENT_ROOT'].'/my_plugins';
? |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Jul 22, 2003 8:30 pm Post subject: |
|
|
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 |
|
felic Smarty Rookie
Joined: 22 Jul 2003 Posts: 9
|
Posted: Tue Jul 22, 2003 8:35 pm Post subject: |
|
|
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 |
|
felic Smarty Rookie
Joined: 22 Jul 2003 Posts: 9
|
Posted: Tue Jul 22, 2003 8:38 pm Post subject: |
|
|
oh f..., yeah, you right. Dumb me
I thing i should leave my desk for today
Many thanks for your help.
bye
felic |
|
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
|