Domanda

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";
È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top