[symfony-users] 1.1 forms question

2008-07-01 Thread Nicolas

Hello,

I have been implementing a new app using Symfony 1.1 since a few days.
I have implemented some forms using the new system and everything
works fine. I have two (distinct) problems however:

- I would like to have all validation errors reported as general
errors and not besides the field in error. Basically, I would like
each error to be added to a flash message. How can I do this using the
new form and validation system?

- I need to place a form in a layout file and/or in a partial. How can
I link the form in the view to a form in a controller so that its
fields are repopulated with the user's values in case of a validation
error?

Thanks,
mynab

PS: I have seen that -setError has been deprecated but could not see
its replacement. I am using a flash message instead but as wondering
if this was the right way to go...
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: 1.1 forms question

2008-07-01 Thread Yohan 'rouKs' G.


 - I would like to have all validation errors reported as general
 errors and not besides the field in error. Basically, I would like
 each error to be added to a flash message. How can I do this using the
 new form and validation system?
   
No need to use flashs, you can retrieve the list off all errors on your 
form object :
code
$form-getErrorSchema()-getErrors()
/code
 - I need to place a form in a layout file and/or in a partial. How can
 I link the form in the view to a form in a controller so that its
 fields are repopulated with the user's values in case of a validation
 error?
   
Yohan.

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfLucenePlugin Dead Slow

2008-07-01 Thread Cristiano



On Jul 1, 5:02 am, Carl Vondrick [EMAIL PROTECTED]
wrote:
 On Mon, Jun 30, 2008 at 04:31:33PM -0700, Cristiano wrote:

  On Jul 1, 1:29 am, Cristiano [EMAIL PROTECTED] wrote:
   On Jul 1, 12:01 am, Carl Vondrick [EMAIL PROTECTED]
   wrote:

On Mon, Jun 30, 2008 at 02:39:48PM -0700, Cristiano wrote:
 I installed the sfLucenePlugin and added the Propel behaviours as
 described in the manual. Everything works (I can create an index on
 the command line, and then search) but when I use actions to create
 new objects, the on-the-fly indexing goes dead slow and times out.
 It's really weird because building a new index from the command line
 on the 10 records goes extremely fast.

Can you provide more information? Can you give me a reproduceable test
case? What are your system specs? Are you using the production
environment or dev?

Carl

   I just did the same setup in 2 projects I have, and get the same
   annoying results. It just starts the process and than hangs. I am
   running it on a Macbook using MAMP. Haven't had time to test it on a
   different system yet. If I set my php timeout to a high value, it
   eventually works, but it's just dead slow.

  it seems that every time save() is called, the system takes ages to
  update the index.

 Can you profile it (using xdebug) and send the cache file?  

 Carl

I gave it a test on a different machine, and it seems to give the
following error there:

Cannot rebuild index because index is already open.

I understand the message, but not where this could come from.
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Problem with sfApplicationConfiguration in 1.1 tasks

2008-07-01 Thread Yohan 'rouKs' G.

Thanks it works now.

It would be nice to write this in the Cookbook

Yohan.

Fabien Potencier wrote:
 This only works if your task takes an application as an argument.

 Fabien

 --
 Fabien Potencier
 Sensio CEO - symfony lead developer
 sensiolabs.com | symfony-project.com | aide-de-camp.org
 Tél: +33 1 40 99 80 80


 Yohan GIARELLI wrote:
   
 Hello all,

 I've got a problem with the 1.1 tasks and Propel.

 When I do

 code
   protected function execute($arguments = array(), $options = array())
   {
 $databaseManager = new sfDatabaseManager($this-configuration);
   }
 /code

 to use the database layer i've got this message :

 code
 Catchable fatal error: Argument 1 passed to 
 sfDatabaseManager::__construct() must be an instance of 
 sfApplicationConfiguration, instance of ProjectConfiguration given, 
 called in...
 /code

 I don't understand... ProjectConfiguration is a child of 
 sfApplicationConfiguration and this code come from the cookbook...

 Thanks in advance


 


 

   


--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Why is there no way to install that 1.0.x version using pear?

2008-07-01 Thread Nicolas Perriault

On Tue, Jul 1, 2008 at 11:16 PM, Nicolas Perriault [EMAIL PROTECTED] wrote:

 http://symfonians.org/svn/branches/1.0

Woops, wrong url copy/paste :p Here's the correct sequence:

$ svn co http://svn.symfony-project.com/branches/1.0 /usr/share/php/symfony10
$ svn co http://svn.symfony-project.com/branches/1.1 /usr/share/php/symfony11
$ sudo ln -s /usr/bin/symfony10 /usr/share/php/symfony10/data/bin/symfony
$ sudo ln -s /usr/bin/symfony11 /usr/share/php/symfony11/data/bin/symfony
$ symfony10 -V
$ symfony11 -V

HTH

++

-- 
Nicolas Perriault
http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com
Phone: +33 660 92 08 76

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] API docs down

2008-07-01 Thread Charles Hilditch
Hi list,

The API docs are down:
http://www.symfony-project.org/api/1_0/
Just displaying a blank page.
Is someone able to fix this?

-- 
Charles Hilditch
Web Developer

--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Downloable Doc for Symfony 1.1

2008-07-01 Thread [EMAIL PROTECTED]

Do it yourself, download the chm project from microfost and play
along. Its not that hard.


On Jul 1, 1:27 pm, Reynier Pérez Mira [EMAIL PROTECTED] wrote:
 Hi every:
 I'm asking if exists any way to get the Symfony 1.1 Doc as downloable
 PDF or CHM or whatever. Any ideas?
 -  
 Cheers and thanks in advance
 Ing. Reynier Pérez Mira
 Grupo Soporte al Desarrollo - Dirección Técnica IP
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: the new form framework and form fields added by javascript on the client side

2008-07-01 Thread [EMAIL PROTECTED]


setting the field name to something with [] may solve the problem.

That way you can recieve an array and wirte a custom validatar that
calls sffilevalidator for each item.

Do i make sense?

On Jun 30, 5:57 pm, Jonathan Franks [EMAIL PROTECTED] wrote:
 How could one use the new form system to deal with form fields  
 generated using javascript on the client side?

 For instance, if one wanted to allow multiple file uploads like here

 http://www.fyneworks.com/jquery/multiple-file-upload/

 Ideally, each new file upload field should be validated by  
 sfValidatorFile() and its file available through the sfValidatorFile()  
 methods. But as we don't know the total number of files that might be  
 uploaded, we can't create widgets for them and assign validators.

 Thanks in advance, jonathan
--~--~-~--~~~---~--~~
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 unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---