Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to call one action from another in magento?

Tags:

magento

is it possible to call one action from another in magento?

for example let us consider 2 action methods

  • addAction()
  • updateAction()

is it possible to call updateAction() actually when addAction() is called?

Thanks, Balan

like image 301
balanv Avatar asked Dec 06 '22 22:12

balanv


1 Answers

You can do a forward, for instance :

public function addAction(){
    $this->_forward('update');
}
like image 98
haltabush Avatar answered Jan 02 '23 01:01

haltabush