[Solar-talk] layout generator

Paul M Jones pmjones at solarphp.com
Fri Aug 4 07:20:56 PDT 2006


On Aug 2, 2006, at 8:23 PM, Rodrigo Moraes wrote:

> On 8/2/06, Jeff Surgeson wrote:
>> Am I missing something? I see it sets the headers to load the non  
>> existant
>> $this->layout_style = array('/onetruelayout/css', '/onetruelayout/ 
>> css2');
>> stylesheets.
>>
>> Should I have created these stylesheets first?
>
> Ok, it was a crazy idea, but it was fun to see Solar generating  
> CSS. ;-)

Sure is.  :-)

The only issue here is an aesthetic one; having the CSS in the page  
itself is not very elegant, but in this case it's necessary.

The only alternative I can think of is to make the .css.php file a  
standalone php file, and then you could link to it like this ...

     <link rel="stylesheet" type="text/css" href="Solar/styles/ 
_onetruelayout.css.php" />

... but that has its own set of problems.



--

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