Re: [symfony-users] Fabien's Symfony 2 presentation now available as a video

2010-02-22 Thread Gábor Fási
Works for me Thanks Ben! On Mon, Feb 22, 2010 at 09:00, Romain Pouclet pall...@palleas.com wrote: The video is private, is it normal? :x Le 22 févr. 2010 à 08:54, Ben Haines a écrit : Sorry for the delay in getting this up. HD (720p) uploads to Vimeo.com kept failing. So here is a lower

[symfony-users] Admin Generator and Retype-Password field?

2010-02-22 Thread Christian Hammers
Hello How can I configure the admin generator to display an additional retype password field and validate it with the already existing password field that's populated with the database content? The retype password should be discarded afterwards and so that the admin generator only stores the

Re: [symfony-users] Fabien's Symfony 2 presentation now available as a video

2010-02-22 Thread Dennis Benkert
Thanks for uploading it! 2010/2/22 Ben Haines ben.hai...@gmail.com: Sorry for the delay in getting this up. HD (720p) uploads to Vimeo.com kept failing. So here is a lower resolution version. Enjoy and of course thanks to all Symfony devs and sflive2010 organisers!

[symfony-users] Re: Resize images while upload without plugin

2010-02-22 Thread Antoine Delorme
thanks it help me a lot! ^^ -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more

Re: [symfony-users] Admin Generator and Retype-Password field?

2010-02-22 Thread Daniel Lohse
Hey there, they way you're doing it is definitely not the way to go. Please take a look at the admin generated interface of sfDoctrineGuardPlugin and the forms it comes with. There's already something like this is the plugin's form classes (I think it's the sfGuardAdminForm.class.php) because

[symfony-users] symfony 1.4, doctrine, i18n, another question

2010-02-22 Thread Alexander Deruwe
Hello again, I have a table with a index: unique field that needs translations. Setting the index: unique option somehow makes it impossible to have identical translations for two languages. Is there a solution to this? IMO setting any index: unique on any field in a translated table should

[symfony-users] Re: Symfony 2 and changing a Bundle in the Application

2010-02-22 Thread Matthias N.
I also thought about that. I suppose we can do several things much better now by using the DI. But what about extending a Doctrine model? Or a form? Either we need a similar concept for the Bundles as we had in sf 1.4 to extend classes - or we need a concept to always get classnames from a

[symfony-users] Admin generator ymfony 1.4 i18n question

2010-02-22 Thread Alexander Deruwe
Hey everyone, I understand how to show all required languages in the add/edit/filter admin-generator forms with embedI18n(). An issue I am facing is that in the list view, I only see non-i18n fields (only the 'id' primary key in my case)... How can I show either the current culture translation

[symfony-users] Symfony 1.2.11 How to get an i18n field in admin generator

2010-02-22 Thread Tomasz Ignatiuk
Hi I have a system with admin generated backend. My system is in 'en' language (culture). I added article in 'kr' language (culture), so now for example title field isn't shown in articles list because this article doesn't have a I18n version in en. How to fix this? I tried to overwrite getTitle

Re: [symfony-users] Fabien's Symfony 2 presentation now available as a video

2010-02-22 Thread Gareth McCumskey
Watching it now .. so far pretty impressed and looking forward to Symfony 2 :) On Mon, Feb 22, 2010 at 11:13 AM, Dennis Benkert spinecras...@googlemail.com wrote: Thanks for uploading it! 2010/2/22 Ben Haines ben.hai...@gmail.com: Sorry for the delay in getting this up. HD (720p) uploads to

[symfony-users] Re: sfValidatorChoice always invalid!!

2010-02-22 Thread wueb
It works eMerzh, thanks!! Why should the key be set as a string?? That's pretty strange. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send

[symfony-users] Re: Admin generator ymfony 1.4 i18n question

2010-02-22 Thread Dimitar
you can setup the fields in the generator.yml ... for example: fields: [title] On 21 Фев, 20:48, Alexander Deruwe alexan...@mobicomsystems.net wrote: Hey everyone, I understand how to show all required languages in the add/edit/filter admin-generator forms with embedI18n(). An issue I am

[symfony-users] Question about Symfony 2.0

