2010年11月22日星期一

Re: [fw-mvc] Zend_View directory layout

It's not really hard.
You can do it in your controller plugin or even bootstrap, just set
view script path depending on user (or other) preferences
$viewInstance->setScriptPath(THEME_PATH);

On Mon, Nov 22, 2010 at 5:26 PM, Pablo Morales <pablofmorales@gmail.com> wrote:
> This is so hard.
>
> If you have different themes, the best way is the theme adapt your views to
> layout, not the inverse.
>
> The logic in the views, is the same, only change some divs, or other html
> parameters. You need work with your layout, not with your views files
>
>
>
> On 11/22/2010 12:14 PM, Maxim Savenko wrote:
>>
>> I'd like to slightly change the layout  of base Zend_View directory
>> layout.
>> The current layout is as follows:
>>
>> view
>>   filters
>>   helpers
>>   scripts
>>
>> ... and I'd like to split script directory to several directories(themes),
>> depending on a theme user will choose.
>> For example:
>>
>> view
>>   filters
>>   helpers
>>   scripts
>>      default
>>      modern
>>      classic
>>
>> What is the best way to shoot the bull?
>>
>> Thank you,
>> Maxim Savenko
>> maxim.savenko@gmail.com
>>
>
>

没有评论: