Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Create Module directory in Terminal
  • I didn't see oil having a way to create a module file structure so I just create this real quick.. +1 for oil generate module. You want to be in your top level directory when calling it. Same directory as oil. function fuel_module()
    {
    CURRENT_PATH=`pwd`
    cd fuel/app/modules
    mkdir -p $1/{classes,config,lang,views}
    mkdir -p $1/classes/{controller,model,view}
    cd $CURRENT_PATH
    }
  • Oil doesn't really get involved with modules at all right now. We'll be integrating the two a little more soon, I just want to get the logic awesome before confusing it all with two potential file structures.

Howdy, Stranger!

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

In this Discussion