[symfony-users] Re: What about "Dimensions" plugin ?

2010-03-20 Thread Aurélien Fredouelle
... except for the point mentionned above, I guess. On 20 mar, 12:53, Thomas Rabaix wrote: > The plugin works fine with sf1.3 and so with 1.4, I used it in production > > > > On Sat, Mar 20, 2010 at 12:11 AM, AJStoneham wrote: > > I think using the ysfDimensions plugin would be the best way to g

[symfony-users] Re: What about "Dimensions" plugin ?

2010-03-20 Thread Aurélien Fredouelle
Except for the point mentionned above... On 20 mar, 12:53, Thomas Rabaix wrote: > The plugin works fine with sf1.3 and so with 1.4, I used it in production > > > > On Sat, Mar 20, 2010 at 12:11 AM, AJStoneham wrote: > > I think using the ysfDimensions plugin would be the best way to go, > > have

Re: [symfony-users] Re: What about "Dimensions" plugin ?

2010-03-20 Thread Thomas Rabaix
The plugin works fine with sf1.3 and so with 1.4, I used it in production On Sat, Mar 20, 2010 at 12:11 AM, AJStoneham wrote: > I think using the ysfDimensions plugin would be the best way to go, > have you tried it with 1.4? with 1.2 it worked fine, I was able to > extend views, actions and con

[symfony-users] Re: What about "Dimensions" plugin ?

2010-03-20 Thread Aurélien Fredouelle
I managed to manually install ysfDimensionsPlugin in sf 1.4, and it works fine. The only problem is the following : in ysfDimensionsPlugin/ lib/config/ysfProjectConfiguration.class.php, around line 64, there was : try { // ... } catch (sfException $e) { // handle exception early on and exi

[symfony-users] Re: What about "Dimensions" plugin ?

2010-03-19 Thread AJStoneham
I think using the ysfDimensions plugin would be the best way to go, have you tried it with 1.4? with 1.2 it worked fine, I was able to extend views, actions and configurations based of a dimensions, just as the readme states. It was robust, consistent and worked well. Multiple sites in production

[symfony-users] Re: What about "Dimensions" plugin ?

2010-03-19 Thread john
I have faced a similar problem recently, and the only approach I found, was to write a custom view class extending sfPHPView and overwriting the getDirectory() and getDecoratorDirectory() methods with my custom logic. This way, it's easily possible to determine the template path dynamically witho

Re: [symfony-users] Re: What about "Dimensions" plugin ?

2010-03-18 Thread Thomas Rabaix
The dimension must be set before symfony start, at the configuration level. To be clear you do not have access to : sfContext::getInstance() (sfSessionStorage, sfDatabase ...) Now, the plugin should work with sf1.4 as ysfDimension just change the configuration path ... For your specific need it w

[symfony-users] Re: What about "Dimensions" plugin ?

2010-03-18 Thread Aurélien Fredouelle
I want my project to have multiple themes : the user will be able to choose what the website look like. Think of the themes of the phpbb forum. In my case, this means changing not only the css, but also some templates. What I need is the following : depending on some user variables, the templates