03-24-2015, 04:02 AM
(This post was last modified: 03-24-2015, 04:05 AM by Avenirer.
Edit Reason: additional info...
)
And this is not normal?
You can put something like
Or you can simply find out if the number of parameters are bigger than what you need with func_num_args().
You can put something like
PHP Code:
public function article ($param_one, $param_two = NULL)
{
if(!is_null($param_two))
{
//do whatever redirect you want
}
// else do what you need to do
}
Or you can simply find out if the number of parameters are bigger than what you need with func_num_args().
Website: http://avenir.ro