Patroklo / codeigniter-static-laravel-routes

Integrates static laravel-like routes and filtering into codeigniter 3.x and 2.x
46 stars 21 forks source link

I am trying to user php index.php matches #9

Open Ihabafia opened 9 years ago

Ihabafia commented 9 years ago

Hi,

I am trying to access a controller through CLI, but it's giving me an error not found. Please help me to see how can I create a route though CLI or bypass the codeigniter-static-laravel-routes. The command I am using is: php index.php matches

The error I am getting is: ERROR: Not Found The controller/method pair you requested was not found.

Thank you,

Patroklo commented 9 years ago

Hi, do you have the routes in the alternate directory or in the config directory?

Ihabafia commented 9 years ago

I have a resources rout. But still showing file not found.

On Mon, Jun 29, 2015, 2:30 PM Joseba Juániz notifications@github.com wrote:

Hi, do you have the routes in the alternate directory or in the config directory?

— Reply to this email directly or view it on GitHub https://github.com/Patroklo/codeigniter-static-laravel-routes/issues/9#issuecomment-116622120 .

Patroklo commented 9 years ago

Hum, thing it's working for me... can you send the route you are using in this case? The "Route::blabla"

Thanks

Ihabafia commented 9 years ago

Route::resources('matches');

Ihabafia commented 9 years ago

I did allot of tries, it worked for me when I did the following:

Route::any('matches', 'matches/index');

so I have to use ::any()

what is the method usually for the CLI is it get, post, etc...

Patroklo commented 9 years ago

I don't know what kind of call it makes, I'll check it tomorrow. But in my case, I was using an "any", yes.

Ihabafia commented 9 years ago

Maybe you can make a route like Route::cli('xxx', 'xxxx/xxxx');

Just a suggestion.

Thank you,

Patroklo commented 9 years ago

I'll check it out. Its a good idea.