Re: [symfony-users] How to set the Html 'value' attribute from a sfWidgetFormInputHidden

2009-11-19 Thread Gareth McCumskey
http://www.symfony-project.org/forms/1_2/en/01-Form-Creation#chapter_01_sub_defining_default_values_for_fields On Fri, Nov 20, 2009 at 12:39 AM, gato chlr wrote: > hi! > > How to set the Html 'value' attribute from a sfWidgetFormInputHidden > > i mean, > $a = new sfWidgetFormInputHidden(); > how

Re: [symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Gareth McCumskey
They don't need to ;) On Thu, Nov 19, 2009 at 9:50 PM, Simon Cast wrote: > They didn't want to learn the Symfony forms. :( > > On Sep 29, 10:34 pm, Eno wrote: > > On Tue, 29 Sep 2009,SimonCast wrote: > > > I would like to use the full Symfony layer but the person doing the > > > presenation/HTM

[symfony-users] Re: Create form manually, but add csrf-token?

2009-11-19 Thread Dennis
http://groups.google.com/group/symfony-users/browse_thread/thread/08d7a1e4b53f3bb0 On Nov 18, 8:20 pm, "Antoine S." wrote: > Hi, > > if your customised form extends sfForm, it should not be a problem, > and include the csrf, and valid it. > > Don't forget to display it in the template if you don'

[symfony-users] Re: Create form manually, but add csrf-token?

2009-11-19 Thread Dennis
addCSRFProtection(null); http://groups.google.com/group/symfony-users/browse_thread/thread/08d7a1e4b53f3bb0 On Nov 18, 8:20 pm, "Antoine S." wrote: > Hi,> > if your customised form extends sfForm, it should not be a problem, > and include the csrf, and valid it. > > Don't forget to display it in

[symfony-users] Re: Forms - a mini survey

2009-11-19 Thread Dennis
Well, no one likes to tag onto a 'whining' post. I shouldn't be surprised :-) When I'm rich, (because of using symfony), I will hire somebody to produce 'database mentality' documentation. (See Postgres docs, or Oracle docs) On Nov 12, 8:40 pm, Dennis wrote: > I have had nothing but grief when i

[symfony-users] Displaying form validation erros using ->renderGlobalErrors()

2009-11-19 Thread Chris Renfrow
I have no clue why I am having such a hard time with this, I have used the symfony form validation before, but for some reason I just can't get the errors messages to display using the renderGlobalErrors() form method. the $form['field']->hasError() works and I am using it to turn the input box bor

[symfony-users] Re: The template "TestTwigSuccess.php" does not exist or is unreadable in "".

2009-11-19 Thread Richtermeister
You're not doing anything with the output of twig. as far as the surrounding symfony application is concerned, you're executing the TestTwig action, and it's looking for a corresponding template. In your case you want to echo the twig output and then say: return sfView::NONE, or stick the twig outp

Re: [symfony-users] Re: Doctrine_Record_UnknownPropertyException

2009-11-19 Thread Paul Witschger
I did a little trial and error and found out that if you change your method call to: in my case getAddress_2() in your case getPhone_1() it will work. I'm not sure why it camel cases the function call, if it doesn't work, but I do think it may have something to do with it only containing a dig

Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-19 Thread Germana Oliveira
Wel i have this in my lib/form/AudienciaForm.class.php public function configure() { if ($this->isNew()) { $conciliadorForm = new AudienciaConciliadorForm(); $denuncianteForm = new PersonaForm(null, array('tipo' => 'natural')); $denunciadoForm = new PersonaForm(nul

[symfony-users] The template "TestTwigSuccess.php" does not exist or is unreadable in "".

2009-11-19 Thread ReynierPM
Hi every: I'm trying to use Twig on Symfony 1.4RC1. After read the docs I've wrote this piece of code: function preExecute() { require_once sfConfig::get('sf_lib_dir').'/twig/Autoloader.php'; Twig_Autoloader::register(); } public function executeTestTwig() { $loader = new Twig_Lo

Re: [symfony-users] Not quite symfony but very related (and cool)

2009-11-19 Thread Sid Bachtiar
Hahaha, very nice ... thanks for the link On Fri, Nov 20, 2009 at 1:31 PM, a...@speedypin.com wrote: > http://www.youtube.com/watch?v=a0qMe7Z3EYg&feature=player_embedded&aia=true > > Dudes pretty cool, very funny, good info presented well/authentic. > > I just wanted to share, hopefully all Symfo

[symfony-users] Not quite symfony but very related (and cool)

2009-11-19 Thread a...@speedypin.com
http://www.youtube.com/watch?v=a0qMe7Z3EYg&feature=player_embedded&aia=true Dudes pretty cool, very funny, good info presented well/authentic. I just wanted to share, hopefully all Symfony developers are upper crust developers of the industry so may find this worth a view. (I certainly like it an

Re: [symfony-users] Bonjour - nouvel utilisateur a un probleme 'unable to write cache file'

2009-11-19 Thread Sid Bachtiar
Hi Malcolm, Nice to meet you :D Some of us could probably help if we could speak French 2009/11/19 Malcolm : > Bonjour a tous! > > Avant que vous ne me sautiez dessus - le probleme est un peu plus > complexe qu'au premier regard. > > Je dois travailler sur un projet existant, sous Symfony 1.021.

[symfony-users] JIRA, Confluence, Bamboo, Fisheye... all $10 each!

2009-11-19 Thread Lee Bolding
Hey guys, I just saw on Twitter than Atlassian are offering their startup kits again - most (all?) of their products, limited to 10 users (except Crowd - 50 users) for $10 apiece. These are some SERIOUSLY good bits of software. If you have a small development team, I can't recommend them highl

[symfony-users] How to set the Html 'value' attribute from a sfWidgetFormInputHidden

2009-11-19 Thread gato chlr
hi! How to set the Html 'value' attribute from a sfWidgetFormInputHidden i mean, $a = new sfWidgetFormInputHidden(); how can i do somthing like $a->setValue($myValue); so ,when i print the $form (echo $form) the html printed result as next: .. .. Thanks a lot -- You received this m

Re: [symfony-users] SVN repo not authenticating?

2009-11-19 Thread Lee Bolding
Thanks anyway, Fabian. I just resolved it by making a fresh checkout, then manually overwriting all of the changed files. Not sure why that worked, I was still prompted for my authentication details, and still entered the same... Anyway, that means there's a brand spanking new sfErrorHandlerPl

RE: [symfony-users] Re: DBFinderPlugin future

2009-11-19 Thread Daniel Kucharski
It would be indeed nice if some effort could be made to get this plugin working on symfony 1.3/1.4. I can't migrate my 1.2 project to 1.3 as it heavily depends on this plugin. My original plan was to migrate my project at some point in the future to Doctrine and ease the transaction-pain by tempo

[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
Progress update on using Symfony as API with frontend dealt with elsewhere. It is working surprising well. The MVC aspect of Symfony makes creating REST web services easy and the View layer helps return the data nicely formatted. Symfony has been well suited to this approach. -Simon On Sep 29,

[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
No, I was following the MVC symfony stuff as described in the documents. It was the thought of learning something new. Big thing came down to he didn't want to learn the forms or the templating helpers for Symfony. In the end I couldn't be bothered trying to convince him of the better way of doi

[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
Yes and that's how I learnt it. But he saw the 100+ pages and didn't want to learn and honestly didn't want to keep the argument going. API has worked generally well. On Sep 30, 3:28 pm, david wrote: > The sf for web designers is pretty easy reading:   > http://www.symfony-project.org/forms/1_2

[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
Ended up going with API and he can write it using PHP files & JS how he likes. There is a point where it becomes easier. On Sep 30, 3:24 pm, webPragmatist wrote: > On Sep 29, 5:35 pm, Eno wrote: > > > On Tue, 29 Sep 2009,SimonCast wrote: > > > I written the application to use the full Symfony f

[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
No, they aren't using a framework at all and simply used PHP with JS. The frontend guy is more designer than dev. On Sep 30, 4:06 am, Ant Cunningham wrote: > SimonCast wrote: > > Why? Quite simply my programming skills/experience doesn't extend to > > doing what you talk about in the time I have.

[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
Yes but he got stuck on the 100 pages about the framework and honestly didn't want to argue. On Sep 29, 10:35 pm, Eno wrote: > On Tue, 29 Sep 2009,SimonCast wrote: > > I written the application to use the full Symfony framework however > > the person responsible for the UI doesn't want to learn S

[symfony-users] Re: Separating Presentation from Symfony

2009-11-19 Thread Simon Cast
They didn't want to learn the Symfony forms. :( On Sep 29, 10:34 pm, Eno wrote: > On Tue, 29 Sep 2009,SimonCast wrote: > > I would like to use the full Symfony layer but the person doing the > > presenation/HTML doesn't want to use Symfony. > > Because? (Just curious if they have any good reasons

RE: [symfony-users] symfony 1.3 - propel build error

2009-11-19 Thread Daniel Kucharski
Fabian, I updated the symfony library to the latest SVN version, now it works fine. -Original Message- From: Fabian Lange [mailto:fabian.la...@symfony-project.com] Sent: Wednesday, November 18, 2009 16:29 To: symfony-users@googlegroups.com Subject: Re: [symfony-users] symfony 1.3 - prope

[symfony-users] add class="error" to all widgets when 0 < count($errors)

2009-11-19 Thread Jack Bates
How can I add a default attribute, class="error", when any for widget is rendered and 0 < count($errors) and a class attribute isn't specified? e.g. I want, - to output, - if this field has a validation error I looked at the sfWidgetFormFormatter classes, which control the markup around wid

[symfony-users] Re: Unsubscribe from the group

2009-11-19 Thread larry
Something is wrong with Google. Just yesterday it started emailing me every messages posted here, even though I've always had my preferences set to "no email". Let's hope they get this fixed quickly. On Nov 19, 12:26 pm, "Patrick Landolt" wrote: > Same problem here! > > please remove me, too. >

AW: [symfony-users] Unsubscribe from the group

2009-11-19 Thread Patrick Landolt
Same problem here! please remove me, too. thanks Von: Damien Brugne [mailto:dbru...@x-prime.com] Gesendet: Donnerstag, 19. November 2009 18:22 An: symfony-users@googlegroups.com Betreff: [symfony-users] Unsubscribe from the group Hello Admins, Please unsubscribe me from this l

[symfony-users] Unsubscribe from the group

2009-11-19 Thread Damien Brugne
Hello Admins, Please unsubscribe me from this list. I tried to send an email to symfony-users+unsubscr...@googlegroups.com and received an error message: Delivery to the following recipient failed permanently: symfony-users+unsubscr...@googlegroups.com Technical details of permanent failu

Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-19 Thread Stefan Paschke
Hi Germana did you aggregate the object that populates the embedded form? In the main forms configure(): public function configure() { ... if ( $this->object->getPersona() == null ) { $this->object->setPersona( new Persona() ); } $persona_form = new PersonaForm( $t

Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-19 Thread Germana Oliveira
Stefan Paschke escribió: > Hi Germana > > >> I have to embedded Forms into a main Form, and i have to do this process: >> >> 1. Save the embedded Form number1 >> 2. Save the main Form (the main Form have some Foreing Key from Embedded >> Form number1) >> > > that is pretty much standard. w

[symfony-users] Error 500 index metatags in the application

2009-11-19 Thread symfony
Hello everyone, I developed a small symfony applications in which I position in google, the problem is that when I go to check the metatags of the home page (index.php) I get a 500 error when I consult with tools like "http://www. submitexpress.com / analyzer / ", but to enter another page not erro

[symfony-users] Re: cant load data from fixture to database through doctrine:data-load

2009-11-19 Thread rosb
Checks Privileges on your User db On Nov 19, 5:01 am, Shahzeb Farooq wrote: > hi all , > i am facing a problem that i have created a project all gone well but > im stuck at symfony doctrine:data-load when ever i tried to load data > from /fixtures  to database. > when i execute the command it sho

Re: [symfony-users] Raising sfValidatorError inside action?

2009-11-19 Thread Bernhard Schussek
The solution is to put the check into a pre or post validator in the form. You can pass everything into the form that is required to perform the check. Bernhard -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email

[symfony-users] Raising sfValidatorError inside action?

2009-11-19 Thread Christian Hammers
Hello Inside the executeXYZ() function of an actions.class.php I check a condition that can not be put into validators. If that condition fails I still want to have a red error message on top of the formular. How is this possible? I.e.: public function executeXYZ(sfWebRequest $request) {

[symfony-users] Re: I18n, Doctrine, Postgres, Schemas

2009-11-19 Thread jakub novotny
Problem solved. We have just added parameter tableName: schema.table_name to section I18n in file schema.yml and it works. On Nov 2, 2:34 pm, jakub novotny wrote: > I18n, Doctrine, Postgres, Schemas > > I have been working on project written in Symfony 1.2.9 with Doctrine > 1.2, where > we use se

[symfony-users] Symfony 1.3 doctrine:build-schema error

2009-11-19 Thread PhiKapJames
I just updated my libraries to what is in the repository this morning. I had made a change to my existing MySQL database schema, so I wanted to regenerate the models, etc. When I went to rebuild the schema this time, I ran into this error: jwh...@sejam-linux:~/TestSymfony$ ./symfony doctrine:bui

Re: [symfony-users] Thanks to the devs of symfony

2009-11-19 Thread Sid Ferreira
UP! On Thu, Nov 19, 2009 at 11:55, Gareth McCumskey wrote: > I know this isn't exactly an issue that needs resolving but I just had to > send my thanks to the symfony developers for producing such a great > framework. Why? you might ask. This morning our company directors held a > breakfast demo

[symfony-users] Re: DBFinderPlugin future

2009-11-19 Thread Jan Fabry
On Nov 19, 12:20 pm, Gareth McCumskey wrote: > You can stick with Propel can't you? Doctrine is only the default plugin and > can be changed to use Propel instead. Yes, the standard functionality of DbFinder might work (the simpler querying), but I was thinking about the admin generator stuff. Ho

[symfony-users] Thanks to the devs of symfony

2009-11-19 Thread Gareth McCumskey
I know this isn't exactly an issue that needs resolving but I just had to send my thanks to the symfony developers for producing such a great framework. Why? you might ask. This morning our company directors held a breakfast demo to numerous companies and potential clients to show the products and

[symfony-users] Re: cant load data from fixture to database through doctrine:data-load

2009-11-19 Thread cosmy
post your fixtures and your schema On 19 Nov, 10:01, Shahzeb Farooq wrote: > hi all , > i am facing a problem that i have created a project all gone well but > im stuck at symfony doctrine:data-load when ever i tried to load data > from /fixtures  to database. > when i execute the command it show

Re: [symfony-users] DBFinderPlugin future

2009-11-19 Thread Gareth McCumskey
You can stick with Propel can't you? Doctrine is only the default plugin and can be changed to use Propel instead. On Thu, Nov 19, 2009 at 11:18 AM, Jan Fabry wrote: > Hello, > > Is anyone working on updating DbFinderPlugin for Symfony 1.3/1.4, and > the included versions of the ORM frameworks?

[symfony-users] cant load data from fixture to database through doctrine:data-load

2009-11-19 Thread Shahzeb Farooq
hi all , i am facing a problem that i have created a project all gone well but im stuck at symfony doctrine:data-load when ever i tried to load data from /fixtures to database. when i execute the command it shows following message >> doctrine loading data fixtures from "/ho...fprojects/jobeet/dat

[symfony-users] symfony: cant load data from fixture to database through doctrine:data-load

2009-11-19 Thread Shahzeb Farooq
hi all , i am facing a problem that i have created a project all gone well but im stuck at symfony doctrine:data-load when ever i tried to load data from /fixtures to database. when i execute the command it shows following message >> doctrine loading data fixtures from "/ho...fprojects/jobeet/da

[symfony-users] Bonjour - nouvel utilisateur a un probleme 'unable to write cache file'

2009-11-19 Thread Malcolm
Bonjour a tous! Avant que vous ne me sautiez dessus - le probleme est un peu plus complexe qu'au premier regard. Je dois travailler sur un projet existant, sous Symfony 1.021. J'ai acquis la le projet du SVN. Etant sous Mac os, et mon disque dur etant formate en case-insensitive, j'ai du monter

[symfony-users] Re: sfguarduser. How to check before login ?

2009-11-19 Thread Avani
Hi Gareth, thanks verymuch. It helped. I added below line code in sfGuardBasicSecurityFilter //signour if guest user and click on login page if($this->getContext()->getUser()->getGuardUser()->getIsGuest()) { $this->getContext()->getUser()-

[symfony-users] DBFinderPlugin future

2009-11-19 Thread Jan Fabry
Hello, Is anyone working on updating DbFinderPlugin for Symfony 1.3/1.4, and the included versions of the ORM frameworks? I don't know whether François will spend more time on it, and I don't see any other activity. I would like to use it for a new project, but I guess the best way to do this is