O'Reilly logo

FuelPHP Application Development Blueprints by Sébastien Drouyer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the Blog module

By creating the post administration interface, we have now completed the first step of our project. Before generating and implementing our other features, it is important to remember that one additional objective is to easily install blogs on other websites by reusing the same code. For doing that, we will create a blog module, and this is where we should implement our code.

Moving files to the Blog module

The first step is to specify to FuelPHP where to look for modules. At the end of the APPPATH/config/config.php configuration file returned array, add (or uncomment appropriate lines):

'module_paths' => array(
    APPPATH.'modules'.DS
),

We then need to create our blog module folders. Create a folder located at APPPATH/modules/blog ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required