Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 146

Denotes questions related to the routing mechanism of Magento

6 votes
Accepted

Magento Core Routes

You can get the list of routes from the config like this: Mage::getConfig()->getNode('frontend/routers'); //for frontend Mage::getConfig()->getNode('admin/routers');//for admin These will return an …
Marius's user avatar
  • 199k
2 votes

prefix/postfix route with database value

That value is generated from the names of the module, controller and action and a form_key that is different from session to session. You can get the correct url like this: Mage::helper('adminhtml')- …
Marius's user avatar
  • 199k
3 votes
Accepted

What is the purpose of Mage::getUrl?

Mage::getUrl provides one single point for generating urls. Magento uses everywhere absolute urls. This way you avoid issues when you have your app installed in a subfolder (and not only). Using relat …
Marius's user avatar
  • 199k
1 vote
Accepted

routing before button is clicked

Try setting the onclick like this: $url = Mage::helper("adminhtml")->getUrl("/label/setlabel"); ... "onclick" => "popWin('.$url.')" I hope I got the quotes right.
Marius's user avatar
  • 199k
7 votes
Accepted

Disable admin or frontend route

I don't think there is a way to do this without removing the routers tag from the config.xml or adding some observers on the predispatch event that will redirect you to a 404 page. But I may be wrong. …
Marius's user avatar
  • 199k
4 votes

Using __call in a controller

[Edit] It seams you cannot use __call in controllers starting from version CE - 1.8 (and EE 1.13) it was possible up to 1.7 because of the method Mage_Core_Controller_Varien_Action::hasAction. in 1.7 …
Marius's user avatar
  • 199k
0 votes
Accepted

backend controller, magento routes to start page when already logged in as admin

When you are logged in can call the page http://mymagentosite.com/index.php/admin/custom/index you get redirected to the dashboard because your secret key is missing. Notice that all the urls in the b …
Marius's user avatar
  • 199k
3 votes
Accepted

How to override a bad extensions controllers?

Try this: <admin> <routers> <advancedstock> <!-- put there the router key of the original module --> <args> <modules> <Vendor_AdvancedStock …
Marius's user avatar
  • 199k
16 votes
Accepted

Reserved keyword in controller action - Magento 2

There are some words that you cannot use for class names. Basically the reserved php words like new, public, static, ... To overcome this and still allow these words in the urls Magento adds the su …
Marius's user avatar
  • 199k
1 vote

Magento 2: How to define Scope For Router.php

You only need a custom router.php file if you plan to use custom urls. I mean something else than module/controller/action. If you don't need urls like mymodule/test.html then you don't need that rout …
Marius's user avatar
  • 199k
1 vote
Accepted

How does routing work for product pages?

Te product urls are mapped to a module/controller/action url in the table url_rewrite.
Marius's user avatar
  • 199k
0 votes
Accepted

on custom button click magento redirects to admin start page

All admin POST requests require a form key that is session dependent. If that form key is not set then you get redirected to the dashboard or any other page that you set as default page. Try adding th …
Marius's user avatar
  • 199k
1 vote
Accepted

route shows user login page title

This is something I've seen on Magento 1 before. I have a hunch that you have a login form displayed in every page. Something like a popup that appears when you click on the 'login' button, or somethi …
Marius's user avatar
  • 199k