4

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

Joe Mastey
  • 26,809
  • 13
  • 80
  • 104
balanv
  • 10,686
  • 27
  • 91
  • 137

1 Answers1

15

You can do a forward, for instance :

public function addAction(){
    $this->_forward('update');
}
haltabush
  • 4,508
  • 2
  • 24
  • 41