Quote Originally Posted by photo312
I would like to direct all to this article where Joe Stump talks about implementing a MVC solution for a php 5 project.

The link to the article series is here:


I am curious as to the reason why he put this code in the class FR_Object

I dont understand the toArray function. What is that used for?
Just seems like what other frameworks call a DataSpace, toArray() is just for casting the collection of "stuff" into an array, useful for using PHP array_* functions to merge/diff collections. Though that specific implementation does seem rather odd, as it recurses as it goes along. Haven't read enough of the article to see why it does that.