2010-02-22 Thread Gareth McCumskey
Hey all, I just finished watching the presentation by Fabien about Symfony 2.0, and it really looks great. You can see that the lessons learnt developing symfony 1.x have paid off for this next major version. But I had a couple of questions... Will Symfony 2.0 have some kind of upgrade

[symfony-users] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-22 Thread Tomasz Ignatiuk
This solution works public function configure() { // (...) $this-validatorSchema-setPostValidator( new sfValidatorCallback(array( 'callback' = array($this, 'checkUniqueness'), 'arguments' = array( 'model' = 'ProduktPartner', 'multiple_column' =

RE: [symfony-users] Re: Admin generator ymfony 1.4 i18n question

2010-02-22 Thread Alexander Deruwe
Ugh, thank you very much. I tried this before I added /:sf_culture to my routes and it gave an error - and I assumed it was unrelated to the /:sf_culture thing. Assumption is the mother of all screw ups, never more true. Thanks again, Alexander -Original Message- From:

Re: [symfony-users] Question about Symfony 2.0

2010-02-22 Thread Fabien Potencier
On 2/22/10 11:53 AM, Gareth McCumskey wrote: Hey all, I just finished watching the presentation by Fabien about Symfony 2.0, and it really looks great. You can see that the lessons learnt developing symfony 1.x have paid off for this next major version. But I had a couple of questions... Will

Re: [symfony-users] Symfony 2 and changing a Bundle in the Application

2010-02-22 Thread Fabien Potencier
On 2/20/10 5:42 PM, Matthias N. wrote: Hi, did I understand it right that the src/Bundle dir in Symfony 2 is what the plugins/ dir is in Symfony 1.4 ? exact And the src/Application contains all application Bundles - no matter in what application you enable it? exact So.. my question

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2010-02-22 Thread Nicolas
Nobody has an answer ? How can we use a doctrine pager with Filter Forms ? On 18 fév, 12:40, Nicolas nicolas.soin...@gmail.com wrote: @gino pilotino When I use your code, the filters are working well, but when I click on a pagier link, it looses the filters selection. On 30 déc 2009, 19:34,

Re: [symfony-users] Re: Symfony 2 - Extremly Configurable

2010-02-22 Thread Fabien Potencier
On 2/20/10 11:03 AM, michael.pie...@googlemail.com wrote: That sounds good. And yes, the sandbox already demonstrates the bundle concept, and how a project could be layed down. I'm already playing around with it ;o) I know it's to early to ask questions, but maybe this is easy to explain: what

[symfony-users] Re: Symfony 1.2.11 How to get an i18n field in admin generator

2010-02-22 Thread Tom Ptacnik
public function getTitle($culture = null) { return $this-getTitle('kr'); } It crashes because of recursion .. you are calling this function over and over. If you want to overwrite the function, you must then call function from the parent class. probably: parent::_get('title'); On 22 ún,

[symfony-users] How to override the default login action w/ sfDoctrineGuard plugin?

2010-02-22 Thread Romain Pouclet
Hi all, I have an admin application which is secured (is_secure: true). I'd like to override its login action so I can set a specific layout and manually render the login form. Can you tell my how to do that? I started with something like this : ?php require_once sfConfig::get('sf_root_dir') .

[symfony-users] Re: How do you filter the options of a form combobox?

2010-02-22 Thread Tom Ptacnik
Do you need something like this? http://groups.google.cz/group/symfony-users/browse_thread/thread/bce8d55a3d0764c1 Or you want to set default values? On 19 ún, 16:16, Patrick Leblanc pat.lebl...@gmail.com wrote: Hello Everyone, As the title say I'm unsure on how to do this. If i look inside

[symfony-users] Re: How do you filter the options of a form combobox?

2010-02-22 Thread Tom Ptacnik
Oh sorry, now I realized what you wan to do :-) You have to modify your form class and insert into the groups_list widget only the choices which you want to display. On 19 ún, 16:16, Patrick Leblanc pat.lebl...@gmail.com wrote: Hello Everyone, As the title say I'm unsure on how to do this.

Re: [symfony-users] Re: Symfony 1.2.11 How to get an i18n field in admin generator

