public function __construct($args, $request_remainder, $get = null, $post = null) { parent::__construct($args, $request_remainder, $get, $post); if ($this->request_exists('id')) { $id = $this->request('id'); I2CE::raiseError("Recevied ({$id})"); if (($this->person = I2CE_FormFactory::instance()->createContainer($id)) instanceof I2CE_Form) { $this->person->populate(); } } }
public function __construct($args, $request_remainder, $get = null, $post = null) { parent::__construct($args, $request_remainder, $get, $post); $request = $this->request_remainder(); $this->view = $this->request('view'); $this->flow = $this->request('flow'); I2CE::raiseError("Examining" . print_r($request, true)); if (count($request_remainder) > 0) { reset($request_remainder); $this->action = array_shift($request_remainder); if (count($request_remainder) > 0) { reset($request_remainder); $this->view = array_shift($request_remainder); } } if ($this->request_exists('action')) { $this->action = $this->request('action'); } }