JN-Jones / web-artisan

A package for Laravel 4 top interact with the CLI
54 stars 11 forks source link

Controller:make Does not Work #3

Closed Ardakilic closed 11 years ago

Ardakilic commented 11 years ago

Hi,

I'm trying to make a new controller by the artisan command.

I've tried this,

artisan@laravel:/$ artisan controller:make testController Controller created successfully!

But there is no controller appeared.

I'm using a Wampserver on Win8, and shell command creates the file successfully.

Any ideas?

Thanks,

JN-Jones commented 11 years ago

I'm not at home for the next few days, but I'll test it afterwards.

JN-Jones commented 11 years ago

It seems like it's an Issue with Laravel as the following code doesn't work in any place

Artisan::call("controller:make", array("testC"));
JN-Jones commented 11 years ago

Ok I have a solution: the name of the controller needs to be an argument so you should call artisan controller:make name=testController. It worked for me so hopefully it does for you too

Ardakilic commented 11 years ago

Thanks, that way works flawlessly! Just tried on Linux LAMP (my workspace).

One more tiny issue remains though (not related to this question). It's quite minor so I won't be opening a new question: In Chromium "Version 28.0.1500.71 Ubuntu 13.04 (28.0.1500.71-0ubuntu1.13.04.1)" , space bar doesn't work on webUI. But in FF it works.

Thanks again!

JN-Jones commented 11 years ago

I'll look into it when I have time for it

JN-Jones commented 11 years ago

I fixed the initial issue