hi
i have a new module
this is created from an old standalone application writed in php used smarty
my problem is that now i must modify now all the path, submits ...
because now it is a module not standalone it is integrated in cmsms and all the path are changed
so that the solution maybe it is to set the root dir i dont know in which way to the module dir
maybe
any idea to solve this path problems?
another question - where it is saved the current module path?
thanks
module path problems
module path problems
Last edited by pumuklee on Wed Apr 11, 2007 1:55 pm, edited 1 time in total.
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: module path problems
Here's some code from FrontEndUsers that may help you:
Code: Select all
function myModulePath()
{
$str = "/modules/".$this->GetName()."/";
return $str;
}
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: module path problems
hi
yes you have right
and i found also that $this object contain much more info
it can be show if we type something like this
print_r($this);
bye
yes you have right
and i found also that $this object contain much more info
it can be show if we type something like this
print_r($this);
bye