CLI

We added to Walrus a simple tool in order to generate few things that we usually do not like to do because it is simply repetitive like creating models and controllers.

For more informations about deployment instruction check the deploy section

Creating a model
    php tusk createModel Test

Here we simply call the createModel action that will generate a Model with the Name we previously gave to Tusk. Keep in mind that a model name has an uppercased first letter.

It will render something like this :

    namespace engine\models;

    use R;

    class Test
    {

    }

Creating a controller
    php tusk createController test

Exactly the same as a model but we now call the createController method. Note that a controller name has no uppercased first letter.

    namespace engine\controllers;

    use Walrus\core\WalrusController

    class TestController extends WalrusController
    {

    }

Creating an API controller
    php tusk createAPIController test

Exactly the same as a controller but we now call the createController method. Note that a controller name has no uppercased first letter.

    namespace engine\api;

    use Walrus\core\WalrusAPI;

    class testController extends WalrusAPI
    {

    }

Help

If you are lost you can type :

    php tusk

It will display you all the informations you need if you don't know how to use Tusk.