Now it's time to configure your Dragonfly instance.

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


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


And replace /github/dragonfly/index.php/$1/ with the appropiate route.

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


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


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/dragonfly so we will update it as shown below:


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


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, 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