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 jsangi...@gmail.com wrote: Hi everybody, I'm working in a project with frontend

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 stephane.er...@gmail.com 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

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

2010-03-22 Thread Jérémie
On 19 mar, 22:48, Marijn marijn.huizendv...@gmail.com wrote: What code do you use for link generation? The code is something like this: a href='.$view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page.'#p_'.

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

2010-03-22 Thread Jérémie
On 22 mar, 10:16, Marijn marijn.huizendv...@gmail.com wrote: Try this: a href=?php echo $view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page)), '#p_', $data_1['topic_last_post']; ? Still the same problem. I really think it's something we can

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, Marijnmarijn.huizendv...@gmail.com wrote: Try this: a href=?php echo $view-router-generate('voirtopic', array('topic_id' = $data_1['topic_id'], 'topic_page' = $page)), '#p_', $data_1['topic_last_post']; ? Still the same problem. I

[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

[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 fabien.potenc...@symfony- project.com wrote: On 3/22/10 10:24 AM, Jérémie wrote: On 22 mar, 10:16, Marijnmarijn.huizendv...@gmail.com

[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' =

[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

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 peter.pelto...@gmail.com 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)

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 pawel.rz...@gmail.com

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. -- --

[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 benoit.montue...@gmail.com 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

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) did

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 :

[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

[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: 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 davidmoralesmoj...@gmail.com 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

[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 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

[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. zera...@gmail.com 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: 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 xplo...@gmail.com wrote: Get the latest version of the plugin, it s been fixed ~ On Mar 22, 2:57 pm, Raphaël B. zera...@gmail.com wrote: Hello, I'm using this

[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

[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,

[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

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

[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. zera...@gmail.com wrote: just update the plugin (php symfony

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 s...@nexen.org 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

[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 mrdla...@gmail.com 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

[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 toreachdee...@gmail.comwrote: Hi, Anybody implemented the LDAP Plugin for their project