Skip to main content

Timeline for get controller name by page url

Current License: CC BY-SA 3.0

12 events
when toggle format what by license comment
Dec 16, 2017 at 10:15 comment added Abdul Above code working only ref url format : example.com/customer/account/index/
Dec 16, 2017 at 10:12 comment added Abdul url rewrite cases above code not working
Dec 16, 2017 at 10:11 comment added Vaibhav Ahalpara example.com/home-decor/decorative-accents.html
Dec 16, 2017 at 10:09 comment added Abdul can u share print_r(Mage::app()->getRequest()->getServer('HTTP_REFERER')); result me? and are using which controller file?
Dec 16, 2017 at 10:07 comment added Vaibhav Ahalpara i used same code that mention in above answer. And test with category page , product page and cms page
Dec 16, 2017 at 10:05 comment added Abdul @VaibhavAhalpara can u share you code ?
Dec 16, 2017 at 10:05 comment added pooja hi @VaibhavAhalpara can you please post your code here.
Dec 16, 2017 at 10:02 comment added Vaibhav Ahalpara I am also trying to previous page controller's name but did not get it. By using above code, I just get url key. But did not get controller name. How can i get controller name
Dec 16, 2017 at 9:54 comment added Abdul @pooja wellcome :)
Dec 16, 2017 at 9:53 vote accept pooja
Dec 16, 2017 at 9:41 comment added pooja ok i will try @abdul and let you know
Dec 16, 2017 at 9:39 history answered Abdul CC BY-SA 3.0