News for hackers. Stuff that matters.
Re:Epiphany, a RESTful micro PHP framework I wrote/use for m... by trey on Friday December 10, 2010 @01:06PM (#1992516)
I've been using nicedog for my micro-framework needs.

After looking over it, this is a really framework. There really isn't too much that I would throw out to make it smaller, except maybe the curl wrapping class.

A couple of things that would be nice are:

1) if your Controller classes had some state forcing them to be static like you do means that there could be a lot of duplicated code between similar actions

2) if you had a 'layout' template that could be set that would wrap the results of the actions. Maybe this already exists, I just couldn't find it.

Its very clear that you intend to not do any kinds of magic, so I can see why you left a lot of things out that a lot of other frameworks have. Maybe that is why you don't have a layout wrapper template.

Re:Epiphany, a RESTful micro PHP framework I wrote/use for m... by jmathai on Friday December 10, 2010 @02:38PM (#1992836)
You're right about the curl wrapper. It's actually got it's own repository https://github.com/jmathai/php-multi-curl so I should remove it from here (it's an artifact really).

1) I'm not sure exactly what you mean. I handle most of the code duplication in libraries so my static controller methods are usually really small (<15 lines). Let me know if I misunderstood your point.

2) You're right about the layout wrapper being a bit "heavy" for this framework. You can nest layouts to your heart's desire but the views are 100% decoupled from the actions. You can, in fact, use the the template module without using the route module. Not that you'd want to :).