[Solar-talk] template path stack
Paul M Jones
pmjones at solarphp.com
Wed Aug 30 08:12:41 PDT 2006
On Aug 30, 2006, at 6:47 AM, Rodrigo Moraes wrote:
> On 8/30/06, Jeff Surgeson wrote:
>> Overiding the _getView() method adds the template path from
>> Vendor2 ok, but is
>> it ok to do it like this or should I avoid having to load from
>> more than one
>> Vendor path?
>
> I've been thinking on this, Jeff. To answer the vendor question, you
> must think how much you want to couple the second vendor to the first
> one, if you have control over it etc. What happens if vendor 2
> changes? I think basically you need to balance how "coupled" you want
> your app to be; besides this I think there is no problem to add a
> different vendor path in your app.
Rodrigo makes good points here; from a technical aspect, Jeff's
solution is fine. From a maintenance perspective, you may experience
trouble, but that's a different thing.
> These are new questions to Solar apps I think; as we advance we see
> the need for some standard solutions for "widgets".
You're right that it's an interesting problem. Perhaps there's a
place for them as "mini-apps" ... but I have to say I am intuitively
suspicious of that kind of thing. There's too many "moving parts"
there; the controller and its related views, plus any associated
models ... makes me nervous. ;-)
--
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