[Solar-talk] Method-Based Actions
Paul M Jones
pmjones at solarphp.com
Fri Jun 23 08:56:04 PDT 2006
On Jun 23, 2006, at 10:53 AM, Travis Swicegood wrote:
> Paul M Jones wrote:
>> Travis.... you were right
>
> I'm going to mark this day on my calendar :-D
Hey, I tell other people they're right all the time! Just not *you*.
(Sorry could not resist. ;-)
> Seriously though, one comment:
>
>> # Instead of having "Actions/example.action.php", you now have an
>> "exampleAction()" method in the page controller.
>>
>
> I would make that actionExample(). From a documentation standpoint,
> that puts all of the actions together in generating docs and most
> likely
> at the top of the list of methods.
Good point; also eliminates some of the action name munging to find
the method name. Thoughts from others?
--
Paul M. Jones <http://paul-m-jones.com>
Solar: Simple Object Library and Application Repository
for PHP5. <http://solarphp.com>
Savant: The simple, elegant, and powerful solution for
templates in PHP. <http://phpsavant.com>
More information about the solar-talk
mailing list