Wednesday, June 30, 2010

image and a tag problem without mod_rewrite

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: