[Solar-talk] Composite views
Robert Gonzalez
robert at everah.com
Fri Nov 2 23:12:02 CDT 2007
Rodrigo Moraes wrote:
> On Nov 2, 2007 1:51 PM, Robert Gonzalez wrote:
>
>> I apologize if this is too elementary of a question, but does anyone have
>> any examples of how Solar would implement composite views?
>>
>
> Are you thinking in something like components or so? Or...?
>
> -- rodrigo
> _______________________________________________
> Solar-talk mailing list
> Solar-talk at lists.solarphp.com
> http://mailman-mail3.webfaction.com/listinfo/solar-talk
>
>
Sort of. I am thinking of ways to include other executable scripts into
views. I was just wondering how Solar does it. In plain Jane code I am
thinking of:
<?php echo $this->header; ?>
<?php include 'login_box.php'; ?>
<div>.... blah blah ...</div>
Paul M Jones wrote:
>
> On Nov 2, 2007, at 5:33 PM, Rodrigo Moraes wrote:
>
>> On Nov 2, 2007 1:51 PM, Robert Gonzalez wrote:
>>> I apologize if this is too elementary of a question, but does anyone
>>> have
>>> any examples of how Solar would implement composite views?
>>
>> Are you thinking in something like components or so? Or...?
>
> Or do you maybe mean a 2-step view, or partials?
>
Maybe partials are a better term than composites...
In something I am working on for work I have created an attachComponent
method that is in the view object that will allow for the calling of
components from with the view and will parse the component view in
similar fashion to the parsing of a normal view. I was just wondering if
there was something in Solar that already did this, or if there was view
logic that could be applied that would allow for this.
More information about the Solar-talk
mailing list