[Solar-talk] solar newbie

Oscar Merida oscar at oscarm.org
Sat Jan 19 16:31:05 CST 2008


On 1/18/08, Alex Stoneham <astoneham at yahoo.com> wrote:
>
> I AM NEW AT IT TOO,
>
> I believe views are the main body of your page/action, while the layouts,
> and partials are the common eliments of your page,
> layouts being the page template, side navs, top navs ect, and partials
> being things like common forms, common adverts  space, things that you want
> to import into your page from a nother view not to clutter up the current
> view.
>
> ----- Original Message ----
> From: Laz <laz0rama at yahoo.com>
> To: solar-talk at lists.solarphp.com
> Sent: Friday, January 18, 2008 1:44:27 PM
> Subject: [Solar-talk] solar newbie
>
> hello,
>
> i am a newbie to solar, but a long-time web application developer (i've
> built mvc frameworks in several languages).  i am really liking what i'm
> seeing, and considering using solar as the foundation for the next
> generation of my own php framework.
>
> i am not yet clear on the difference between "views" and "layouts".  is it
> that views contain logic (no html) and layouts contain html and no logic?
>
> does there yet exist a good, technical overview of the framework?  as in,
> a diagram and/or narative that describes in detail the processing of a
> request, and the various framework components that play a role in that?  i
> am also not really clear how solar uses "actions".
>
> just wanted to jump in and start asking questions...
>
> thanks!!!
>
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Never miss a thing.  Make Yahoo your home page.
> http://www.yahoo.com/r/hs
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
>
> ------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo! Search.<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
>
I just started getting into solar as well and have found the online manual (
http://solarphp.com/manual) particularly the getting started section.

As to "actions", they're a method that is executed by your controller and
are based on the url.  For example, if you have a url for your web app that
is /tags/list/, you'll have a class named Vendor_App_Tags with a method
named actionList. The actionList method does whatever it needs to generate
the output, which will be passed to a view file named list.php in the
directory Vendor/App/Tags/View.  The generated output will be included
within the layout you specify.

I hope that helps (and that its correct...)

-- 
Oscar Merida
Check out my websites:
oscarm.org | soccerblogs.net | futboliviano.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman-mail3.webfaction.com/pipermail/solar-talk/attachments/20080119/e12e9ca9/attachment.html


More information about the Solar-talk mailing list