But it is not solving my prob. For that I have to change the whole code, all the places I have used that. Cakephp should have any fix for this issue. Anyone can help me?
On Jun 30, 9:35 pm, Shaz <[email protected]> wrote: > You'll have to use $_SERVER[] to get your path: > > http://php.net/manual/en/reserved.variables.server.php > > On Jun 30, 2:45 pm, kaushik <[email protected]> wrote: > > > I have developed my site in a server where mod_rewrite and .httaccess > > are available. I used '$this->webroot' variable for a tag and img path > > extensively. But I have to make the live in a server where mod_rewrite > > and .httaccess are not available and the site will be uploaded in a > > subfolder (not in the root folder). Now I am facing very problem in a > > tag path. Because '$this-webroot' is returning 'http://www.mysite.com/ > > subfolder/app/webroot/'. It is ok for the img and other supporting > > fiilepath, it is not working for a tag path, because we need > > "http://www.mysite.com/subfolder/index.php/" from '$this->webroot", so that > > the a tag links looks like "http://www.mysite.com/subfolder/index.php/ > > controller_name/view_name/param/". What is fix for this prob? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
