0

This is my config code of custom module :

<controller_action_predispatch_cms_index_index>
          <observers>
              <mage_homepage_model_observer>
                  <model>mage_homepage/observer</model>
                  <method>homepage</method>
              </mage_homepage_model_observer>
          </observers>
  </controller_action_predispatch_cms_index_index>

& this is my observer in model folder :

<?php
class Mage_Homepage_Model_Observer
{

  public function homepage()
  {//mycode
  }
}

but it does not come in this function. What's wrong?

1 Answer 1

0

If you're using the same config.xml file as your other question, you need to replace:

<model>mage_homepage/observer</model>

With:

<model>homepage/observer</model>
0

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.