[symfony-users] Re: Registering Behaviors in 1.1

2008-09-28 Thread Ant Cunningham
You put them in the plugins/yourBehaviorPlugin/config/config.php. The are then loaded automatically during application setup. For enabling them in your model use the new attribute in the schema, this way you they get built into your lib/model/om and you dont have to manually edit classes to add a

[symfony-users] Re: Thinking on documentation and RAD

2008-09-28 Thread Fabian Lange
Hey Saganxis, > I agree with you, the new form framework is great but you must > remember or keep reading the form API to write code. Are you saying that you think developers should not use APIs to write code? I think those developers produce great 0 LOC per day .: Fabian --~--~-~

[symfony-users] Re: Symfony Propel Crieteral problem

2008-09-28 Thread Atif Khan
Does propel support distinct queries or do I have to go to creole.\ If I do have to go to creole how can perform the normal hydration and return objects instead of looping through a result set and returning an array? The example I saw did a raw query with distinct and then looped through a resul

[symfony-users] Re: Symfony Propel Crieteral problem

2008-09-28 Thread James
Propel has a setDistict() method for propel that returns objects, I have only used it a couple times and have been looking for distinctness across the board of my query. I have only gone to creole once for queries so I don't know how to turn them into array of objects. The first tutorial

[symfony-users] Re: Thinking on documentation and RAD

2008-09-28 Thread Saganxis
No Fabian, i'm not saying a developer should't use the API. I'm saying that when a developer is new at symfony and don't know the framework, he should have a quick guide to start using the framework and its features in an easy way. Then if he decide to use the framework obviously he MUST use the A

[symfony-users] Re: Registering Behaviors in 1.1

2008-09-28 Thread Kiril Angov
Yuretsz, also http://www.symfony-project.org/plugins/sfPropelAlternativeSchemaPlugin Look at the readme for the above plugin (you do not need to install the plugin, just read the readme). It shows you the syntax for specifying behaviors in schema.yml I am guessing the documentation is not update

[symfony-users] Re: How To : Remove Pieces

2008-09-28 Thread Kiril Angov
Do not forget to remove the corresponding files from the test/ directory if that bothers you or if you use tests at all. On Fri, Sep 26, 2008 at 6:16 PM, Jonathan Wage <[EMAIL PROTECTED]> wrote: > Remove app. > > rm -rf apps/myapp > rm web/myapp.php > rm web/myapp_dev.php > > Remove module. > > r

[symfony-users] Re: Registering Behaviors in 1.1

2008-09-28 Thread Nicolas Perriault
On Sun, Sep 28, 2008 at 7:29 PM, Kiril Angov <[EMAIL PROTECTED]> wrote: > I am guessing the documentation is not updated so just follow the > directions but substitute config.php with > ProjectConfiguration.class.php and put the code in the setup() method. In 1.1, you can define behaviors direct

[symfony-users] My Forms not render well ...

2008-09-28 Thread rperezm
Hi every: I'm developing a fresh application in Symfony 1.1.2 and I want to use the new Form Framework so I start reading the Forms Book and also the recent article from Francois Zaninotto (wich is a really good article let me say). Now I do this in my code: /apps/backend/modules/geslicsoft/acti

[symfony-users] Send exception/error to an email address?

2008-09-28 Thread Sid Bachtiar
Hi all, is there a way to send all page error/exception to an email address? You know, when the page shows 'something has broken'. Thanks, Sid -- Visit my website: http://onlinesid.com --~--~-~--~~~---~--~~ You received this message because you are subscribed

[symfony-users] How to add the sf_debug on prod but only for certain credentials?

2008-09-28 Thread Sid Bachtiar
Anyone has done this? Any clue/suggestion on how I can do this? -- Visit my website: http://onlinesid.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to

[symfony-users] Re: Send exception/error to an email address?

2008-09-28 Thread Nicolas Perriault
On Mon, Sep 29, 2008 at 1:17 AM, Sid Bachtiar <[EMAIL PROTECTED]> wrote: > is there a way to send all page error/exception to an email address? > > You know, when the page shows 'something has broken'. Sure, in a filter: class catchErrorFilter extends sfFilter { public function execute ($filt

[symfony-users] Re: How to add the sf_debug on prod but only for certain credentials?

2008-09-28 Thread ken
a filter after security can do this functionality i guess class myDebugEnablerForCertainCredentialsFilter extends sfFilter { public function execute ($filterChain) { if ($this->isFirstCall() and $this->getContext()->getUser()- >isAuthenticated() and $this->getContext()->getUser()- >hasCre

[symfony-users] css/helper issue

2008-09-28 Thread Prashanth
Hi, I am new to symfony, i installed symfony using pear and my version is 1.1.2. I index page or anyother page is not loading the css and symfony helpers are also not working. Any idea how to debug this. -- regards, Prashanth http://munichlinux.blogspot.com --~--~-~--~~---

[symfony-users] sql optimalization

2008-09-28 Thread javo
Hi, I've made some project in Symfony and now I need to optimize sql quieries if possible When I try to change my settings in my app there're plenty of sql queries which can be done by one with the same effect for example ... # [0.47 ms] SELECT sf_guard_user_profile.ID FROM sf_guard_user_profi

[symfony-users] Select list as a result of a query

2008-09-28 Thread AlainRaymond
Hello, I'm having trouble creating a select list that is the result of a sql query. Some of the criteria required for it is given in the url when we create the form. For example the address is: localhost/evaluacionMicro/create/seccion/1 Where the variable that we need is 'seccion' and its val