function __construct() { parent::__construct(); //this will map any add task to the edit, which is the edit method below $this->registerTask('add', 'edit'); }