[symfony-users] Re: LDAP Plugin

2010-03-22 Thread DEEPAK BHATIA
Hi, Has anybody used LDAP way of authenticating the users in Symfony ? Thanks in advance Deepak Bhatia On Wed, Jan 13, 2010 at 1:09 PM, DEEPAK BHATIA wrote: > Hi, > > Anybody implemented the LDAP Plugin for their project > > http://www.symfony-project.org/plugins/bhLDAPAuthPlugin > > Regards >

[symfony-users] Re: Custom Error Page Settings Not Working

2010-03-22 Thread Antoine S.
Hi, It's in settings.yml On Mar 23, 5:40 am, DarrenMr wrote: > I have this in my config.yml file: > all: >   .actions: >     error_404_module: dashboard >     error_404_action: notFound > > However, even after I have cleared my cache it does not use that file. > How long does it take to adjust

Re: [symfony-users] how to create a copy of symfony app using a different database

2010-03-22 Thread Peter Peltonen
Hi and thanks for your replies. On Mon, Mar 22, 2010 at 2:46 PM, Syam wrote: > "application" :  You mean real app in apps/ or complete symfony project to > copy ? I meant a complete symfony project. I managed to resolve my problem which was due to a silly mistake: the new symfony project's Apach

[symfony-users] Re: sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month

2010-03-22 Thread xplo
I m pretty sure it s been fixed since i had exactly the same problem however i took the latest version from the svn wich is not the latest build on their website and i guess the symfony update command. On Mar 22, 4:22 pm, Raphaël B. wrote: > just update the plugin (php symfony plugin:upgrade sfFo

Re: [symfony-users] 'symfony fix-perms' doesnt work, but dont have access to sudo?

2010-03-22 Thread Eno
On Mon, 22 Mar 2010, armyofda12monkeys wrote: > So ran 'symfony fix-perms' today and didnt work. sys-admin prob locked > down the box more. > I get error messages like: > > >> chmod 666 cache/myapp/dev/config/modules_home_config_module.yml.php > Warning: chmod(): Operation not permitted in /usr/l

[symfony-users] 'symfony fix-perms' doesnt work, but dont have access to sudo?

2010-03-22 Thread armyofda12monkeys
So ran 'symfony fix-perms' today and didnt work. sys-admin prob locked down the box more. I get error messages like: >> chmod 666 cache/myapp/dev/config/modules_home_config_module.yml.php Warning: chmod(): Operation not permitted in /usr/local/lib/php/ symfony/vendor/pake/pakeFunction.php on line

[symfony-users] Custom Error Page Settings Not Working

2010-03-22 Thread DarrenMr
I have this in my config.yml file: all: .actions: error_404_module: dashboard error_404_action: notFound However, even after I have cleared my cache it does not use that file. How long does it take to adjust? Thanks, Darren -- If you want to report a vulnerability issue on symfony, pl

[symfony-users] prefill login form

2010-03-22 Thread Lea Haensenberger
Hi all, I'd like to pre-fill the username of the sfDoctrineGuardPlugin login form, after the user registered and confirmed his email. Is there an easy way to pre-fill values in the login form or do I have to override the executeSignin action of the plugin? Cheers, Lea -- If you want to report a

Re: [symfony-users] Re: Using sf 2.0

2010-03-22 Thread Jonathan Wage
On Mon, Mar 22, 2010 at 9:03 AM, Sid Ferreira wrote: > Well Jon, your answers helped a lot to make me more confortable with > using sf 1.4 for now. > Indeed, I already started the works, and I believe I'm doing in a way > that will be easy to upgrade (aka: lot's of classes). > > About the 2.0's:

[symfony-users] Re: sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month

2010-03-22 Thread Raphaël B .
just update the plugin (php symfony plugin:upgrade sfFormExtraPlugin) and still has the same problem... On 22 mar, 15:33, xplo wrote: > Get the latest version of the plugin, it s been fixed ~ > > On Mar 22, 2:57 pm, Raphaël B. wrote: > > > Hello, > > > I'm using this widget in a symfony form lik

[symfony-users] Re: sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month

2010-03-22 Thread xplo
Get the latest version of the plugin, it s been fixed ~ On Mar 22, 2:57 pm, Raphaël B. wrote: > Hello, > > I'm using this widget in a symfony form like this: > >     $dateWidget = new sfWidgetFormDate(array( >       'format' => '%day%/%month%/%year%', >       'years' => $years_list >     )); > >

