Pregunta

I have to install 10+ APIs in my third_party folder, each has it´s own examples files for testing oauth validation and other features.

without too many changes, has anyone found an easy way to hack the Codeigniter routing to execute files like

$route['hackToken'] = "/application/third_party/googleads-php-lib-master/examples/AdWords/Auth/GetRefreshToken.php";
¿Fue útil?

Solución

Codeigniter expects to find a class derived from Controller at the target of a route. So, you will not be able to do this unless you create a Controller for each example.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top