Question

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";
Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top