Fuelphp

I’ve just started having a look at Fuel PHP.  I’m not going to go through the pros and cons as Phil Sturgeon has a very good write up on his blog.

So I decided to get my hands dirty and add a few comments that might be useful.

Fuel needs php5.3+ so update your WAMP or MAMP to the latest version. On Mac if your installed php version is 5.2 you’ll need this little trick so you can use php5.3

export PATH=/Applications/MAMP/bin/php5.3/bin/:$PATH

Time Zone

Whilst setting up the main config you’ll notice that the default time zone is set to UTC. I’m in New Zealand and therefore need to use the local time settings. Don’t make the mistake of using (for NZ) NZST as this will cause an error

Fatal error: Exception thrown without a stack frame in Unknown on line 0

use Pacific/Auckland

Migration

The first time I ran this command

php oil refine migrate

I got this error

Error: Migration:  already in use.

this seems to a bug and this link shows you the work around

http://fuelphp.com/forums/topics/view/2441#2458

Certainly looking at the database no tables had been created

php oil refine migrate:down

Error: You are already on the first migration.

php oil refine migrate:up

Migrated to version: 1.

This worked for me, I had two tables,  leads and migration.

 

 

Some useful resources:

IRC Channel

http://blog.adamfairholm.com/fuelphp-for-codeigniter-developers/

This entry was posted in News and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>