2010-02-22 Thread Tomasz Ignatiuk
Yes, it works! :) Thank you ver much. I used: parent::getTitle() Whole function looks like this: public function getTitle($culture = null) { $cult = sfContext::getInstance()-getUser()-getCulture(); if(strlen(parent::getTitle($cult)) 0) return parent::getTitle($cult); else

[symfony-users] Re: How to get user object on libs to not get the erro The default context does not exist.

2010-02-22 Thread Nei Rauni Santos
I had to change this function to work both on functional test and unit test. public static function getUser(){ if( ! sfContext::hasInstance() ){ $configuration = sfApplicationConfiguration::getApplicationConfiguration( sfConfig::get('sf_app') ); $context =

[symfony-users] Re: Problems installing Apostrophe CMS

2010-02-22 Thread ReynierPM
On 2/21/2010 2:52 PM, Tom Boutell wrote: The error you mention is a Postgres error, not a MySQL one, so you are probably not using our unmodified sandbox, you probably are trying to set it up for Postgres. So at this time it's not possible to install Apostrophe under PostgreSQL? To sad to

[symfony-users] Re: Symfony 2 and changing a Bundle in the Application

2010-02-22 Thread Nils Adermann
On Feb 22, 1:50 pm, Fabien Potencier fabien.potenc...@symfony- project.com wrote: On 2/20/10 5:42 PM, Matthias N. wrote: So.. my question is how do I overwrite / change code from a bundle in src/Bundle ? Just create a bundle with the same name but in the Application/ directory. And

[symfony-users] Symfony Backend help! Adding multiple records on one save instead of one at a time.

2010-02-22 Thread vk
Hi there. I'm having some difficulties figuring out how to do the following task in symfony. Lets say I have two modules in my backend called Question and Answer. A Question can have multiple answers. Now what I want to achieve is that when I'm creating a new question, I want to add text input

[symfony-users] Re: Problems installing Apostrophe CMS

2010-02-22 Thread Tom Boutell
Hi ReynierPM, I'm sure it'll be possible but we really need more complete error messages to help. The message you sent is one that, according to the documentation, Postgres doesn't generate until after something *else* in the same transaction has already failed. We probably need the very first

[symfony-users] Forms howto symfony 1.4

2010-02-22 Thread Diego Bello
Hi guys, Is there any documentation about how to use forms in symfony 1.4?. What I want to do is to change a field from text input to select. I tried rewritting the form putting the new content in lib/form/doctrine/, but the text input is still showing so I think I need some more background on

[symfony-users] Customize Output Escaper Behaviour

2010-02-22 Thread Gabriele Genta
Hello Everyone, I've got a question abount symfony 1.4. I need to put a filter on information being printed in templates (especially on model objects) and I thought that the better way of achieving it was by hooking into the output-escaping thing. I know that everything that is passed to any

[symfony-users] Re: Forms howto symfony 1.4

2010-02-22 Thread rooster (Russ)
The definitive guide will be released (under a different name) some point soon, in the meantime - the forms docs for 1.2 are pretty much the same so give those a whirl! Check out Appendix A and B (widgets and validators) any you can't go far wrong. Russ. On Feb 22, 2:49 pm, Diego Bello

[symfony-users] Array over a Form

2010-02-22 Thread Samuel Morhaim
This is maybe a regular html forms question, not neccesarily Symfony.. but.. how do I send an Array over a Form? is it possible? I have a hidden field, and I would want to send an Array in it.. is this possible? Thanks. -- You received this message because you are subscribed to the Google

[symfony-users] Re: How to get user object on libs to not get the erro The default context does not exist.

2010-02-22 Thread lawrence
On Feb 19, 12:08 pm, Nei Rauni Santos nra...@gmail.com wrote: It worked for me, do you think it's a good solution? ?php class tools {   /*    * This code is used to allow get the user object on sf 1.3    * I usually used to $sf_user = sfContext::getInstance()-getUser();    * but it

[symfony-users] Installer Script - building plugin models

2010-02-22 Thread Richtermeister
Hi all, I'm playing with the new installer script functionality, and so far things work great, except for one issue: At one point in my script I install a plugin (I use subversion externals for this, and that all works great). Then I would like to build the model, but since the plugin is not

[symfony-users] Re: Array over a Form

2010-02-22 Thread rooster (Russ)
Symfony forms by default use arrays, you've maybe just never noticed? input type=text name=user[email] / input type=text name=user[comment] / when posted this is an array... post array: array(user = array(email = something, comment = somethingelse)); It helps when binding the form, because then

[symfony-users] foreign key not substituted with title in admin-generated list

2010-02-22 Thread Max Lindner
Hi, I've set up a little site with the following schema.yml: http://www.pastebin.com/m764554b1 Everything works fine and I'm really happy and most foreign keys are substituted but no so in Container. When I create a Container with a LiveStream, the List shows me the key of the LiveStream but

[symfony-users] Problem with sfWidgetFormInputFileEditable()

2010-02-22 Thread MickyTM
hello, I'm having a problem with the widget sfWidgetFormInputFileEditable(), the widget is rendered well and all the form works but, when the form is submitted in both Editing and creating a new record the value of the field edited by the widget sfWidgetFormInputFileEditable() is updated with the

[symfony-users] Re: foreign key not substituted with title in admin-generated list

2010-02-22 Thread Max Lindner
uh. it works when I rename StaticStream to Staticstream and LiveStream to Livestream. But why? 2010/2/23 Max Lindner gisa...@googlemail.com: Hi, I've set up a little site with the following schema.yml: http://www.pastebin.com/m764554b1 Everything works fine and I'm really happy and most

Re: [symfony-users] foreign key not substituted with title in admin-generated list

2010-02-22 Thread Augusto Flavio
The correct is: public function __toString() { ... } Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: [symfony-users] Question about Symfony 2.0

2010-02-22 Thread Gareth McCumskey
Hi Fabien, Thanks for the response, its really appreciated. And its good to know that this will at least be looked at :). I do understand that not everything will be automated,but just as a baseline, with no automation, our current symfony 1.x project would take probably on the order of 6-8

[symfony-users] Form decorator

2010-02-22 Thread Gareth McCumskey
Hi guys, I have looked around for the documentation related to creating your own form decorators but the reference to it in the forms book for symfony 1.2 says look in Chapter 5 but there is no chapter 5 o.O Any pointers to where I could find the info would be appreciated. -- Gareth McCumskey

Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
Don't know about the documentation. I had to look around myself to learn about it. Take a look at this example from my blog: http://bluehorn.co.nz/2009/08/31/symfony-12-sfform-formatter-to-add-stars-on-required-fields/ On Tue, Feb 23, 2010 at 7:57 PM, Gareth McCumskey gmccums...@gmail.com wrote:

Re: [symfony-users] Form decorator

2010-02-22 Thread Gareth McCumskey
All I really want to do is add a span around two widgets (spanwidget1 /widget2 //span). I cannot do this in the template because the template is designed to display many different form types so the form class needs to define the exact structure of the form. On Tue, Feb 23, 2010 at 9:07 AM, Sid

Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
Why can't you do something like this in template: ?php echo $form['not_special_1']-renderRow(); ? labelWe are special:/label span ?php echo $form['special_a']-render(); ? ?php echo $form['special_b']-render(); ? /span ?php echo $form['not_special_2']-renderRow(); ? On Tue, Feb 23, 2010 at

Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
Oh I just understood why you can't do it LOL sorry On Tue, Feb 23, 2010 at 8:20 PM, Sid Bachtiar sid.bacht...@gmail.com wrote: Why can't you do something like this in template: ?php echo $form['not_special_1']-renderRow(); ? labelWe are special:/label span  ?php echo

Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
If you look in sfWidgetFormSchemaFormatter class, you could probably override method: public function formatRow($label, $field, $errors = array(), $help = '', $hiddenFields = null) detect the special field through the $field parameter and give it a different formatting. On Tue, Feb 23, 2010 at

Re: [symfony-users] Form decorator

2010-02-22 Thread Sid Bachtiar
Actually I got very curious and did an experiment myself.Parameter $field turns out to be a string like: 'input maxlength=50 type=text name=test[first_name] id=test_first_name /' So I guess the solution would be a little bit hacky, involving some regex to detect which field it is and give it a

Re: [symfony-users] Form decorator

2010-02-22 Thread Gareth McCumskey
Just a question if I overwrite the formatRow method how do I return the newly formatted row to wherever eg public function formatRow($label, $field, $errors = array(), $help = '', $hiddenFields = null) { /*Do stuff to make $field from input maxlength=50 type=text