Studyon Minte9.com
ZF 1.0

Study

Params



<?php
class FrontendController extends Zend_Controller_Action {
	
	public function testAction() {
		
		// params
		$params = $this->_getAllParams(); // OR $this->getRequest()->getParams();
		
		/* http://zfsite/default/frontend/test/id/2
		params = array(4) {
			  "module" => "default"
			  "controller" => "frontend"
			  "action" => "test"
			  "id" => "2"
			}
		*/

		// param
		$id = $this->_getParam('id'); // id = 2
		
	}
}


http://framework.zend.com/manual/en/zend.controller.action.html
(accessors)