Re: [symfony-users] Adding action, object_actions - action does not exist ?

2010-03-29 Thread Lea Hänsenberger
Hi, did you also create the route for that action in the routing.yml? Cheers, Lea On Mar 26, 2010, at 10:04 , Rs232 wrote: hello, here I use the admin generator, I would like to add an action showInfos on my items so I change my generator.yml Code: object_actions: _edit:

Re: [symfony-users] Re: Adding action, object_actions - action does not exist ?

2010-03-29 Thread Lea Hänsenberger
Hi, you don't, sorry, my mistake. But I think the problem is that you wrote 'Action:' in you generator.yml with an uppercase 'A'. When you write 'action:' it should work. I'm having the same problem if I write it with an uppercase 'A'. Cheers, Lea On Mar 29, 2010, at 10:38 , Rs232 wrote: hi,

[symfony-users] Re: Adding action, object_actions - action does not exist ?

2010-03-29 Thread Rs232
object_actions: _edit: { label: Editer } showinfos: { label: Infos , action: showInfos } I still have the same error I tried with all possible entries thank you for your help On Mar 29, 10:44 am, Lea Hänsenberger baerne...@gmail.com wrote: Hi, you don't, sorry, my

[symfony-users] Trying to translate sfDoctrineGuardPlugin

2010-03-29 Thread Javier Garcia
Hi, these are my steps: - I have added this line to 'frontend/config/settings.yml' all: settings: default_culture:es_ES - I have created a file called 'plugins/sfDoctrineGuardPlugin/i18n/sf_guard.es_ES.xml' with this content: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE xliff

[symfony-users] delete + csrf prtection + ajax

2010-03-29 Thread Vikos
Hi Guys! I've a problem. ( symfony 1.4 ) I've a master/detail form. A person have some contacts ( mail, phone...etc..). The contacts - on the GUI - is in a table under the person form. This list uses ajax. Pop up a modal box ( contact form inside ). By this way the user can create and update.

[symfony-users] Custom error page for Integrity constraint violation

2010-03-29 Thread bretth
Hi, I'm getting the error SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails when I delete a parent row from my admin generator. That's fine; it's doing what it should be doing; however I want to display a nicer error

Re: [symfony-users] sfWidgetFormInputHidden

2010-03-29 Thread Gareth McCumskey
What code are you using to fill the field? Technically you should set defaults for the hidden fields in your action after instantiating the form object before it is rendered. At least, thats the way I know... $this-new_form = new FormObjectWithHiddenField();

[symfony-users] Re: Trying to translate sfDoctrineGuardPlugin

2010-03-29 Thread Massimiliano Arione
Just use standard messages.es.xml file in your app/APPNAME/i18n directory. cheers Massimiliano On 29 Mar, 10:29, Javier Garcia tirengar...@gmail.com wrote: Hi, these are my steps: - I have added this line to 'frontend/config/settings.yml' all:    settings:      default_culture:        

[symfony-users] Re: Invoice Model

2010-03-29 Thread Massimiliano Arione
In this documentation chapter http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms you can find a problem like yours, explained. Also, I suggest you to use compact syntax for your schema.yml, you can improve readability a lot cheers Massimiliano On 28 Mar, 14:17, Veríssimo

[symfony-users] Re: Question about choice widget

2010-03-29 Thread Massimiliano Arione
You jsut need to customize your css, forcing your li's as inline. No need to modify your template or your formatter. cheers Massimiliano On 25 Mar, 20:03, Javier Garcia tirengar...@gmail.com wrote: Hi, i have an edit form with a choice widget with radio buttons. Symfony renders the options

[symfony-users] Re: question about cache

2010-03-29 Thread Massimiliano Arione
The solution is to not cache the entire action. Just cache parts of it (e.g. partials) cheers Massimiliano On 28 Mar, 22:42, Michał Piotrowski mkkp...@gmail.com wrote: 2010/3/28 Antoine S. antoine.spodobal...@gmail.com: Hi, You can refine the cache (cache.yml) at any level : application,

[symfony-users] Re: Custom error page for Integrity constraint violation

2010-03-29 Thread skr
On 29 Mrz., 14:01, bretth brett...@gmail.com wrote: Hi, I'm getting the error SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails when I delete a parent row from my admin generator. That's fine; it's doing what it

[symfony-users] Re: Custom error page for Integrity constraint violation

2010-03-29 Thread Campezzi
I don't know if there's an easier way to do this, but I think I would override the delete method on the parent model to do a custom integrity check before actually trying to delete the record from the database and returning false if it detects there will be constraint problems. You can then add

[symfony-users] problème_sf_gard_user

2010-03-29 Thread safa boubekri
Bonjour tout le monde svp j'ai ajouter le plugin de sfDoctrineGuardPlugin les tables sfgarduser sont crées automatiquement dans la base de données mais lors de création de model ça marcha pas j'i ce message: enable to gneate module for non-existantmodel sf_gard_user même si cette table

[symfony-users] Re: sfWidgetFormInputHidden

2010-03-29 Thread Cristian N.
Are you using a validator for it inside the form? (e.g. sfValidatorPass) -- 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

Re: [symfony-users] Re: question about cache

