Magento - use pretty URL rather than query string params -
i using querystring params load video media in template file, , url looks this:
http://mysite.com/?step=5&vid=1
the way map url template file standard way in cms, ie, in cms pages add url key 'steps' , route in /var/www/simplesteps/site/src/app/code/local/mage/page/etc/config.xml
maps template .phtml
file in /template/page/
i use urls without querystring params, like:
http://mysite.com/step5/vid1
, or http://mysite.com/site/5/vid/1
whichever structure not matter parse request myself params inside template file.
how can achieve url can still through same template file?
if use magento, , standard controller/action path thing, can achieve :
http://www.mysite.com/module/controller/action/param1/value/param2/value
ex. http://www.mysite.com/company/video/view/step/5/video/1
then in controller function, can retrieve these params $_get value :
$this->getrequest()->getparam('step'); or $this->getrequest()->getparam('video');
Comments
Post a Comment