Jump to content

Question

Posted
public function manageModule($module, array &$vars) {      print_r($_GET);     // Load the view into this object, so helpers can be automatically added to the view      if (isset($_GET[1]) && $_GET[1] == "changepassword")      {           $this->view = new View("change_password", "default");           # # TODO: to whatever else you need to do #      } else {           $this->view = new View("manage", "default");      }      $this->view->base_uri = $this->base_uri;      $this->view->setDefaultView("components" . DS . "modules" . DS . "test" . DS);      // Load the helpers required for this view      Loader::loadHelpers($this, array("Form", "Html", "Widget"));      $this->view->set("module", $module);      return $this->view->fetch(); }

 

In above function i don't get any values inside the $_GET

5 answers to this question

Recommended Posts

  • 0
Posted

You can see in lib/dispatcher.php the line:

$ctrl->get = $_get;

so that you can use the following line in your controller

$this->get['parameter'] 

as an equivalent of 

$_GET['parameter']

HTH

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...