[symfony-users] Re: sfValidatorDoctrineChoice and i18n

2010-03-22 Thread HiDDeN
Yes, it is defined as a i18n table: Category: actAs: I18n: fields: [name] actAs: Sluggable: { fields: [name], uniqueBy: [lang, name] } columns: id: { type: integer(2), unsigned: true, primary: true } name: { type: string, length: 50, notnull: true } On Ma

[symfony-users] sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month

2010-03-22 Thread Raphaël B .
Hello, I'm using this widget in a symfony form like this: $dateWidget = new sfWidgetFormDate(array( 'format' => '%day%/%month%/%year%', 'years' => $years_list )); $this->widgetSchema['date_naissance'] = new sfWidgetFormJqueryDate(array( 'date_widget' => $dateWidget

[symfony-users] Re: sfValidatorDoctrineChoice and i18n

2010-03-22 Thread Tom Ptacnik
Have the model Category a slug attribute?, or better, has it a getSlug() method? On 22 bře, 12:19, HiDDeN wrote: > I'm using Symfony 1.4.3 + Doctrine 1.2, and a typical i18n category > table (the ids are in category, and the name and slug in > category_translation). > > I have this Doctrine vali

[symfony-users] Doctrine: Unknown aggregate alias: CASE

2010-03-22 Thread Johan Dindaine
Good afternoon, I am trying to do a conditional query with Doctrine as follow, just with a simple select case. $q = Doctrine_Query::create() ->select('a.uid,am.uid,(CASE WHEN a.auctionTypeModel=2 THEN a.buyNowValue WHEN (MAX(ab.value) > 0) THEN MAX(ab.value) ELSE a.startvalue END) as price')

[symfony-users] Re: Using sf 2.0

2010-03-22 Thread Sid Ferreira
Well Jon, your answers helped a lot to make me more confortable with using sf 1.4 for now. Indeed, I already started the works, and I believe I'm doing in a way that will be easy to upgrade (aka: lot's of classes). About the 2.0's: Will we have the forms? And the routes? Thanks in advance once

Re: [symfony-users] Select fields updating other form fields

2010-03-22 Thread Syam
I did this feature on a car site : http://www.groupe-lempereur.com On the upper right, you can find 4 select fields, with the model (modèle) field depending from the mark (marque) field through ajax. *The code :* In action.class.php : --

Re: [symfony-users] how to create a copy of symfony app using a different database

2010-03-22 Thread Syam
"application" : You mean real app in apps/ or complete symfony project to copy ? Peter Peltonen wrote: A newbie question: how do I create a copy of symfony app using a different database? Here is what I tried: 1) copied my symfony 1.2.12 application to another dir to make a copy of it. 2) di

[symfony-users] Re: Saving some data during insert, update, and deleting object?

2010-03-22 Thread verox
Thanks a lot. On 22 Mar, 13:31, Benoit Montuelle wrote: > Look at doctrine event system. > > It implement pseudo event methods (pre/postSave, preDelete,   > postHydrate ,etc) in Doctrine_Record class, you can easily override   > them, they are call at right time to modify values on object > > Re

Re: [symfony-users] how to create a copy of symfony app using a different database

2010-03-22 Thread Eno
On Mon, 22 Mar 2010, Peter Peltonen wrote: > 4) Tried inserting data using a form in thew new app > > => Problem: the data was inserted in the original symfony app's db, > not into the new one You probably need to rebuild models and/or forms for the new database setting to take effect. --

Re: [symfony-users] Re: Saving some data during insert, update, and deleting object?

2010-03-22 Thread Benoit Montuelle
Look at doctrine event system. It implement pseudo event methods (pre/postSave, preDelete, postHydrate ,etc) in Doctrine_Record class, you can easily override them, they are call at right time to modify values on object Regards, Benoit Le 22 mars 2010 à 12:56, verox a écrit : Any ideas

Re: [symfony-users] how to create a copy of symfony app using a different database

