[Solar-talk] Advance notice of 0.28.0 release

Paul M Jones pmjones at ciaweb.net
Mon Jul 9 10:34:21 CDT 2007


On Jun 9, 2007, at 8:51 AM, Rodrigo Moraes wrote:

> On 6/8/07, Paul M Jones wrote:
>> I can't think of any more major features that would be
>> required/necessary for a framework core.
>
> Paul, I thought to ask: what do you think about uri routing mechanisms
> like the one from Rails? I don't have much experience with it, but
> from what I've tried, it is super flexible but somewhat
> difficult/tricky to manage - route lists can grow big and become
> complex etc. What's your opinion? Do you think Solar will have
> something similar one day?

I'm sure we'll have the option for one, even if only as an  
alternative.  Even though it's flexible, I worry about the trickiness  
part, and about keeping the logic necessary to map to an action  
somwhere other than in the page-controller.

My general preference is for routing to happen in stages, with each  
stage looking only at the part it needs to forward on to the next stage.

Personally, I've not (yet) had a situation where I've really *needed*  
the Rails-style routing (i.e., in a way that no other solution was  
reasonable).  Everything for my applications, so far, has easily  
mapped to "controller/action", with any necessary switching logic  
contained in the page-controller itself.

Happy to hear counter-arguments for common cases here, but it should  
probably be under a separate thread.


--

Paul M. Jones  <http://paul-m-jones.com>

Solar: Simple Object Library and Application Repository
for PHP5.  <http://solarphp.com>

Join the Solar community wiki!  <http://solarphp.org>

Savant: The simple, elegant, and powerful solution for
templates in PHP.  <http://phpsavant.com>




More information about the Solar-talk mailing list