Login or Register

RSS IconRecent posts in this topic

avatar
Bill on Nov 16. 2007. 7:27 pm
Hi there, I'm learning to write plugins but the way activeCollab passes parameter to /public/index.php confuses me.

For example, the report page: /public/index.php/projects/1/time/reports?type=thismonth&user_id=&is_billable=
I can print the part after the question mark (type=thismonth.*) but can't seem to get '/projects/1/time/reports' part in querystring.
how are the parameters (the /projects/1/time/reports part) getting passed to index.php?
and is there a central location where parameters are processed and requested module/plugins are loaded?
avatar
Ilija Studen on Nov 18. 2007. 8:06 am
When you are in the controller use Request object to get parameters:

class SomeContoller extends ApplicationController {

  function index() {
    print $this->request->get('project_id');
  }

}
activeCollab team member | LinkedIn
avatar
Bill on Nov 22. 2007. 10:55 pm
Thanks Ilija, I'm reading the code, and will probably come up with some more specific questions later. :p

RSS IconRecent posts in this topic