2010-03-22 Thread Sid Bachtiar
execute: php symfony cc On Tue, Mar 23, 2010 at 1:22 AM, Peter Peltonen wrote: > A newbie question: how do I create a copy of symfony app using a > different database? Here is what I tried: > > 1) copied my symfony 1.2.12 application to another dir to make a copy of it. > > 2) did a dump of the M

[symfony-users] how to create a copy of symfony app using a different database

2010-03-22 Thread Peter Peltonen
A newbie question: how do I create a copy of symfony app using a different database? Here is what I tried: 1) copied my symfony 1.2.12 application to another dir to make a copy of it. 2) did a dump of the MySQL database used by the original symfony app and created a new db where I inserted the da

[symfony-users] Re: Saving some data during insert, update, and deleting object?

2010-03-22 Thread verox
Any ideas guys? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.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@googlegroups.com To un

[symfony-users] sfValidatorDoctrineChoice and i18n

2010-03-22 Thread HiDDeN
I'm using Symfony 1.4.3 + Doctrine 1.2, and a typical i18n category table (the ids are in category, and the name and slug in category_translation). I have this Doctrine validator defined in my form: $this->setValidators(array( 'category' => new sfValidatorDoctrineChoice(array('model' => 'Ca

[symfony-users] Re: Symfony 2.0 - Use anchor in url

2010-03-22 Thread Jérémie
The last 2 answers were right! (even if I said there where still the problem :-P ) Thanks a lot to all of you :) Jérémie On 22 mar, 10:53, Fabien Potencier wrote: > On 3/22/10 10:24 AM, Jérémie wrote: > > > > > On 22 mar, 10:16, Marijn  wrote: > >> Try this: > > >> > > Still the same problem.

[symfony-users] Deploying a Symfony project on shared hosting

2010-03-22 Thread Ali
HI Symfonians, i am fresh in symfony development , and facing trouble in deploying symfony on Bluehost shared server. Can any one list the steps to deploy the project on the main domain , not on sub domain i want to install project on www.somedomain.com , and not on its sub

Re: [symfony-users] Re: Symfony 2.0 - Use anchor in url

2010-03-22 Thread Fabien Potencier
On 3/22/10 10:24 AM, Jérémie wrote: On 22 mar, 10:16, Marijn wrote: Try this: Still the same problem. I really think it's something we can configure in Symfony options; we can do it with the previous versions. The anchor does not belong to the URL, just add it after the URL: ... Fabien

[symfony-users] Re: Symfony 2.0 - Use anchor in url

2010-03-22 Thread Jérémie
On 22 mar, 10:16, Marijn wrote: > Try this: > > Still the same problem. I really think it's something we can configure in Symfony options; we can do it with the previous versions. Jérémie > On Mar 22, 9:38 am, Jérémie wrote: > > > On 19 mar, 22:48, Marijn wrote: > > > > What code do you use

[symfony-users] Re: Symfony 2.0 - Use anchor in url

2010-03-22 Thread Marijn
Try this: wrote: > On 19 mar, 22:48, Marijn wrote: > > > What code do you use for link generation? > > The code is something like this: > >  '.$data_1['post_time'].' > > In the generated page, I can see the link is "/voirtopic/18/1#p_70", > so I clik, and then in the address bar it becomes... "/

[symfony-users] Re: Symfony 2.0 - Use anchor in url

2010-03-22 Thread Jérémie
On 19 mar, 22:48, Marijn wrote: > What code do you use for link generation? > The code is something like this: '.$data_1['post_time'].' In the generated page, I can see the link is "/voirtopic/18/1#p_70", so I clik, and then in the address bar it becomes... "/voirtopic/ 18/1%23p_70". But if I

Re: [symfony-users] How to access user details with sfGuard

2010-03-22 Thread Fabrizio Scimia
Thanks a lot guys, It works! 2010/3/21 Stéphane > Hi, > > You could do an admin-gen for the sf_guard_user (overload the plugin's > one), then embed the profile form in your sfGuardUserForm::configure(); > using $this->embedRelation("profile*"); and hide the user properties you > don't want to sh

Re: [symfony-users] Error 500 backend application in production

2010-03-22 Thread Gábor Fási
Check your loginform's template to see if it echoes the correct url in the action property, also check if you have no_script_name disabled in the backend's settings.yml On Mon, Mar 22, 2010 at 01:24, Jose San Gil wrote: > Hi everybody, > > I'm working in a project with frontend and backend applic