Book Image

FuelPHP Application Development Blueprints

By : Sebastien Drouyer
Book Image

FuelPHP Application Development Blueprints

By: Sebastien Drouyer

Overview of this book

Table of Contents (13 chapters)
FuelPHP Application Development Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

FuelPHP installation and configuration


You first need to:

  • Install a new FuelPHP instance

  • Configure Apache and your host file to handle it: in this chapter, we will access our application by requesting the URL http://mytodolists.app

  • Update Composer if necessary

  • Create a new database for your application

  • And configure FuelPHP in order to allow your application to access this database

These steps have been covered in Chapter 1, Building Your First FuelPHP Application, so you might want to take a look at it.

This project will also need the ORM package, and since it is already installed, we just need to enable it. For doing this, simply open the APPPATH/config/config.php file and insert the following at the end of the returned array:

  'always_load'  => array(
    'packages'  => array(
      'orm',
    ),
  ),

Or you can uncomment the appropriate lines. This will load the ORM package every time the FuelPHP instance is loaded.

Note

You can also load a package in an ad hoc manner, using the Package...