richjoslin / rivety

An extension of the Zend Framework for easily building websites with logins, permissions and roles, CMS, etc. [WARNING: ABANDONED]
Other
2 stars 1 forks source link

Modify bootstrap to use Zend_Application #14

Open jaybill opened 12 years ago

jaybill commented 12 years ago

This is one of those things we did by hand that's now done for us in ZF:

http://framework.zend.com/manual/en/zend.application.introduction.html

We could probably leave this as is basically forever, but if we did break it up this way, we'd be able to use Zend_Test to do unit testing, which I'd really like to be able to do. Certainly not an emergency, but it'd be really neat to have.

richjoslin commented 12 years ago

I would love to eliminate duplicate code wherever possible, and unit testing is yes yes yes.

jaybill commented 12 years ago

So I've managed to get testing to work without moving to Zend Application (by making some tweaks to header.php so it can be used as a testing bootstrap) We should do this, but we can hold off on it for now.

I did end up making a small change to the plugin singleton so that it does nothing on __wakeup() instead of trigger_error(). It was questionable to trigger an error in the first place, but it was useful back when I was trying to make sure the singleton worked. It works the exact same way but just doesn't throw that error.