Page 1 of 1

module path problems

Posted: Wed Apr 11, 2007 1:26 pm
by pumuklee
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

Re: module path problems

Posted: Wed Apr 11, 2007 1:33 pm
by calguy1000
Here's some code from FrontEndUsers that may help you:

Code: Select all

function myModulePath()
{
    $str = "/modules/".$this->GetName()."/";
    return $str;
}

Re: module path problems

Posted: Tue Apr 17, 2007 12:01 pm
by pumuklee
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