parameter passing question
Page: 1
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?
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?
Ilija Studen
on Nov 18. 2007. 2: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



