Jump to content

kimpossible

New Members
  • Posts

    1
  • Joined

  • Last visited

    Never

Everything posted by kimpossible

  1. if you want to pass a variable to another controller, u can use either of the ff: _redirect() _forward() // works if you want to pass an array class BasicController extends Zend_Controller_Action { public function indexAction() { $name = "alex"; $arrName = array ( 'firsname' => "myFirstName", 'lastname => "myLastName"); // if you want to pass variable name: //STRUCTURE: controller/action/variableName/value $this->_redirect('bio/index/name/$name"); //if you intend to pass an array: //STRUCTURE: 'action', 'controller', $array $this->_forward('index', 'bio', $arrName); } } ----------------------------- class BioController extends Zend_Controller_Action { public function indexAction() { //for sample #1 $name = $this->getRequest()->getParam(''name'); } } hope this could help.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.