User Contributed Notes 1 note

Working on a new MVC Application Framework i use this method to check how many arguments are required before calling the sub method!

Example

<?php $this->method_args_count = $this->CReflection->getMethod($Route->getMethod()) ->getNumberOfParameters();//Maybe be 5 but if uri is /controller/method/single_param/ we only of 1$this->params = $Route->getParams(); //0 in some cases