Pergunta

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";
Foi útil?

Solução

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 em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top