Welcome Guest, Not a member yet? Register   Sign In
Do I use POST variables or routed vars in URL?
#5

[eluser]luismartin[/eluser]
Just one question I forgot to ask:

If I use your approach, would you recommend to declare the controller method without any given parameters??

I mean, if I declared it this way:

Code:
public function mymethod($key1, $value1, $key2, $value2) {
....
}

and in some cases I only needed $key2, in order to avoid something like
mymethod/key1/0/key2/value2

would it be better to just do this?:

Code:
public function mymethod() {
  $my_args = $this->uri->uri_to_assoc(3);
}


Messages In This Thread
Do I use POST variables or routed vars in URL? - by El Forum - 06-05-2012, 05:49 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-05-2012, 11:01 PM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 01:34 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 04:53 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 05:07 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 05:25 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 06:27 AM
Do I use POST variables or routed vars in URL? - by El Forum - 06-06-2012, 06:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB