Configuration

Now it's time to configure your Hummingbird instance.

First you'll have to set-up the .htaccess file, it should be placed on the root of your folder:

sshot-02

Open it up in your favorite text editor and look for the following line:

sshot-03

And replace /github/hummingbird-lite/index.php/$1/ with the appropiate route.

In our example, we have placed the files inside the htdocs/hummingbird folder, so we must set it as /hummingbird/index.php/$1/ on the .htaccess file as shown below:

sshot-04

Now it's time to set-up the config.inc.php file. It's located under the /framework folder:

sshot-05

Open it up and you should see a PHP Array named $settings. It has three major keys: development, testing and production.

These are your configuration profiles. They allow you to easily test and deploy your sites without losing the configuration values of your development environment or to connect to different databases depending on where the site is located.

Locate the development profile and search for the site_url entry. There you should enter your site URL, for our example, it is located on http://localhost/hummingbird so we will update it as shown below:

sshot-06

If you save the file and point your web browser to that URL, you should see something like this:

sshot-07

That means that your site is now properly configured.

Now you may want to check some of the tutorials we've created so you can learn how to use the database, add pages, routes and many more.

They're available on the sidebar to your left, along with the more advanced object reference.

Go back to previous page