Re: Re : [symfony-users] Where Modify action before saving

2010-12-13 Thread seifolah Ghaderi
thanks. because I'm new in symfony I don't understand your mean completely. Can you describe where to do that? On Mon, Dec 13, 2010 at 2:21 AM, khalid abdel.kha...@gmail.com wrote: yes never use the context in your model. if you have on your action $object =

[symfony-users] using partials in i18n forms and credentials for i18n forms

2010-12-13 Thread P-A Coipeault
Hello everyone. I'm using sf1.4 with Doctrine ORM. I'm facing some kind of problems. I've got a backend app generated, with tables acting as i18n. No problems with that, everything works fine, as soon as it stays in standard. Due to ergonomic and functionnality requirements made by the

[symfony-users] Re: [Doctrine2] Mapping issue that only occurs on my remote

2010-12-13 Thread ev0
Hey, I have exactly the same problem and I guess I found why this is happening. I'm developing on a windows machine (apache+php 5.3.x) and my production server is a linux machine (nginx+php 5.3.x). After some source-crawling I found this: File:

Re: [symfony-users] Re: problem to use symfony

2010-12-13 Thread Justen Doherty
I use MAMP 1.8 with symfony 1.4 without any problems.. i tried to use the latest MAMP install which didnt work with symfony 1.4.. On Fri, Dec 10, 2010 at 10:15 PM, Julian Reyes Escrigas julian.reyes.escri...@gmail.com wrote: Hi, i'm a new Mac User if you like install Apache2 + php5.3 +

[symfony-users] Add to subscribe

2010-12-13 Thread przemosk
Hi all, I have a question about add to subscribe. How i can make that, when user click checkbox and he have notification to his e-mail about new post on the blog. thanks, przemek -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Where to add Custom validator ? save() or doSave()? How?

2010-12-13 Thread hisu
I have tow dates fields for a booking. Check-in date and Check-out date. I want to add validation that this period between these two date are available and no other booking conflicts this period. This can be done via querying database. How to do it? Where to do it? in Save() or doSave()? -- If

[symfony-users] Re: (Newbie) Problem with validation: all fields REQUIRED on example form from book

2010-12-13 Thread gfranzini
Hello, thx for the answer, here is the action ?php /* azione aggiunta da GF */ class contactAction extends sfAction { public function execute($request) { // Define the form $this-form = new sfForm(); $this-form-setWidgets(array( 'name' = new

Re: [symfony-users] Add to subscribe

2010-12-13 Thread Alex Pilon
A combination of user profile management, cron jobs, and setting up a mailer. You can get better answers by being more specific. Are you having a problem with a particular aspect of that process? If you are at square zero and have no idea how to implement that at all then you should do some

[symfony-users] Best practice to use Eclipse PDT and symfony?

2010-12-13 Thread benze
Hi, I used to use Eclipse to develop Java, and am new to using it for PHP. I've downloaded the Eclipse PDT All-In-One package and was hoping it would give me a familiar experience when programming. I am hoping that there are some users on this list who use Eclipse PDT with symfony that can help

Re: [symfony-users] Re: [Doctrine2] Mapping issue that only occurs on my remote

2010-12-13 Thread Tim Nagel
There has been work ongoing to modify the mapping system and remove autodetection. https://github.com/fabpot/symfony/pull/264 http://groups.google.com/group/symfony-devs/browse_thread/thread/8a56914be2d5a322 t On Sat, Dec 11, 2010 at 20:59, ev0 dark.shr...@gmx.net wrote: Hey, I have

Re: [symfony-users] Best practice to use Eclipse PDT and symfony?

2010-12-13 Thread Macvek
I've recently worked on a small project using PDT. For errors: I didn't figured how to remove error checking from symfony directory. It wasn't a problem, cause Eclipse shows an icon on files which have errors. Eclipse should index your code, and it will propably check the lib/vendor/symfony, so

Re: [symfony-users] Re: problem to use symfony

2010-12-13 Thread Alex Pilon
What do you mean it didn't work? Can you describe the problem you are having? On Sat, Dec 11, 2010 at 06:35, Justen Doherty phpc...@gmail.com wrote: I use MAMP 1.8 with symfony 1.4 without any problems.. i tried to use the latest MAMP install which didnt work with symfony 1.4.. On Fri, Dec

[symfony-users] Re: Where to add Custom validator ? save() or doSave()? How?

2010-12-13 Thread Gabriel Petchesi
None of the above, use postValidator and a custom callback, see more info here: http://www.symfony-project.org/cookbook/1_2/en/conditional-validator You should have also some sort of locking for that period in case someone else want's to book that period to avoid race conditions. gabriel --

[symfony-users] Test suite of symfony 2

2010-12-13 Thread odino
Hi guys, I was trying to fix a bug on Sf2 tracker. To do that I needed to build the environment: * forked the symfony/symfony repo * cloned on my local machine * installed required PEAR packages * installed ( eventually updated ) the vendors but when i run phpunit I get a fatal error: Call to

[symfony-users] How to validate in model at form submission

2010-12-13 Thread himanshu
I have a form which collects two dates. A check-in and a check-out date. I am able to validate all form data. I want to validate the piriod (between check-in and check-out dates) is available or not. I want to make it at model level. Is it possible to validate at model level during form

[symfony-users] Re: Reg: Pagination Plugin for symfony 1.2.9

2010-12-13 Thread Pradeep
Hello, Can someone help me how to do the pagination of results for symfony 1.2.9 version??? On Nov 28, 10:03 pm, Pradeep pradeep.pench...@gmail.com wrote: Hello, I want to perform page navigation and noticed that sfPageNavigation Plugin exists. But I am using symfony 1.2.9 version. I did

Re: [symfony-users] using partials in i18n forms and credentials for i18n forms

2010-12-13 Thread Daniel Lohse
You can pass the user as an option to the form from the action — just pass an array as the second parameter of the form instanciation like so: $form = new modelnameForm($object or null, array('user' = $this-getUser()-getGuardUser()); And then in the form's configure() method you can get the

Re: [symfony-users] Best practice to use Eclipse PDT and symfony?

2010-12-13 Thread Daniel Lohse
If you don't put symfony into your project then you won't get autocompletion for symfony classes. There are many errors thrown by Eclipse because some parts of symfony (like the admin generator themes that use [?php instead of ?php because they are compiled at runtime) just don't validate. I

Re: [symfony-users] Re: Reg: Pagination Plugin for symfony 1.2.9

2010-12-13 Thread Alex Pilon
What are you trying to do? On Mon, Dec 13, 2010 at 08:46, Pradeep pradeep.pench...@gmail.com wrote: Hello, Can someone help me how to do the pagination of results for symfony 1.2.9 version??? On Nov 28, 10:03 pm, Pradeep pradeep.pench...@gmail.com wrote: Hello, I want to perform page

Re: [symfony-users] How to validate in model at form submission

2010-12-13 Thread Francis Besset
Hi, I advice you to read this : http://www.symfony-project.org/jobeet/1_2/Propel/en/10 Francis. 2010/12/13 himanshu hisupa...@yahoo.com I have a form which collects two dates. A check-in and a check-out date. I am able to validate all form data. I want to validate the piriod (between