Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Ihabafia opened this issue Jun 29, 2015 · 8 comments
Open

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

Ihabafia opened this issue Jun 29, 2015 · 8 comments

Comments

@Ihabafia
Copy link

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
Copy link
Owner

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

@Ihabafia
Copy link
Author

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

On Mon, Jun 29, 2015, 2:30 PM Joseba Juániz [email protected]
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
#9 (comment)
.

@Patroklo
Copy link
Owner

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

Thanks

@Ihabafia
Copy link
Author

Route::resources('matches');

@Ihabafia
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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

Just a suggestion.

Thank you,

@Patroklo
Copy link
Owner

Patroklo commented Jul 1, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants