[Solar-talk] Example Solar Code
Michael Soule
mikesoule at gmail.com
Wed Mar 14 21:12:30 PDT 2007
I'm still feeling my way around Solar here, trying to get started,
and could use a little help from anyone who has a moment.
1. Which Controller?
I'm using AquaMDB as a guide (thank you Antti!) and it differs
greatly from the Example Skeleton App on the Solar website.
Specifically, Aqua uses a Front Controller while Skeleton uses a Page
Controller. I'm guessing the front controller is for larger
application type uses and the page controller is for simple websites
build page by page. Is this correct? Can someone elaborate more?
2. Extended Users
Is Solar flexible enough to allow the following... if so, any tips on
implementing it?
Example: I have a User class which maps to a users table. I also have
an Ographers class (for photographers and videographers) which
extends the User class. It also has an ographers table which has
extra columns for ographer-specific data. Is the Solar_Auth package
able to adapt to this kind of approach? Is there a better approach?
Btw, please let me know if this is not the appropriate place to post
these types of questions.
mike
On Mar 12, 2007, at 1:41 AM, Rodrigo Moraes wrote:
> On 3/12/07, Michael Soule wrote:
>> That is a good example. Big help. Thank you!
>
> Unfortunatelly, it won't work with Solar 0.27. It was released in a
> pre-Solar_Request time so it uses Solar::get(), Solar::post() etc. To
> work with Solar 0.27 these should be replaced by (inside app classes)
> $this->_request->get(), $this->_request->post(), etc., or using a new
> instance of Solar_Request if not inside app classes. From what I
> remember this would be enough to make Aquamdb work with the latest
> Solar.
>
> rodrigo moraes
> -------------------------------
> http://tipos.com.br
> _______________________________________________
> solar-talk mailing list
> solar-talk at lists.solarphp.com
> http://mail.killersoft.com/mailman/listinfo/solar-talk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.killersoft.com/pipermail/solar-talk/attachments/20070315/ff6599b9/attachment.htm
More information about the solar-talk
mailing list