2010-03-29 Thread Michał Piotrowski
2010/3/29 Massimiliano Arione garak...@gmail.com: The solution is to not cache the entire action. Just cache parts of it (e.g. partials) It is not possible in my case - for example I've got indexSuccess.php that include _list.php that include _show.php I need to change some design concepts

Re: [symfony-users] Re: Trying to translate sfDoctrineGuardPlugin

2010-03-29 Thread Javier Garcia
On 03/29/2010 03:05 PM, Massimiliano Arione wrote: Just use standard messages.es.xml file in your app/APPNAME/i18n directory. Thanks Massimiliano, but it doesn't work.. Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

Re: [symfony-users] Re: sfWidgetFormInputHidden

2010-03-29 Thread Gareth McCumskey
Just to add what Cristian is saying, by default every form widget must have a validator assigned to it even hidden fields or the widgets will always fail validation. Even if you use an sfValidatorPass validation on a widget each widget needs some kind of validation. On Mon, Mar 29, 2010 at 3:40

[symfony-users] Missing class name error

2010-03-29 Thread wueb
I' trying to build the schema from 2 databases who have relationships between them. But i'm getting this error when i make build schema Missing class name any idea what can be? thank you!! -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] Re: CMS, Catalog/Cart - Users and Administration ???

2010-03-29 Thread Bill P.
Thanks for the info. I guess I will look deeper into it's usage and setup and get back with any further questions. From: Tom Haskins-Vaughan t...@templestreetmedia.com To: symfony-users@googlegroups.com Sent: Sat, March 27, 2010 8:14:31 AM Subject: Re:

Re: [symfony-users] Missing class name error

2010-03-29 Thread Eno
On Mon, 29 Mar 2010, wueb wrote: I' trying to build the schema from 2 databases who have relationships between them. But i'm getting this error when i make build schema Missing class name include more_data; :-) -- -- If you want to report a vulnerability issue on symfony, please

[symfony-users] Re: Missing class name error

2010-03-29 Thread wueb
:) The databases are pretty big, the problem it is when i create relations between tables on different databases. This is an example of a foreign key i have on the table contactos which belongs to the slave database. The field id_user is a foreign key from the field id on the table users from

[symfony-users] Re: Frontend // pager or filter display issue

2010-03-29 Thread ziclo
Any idea ? Thank you for your help ! On 27 mar, 22:06, ziclo lauren...@gmail.com wrote: Hello, I use the admin generator actions and others methods for my frontend (i just copied actions and classes). My problem is that when i use the filter in order to get objects for a particular category,

[symfony-users] Re: Frontend // pager or filter display issue

2010-03-29 Thread trankh
How do you use generator for frontend filter. Because i tried to do that in an other way but i have a bug. http://groups.google.com/group/symfony-users/browse_thread/thread/6f6b5a482d4f44ad Thank you On 29 mar, 19:06, ziclo lauren...@gmail.com wrote: Any idea ? Thank you for your help ! On

[symfony-users] Custom Under Maintenance page

2010-03-29 Thread ruigoncalves
Hi there! I'm trying to add a custom page to my web application for the times I'm performing maintenance. I'm trying to test the referred page on my development environment but always appear the symfony page. I had already created a module with a proper action and template and also configured

[symfony-users] Re: sfWidgetFormInputHidden

2010-03-29 Thread Veríssimo
I have created a route like this: linharecibo_new: url: /linharecibo/new/ class: sfDoctrineRoute options: { model: Recibo, type: object } param: { module: linharecibo, action: new } requirements: sf_method: [get] And i have changed de executeNew action. public function

[symfony-users] Re: Invoice Model

2010-03-29 Thread Veríssimo
I will read that. Thank you Massimiliano. -- 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] Re: question about cache

2010-03-29 Thread Antoine S.
Hi, First you don't really need the doc. The most important is : you can have a cache.yml file at different level and refine for any module, action, partial. Second, the contextual option is very important. If it's true, it will parse the parameters to store the cache file. Ex: if you cache a

[symfony-users] Re: Invoice Model

2010-03-29 Thread Veríssimo
I have implemented this, but i only have the Object after a previous have saved it. Do i have to do something like check ($this-getObject()) as a object? public function configure() { $subForm = new sfForm(); for ($i = 0; $i 2; $i++) { $linharecibo = new Linharecibo();

[symfony-users] OO conceptual advice

2010-03-29 Thread Tom Haskins-Vaughan
(sf1.4/Doctrine) Hi all, Let's say I'm developing an ecommerce solution. I have the following models: Order - takes a shopping cart all the way through to an actual order. OrderItem - link between the Order and one or more Products Product - a catalogue of products Promotion - e.g., buy one

[symfony-users] Re: Custom error page for Integrity constraint violation

2010-03-29 Thread bretth
Thankyou both for that, I decided to override the delete() method on my object; it now checks if there are any children associated and if so, sets a user error flash and returns false. If not it calls parent::delete($conn). Works perfectly. cheers Brett On Mar 30, 12:26 am, Campezzi

[symfony-users] Re: OO conceptual advice

2010-03-29 Thread Antoine S.
Hi, I am currently developing a promotion/voucher/discount system too. First, I have to calculate this in the shopping cart and not in the order. Even if the shopping cart is a reflect of a future order, for me they are distinct. I have many parameters in the shopping cart too like the delivery