Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
What i can do by Oil console?
  • I know we can use oil for do jobs like generating, refining tasks, migrations and so one, there is an other  nice thing about oil, Console,
    witch tasks OIL CONSOLE can do and witch tasks it can not do?
  • Harro VertonHarro Verton
    Accepted Answer
    Oil console gives you a framework commandline prompt.

    You could compare it to running "php -a", but inside the framework. You can type any PHP command on the prompt, and all framework classes are accessable like they are in a controller.

    So you can for example do:

    $result = Model_Something::find(1);
    var_dump($result);

    You could also use it for interactive tasks, by just writing a static class for it.
  • it is very handy and useful tool, each day i found new useful thing in fuelphp, :) thanks for reply.
  • One of tasks that I do with oil console is:

    Auth::hash_password('somepassword');

    and copy-paste it to migration...
  • @bvn it is good idea, thanks for share

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion