Archive for November, 2009


Autoloading Propel in Zend Framework

November 21st, 2009 by Justin

Lately I have been working on a new project using Zend Framework as the MVC and Propel as the database objects. I have been searching high and low for a way to autoload the Propel classes using Zend_Loader_Autoload. Turns out the solution is very simple.

Propel has it’s own built in autoloader and accessing it couldn’t be easier.

First off, locate the config file generated by propel. It would be in the /build/conf folder.
Next, include Propel.php in your main index.php.
Then run the init function and pass it the path to your config file.

require_once 'propel/Propel.php';
Propel::init("models/build/conf/mydatabase-conf.php");

After that all your files should autoload.

If you are having problems make sure your your application path and your /build/classes folder are in your include paths

Twitter Stats

November 6th, 2009 by Justin

I’m a fan of statistics. So naturally when I found out I could see my Twitter usage on nicely laid out graphs, I jumped on it.

http://tweetstats.com/graphs/j_mazur

Turns out I don’t twitter as much as I used to. I also used to mention work a lot back in the day.