Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthoralake
     

    When I execute $user_helper->save() by pressing the OK button, I go to the action specified by the form. But when I execute $user_helper->cancel() by pressing the Cancel button, what controls the action taken? Where in the API is $user_helper discussed?

    •  
      CommentAuthorriffed
     

    When you run generate to create the model class a helper in also created in /app/helpers named {model}_helper.php

        function cancel($url = array('action' => 'listing'))
        {
            return '<input type="button" value="'.$this->_controller->t('Cancel').'" style="width: auto;" onclick="window.location.href = \''.$this->_controller->urlFor($url).'\';" />';
        }
    
    • CommentAuthoralake
     

    Thank you Riffed. Your help will end up in the Wiki at Overview | Internal Navigation | Controller.