I am following Alan Storms documentation to add a custom tab to accounts page but unfortunately I am running into a hiccup. I am not able to route and load my controller when I click on my custom link tab within accounts. I can definitely add the custom tab but routing the url once I click on it is not doing anything. Running version


<?xml version="1.0"?>
        <brandster_customaccount module="Brandster_CustomAccount">


<?xml version="1.0"?>
    <reference name="customer_account_navigation">
      <action method="addLink">
        <label>Terms &amp; Conditions</label>
    <update handle="customer_account" />


class Brandster_CustomAccount_IndexController extends Mage_Core_Controller_Front_Action {
public function preDispatch()
    $action = $this->getRequest()->getActionName();
    $loginUrl = Mage::helper('customer')->getLoginUrl();

    if (!Mage::getSingleton('customer/session')->authenticate($this, $loginUrl)) {
      $this->setFlag('', self::FLAG_NO_DISPATCH, true);


class Brandster_CustomAccount_Helper_Data extends Mage_Core_Helper_Abstract


1 Answer 1


Your code is actually fine, you simply miss an indexAction() method in your controller. Just add

public function indexAction()

to app/code/community/Brandster/CustomAccount/controllers/IndexController.php. Please note that the folder should be named controllers and not Controllers, otherwise Magento won't find your class.

  • WOW.. thanks for catching those two errors, I have corrected it as you stated but still no success rendering I get the 404 page with an error in the url errors/report.php?id=1011755426413&skin=default
    – Lugana
    Commented Jul 13, 2016 at 20:11
  • You can find the details of the error under var/report/1011755426413
    – fmrng
    Commented Jul 14, 2016 at 6:28
  • Man I cant thank you enough! Magento being so huge is intimidating tending to overlook some simple mistakes. I resolved the issue for the error turns out I had unnecessary white space and I made sure I closed my PHP tag.
    – Lugana
    Commented Jul 14, 2016 at 13:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.