How to get Controller, Module, Action & Router Name in Magento
In most of the case you need to know
the name of controller or module in order to debug. Simple one line code to get
these.
1. Get Controller Name In Template
Files:
$this->getRequest()->getControllerName();
2. Get Action Name In Template
Files:
$this->getRequest()->getActionName(); //the function inside the controller
3. Get Router Name In Template
Files:
$this->getRequest()->getRouteName();
Labels:
Magento
Change Base url in magento using database.
How to change Unsecure “base url” and Secure “Base url” In magento
using databse.
1.
Open Database and find “core_config_data”
table. In this table find “web/unsecure/base_url” and
“web/secure/base_url” under “Path” column.
2.
Under value column change your desire url.
3.
Save data
Finsish
Labels:
Magento
Subscribe to:
Posts (Atom)