[symfony-users] access embedded form fields through generator.yml

2010-01-05 Thread mitjad
There is a ticket for this in symfony trac (#5486). Did any one already did this on there own. I really need this for my current project, but don't have the time to give it a crack on my own. I know that there is a workaround possible with partials, but this would save me a lot of time. Thanks

Re: [symfony-users] Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-05 Thread Gábor Fási
sfOutputEscaperArrayDecorator means you have output escaping enabled, and any data you send to the view gets escaped for safety. You can still use it as an array, like $content_tabs[key1], the only difference you'll see is that you need not use htmlspecialchars() or anything like that. On Tue,

Re: [symfony-users] Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-05 Thread chrisyue
I also encountered a problem like that: when I pass a DOMDocument object $dom to view, I found that I can't treat $dom as array anymore, I put $dom in a foreach statement: foreach ($dom-getElementsByTagName('name') as $name ) .. It would always ouput names from a xml file untill I set escape

Re: [symfony-users] sfDoctrineGuard and behaviors

2010-01-05 Thread Lukas Kahwe Smith
On 04.01.2010, at 11:49, Lukas Kahwe Smith wrote: On 03.01.2010, at 14:07, Lukas Kahwe Smith wrote: On 02.01.2010, at 20:05, Daniel Lohse annismcken...@googlemail.com wrote: You can handle this in the global project schema.yml as it's merged automatically with the plugin schemas

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-05 Thread Massimiliano Arione
Axel, my solution is totally independ from date format. On my page (liked above) there is also an example with day/month/year On 4 Gen, 13:17, axel at axel.zu...@gmail.com wrote: Hi Massimiliano, when I use your datepicker solution I still have the problem that the date selects are

[symfony-users] how can I make normal query using Symfony and Doctrine ?

2010-01-05 Thread alexmm
I want to make normal query in symfony and doctrine without models etc. I am trying: $result = Doctrine_Manager::connection()-getDbh()-query(SELECT * FROM table)-execute(); print_r($result); but I get nothing :( -- You received this message because you are subscribed to the Google Groups

[symfony-users] From link_to to m_link_to

2010-01-05 Thread tirengarfio
HI, I have a template with an image cropper like this: http://londatiga.net/tutorials/imagecrop/example.html Now i want to show this template in a modal window, so i just changed the helper to this template from link_to to m_link_to. After that, the modal window appears but the image cropper

[symfony-users] Re: From link_to to m_link_to

2010-01-05 Thread tirengarfio
Well, what i mean is just the image cropper doesn't work inside the modal window... Javi On Jan 5, 1:29 pm, tirengarfio tirengar...@gmail.com wrote: HI, I have a template with an image cropper like this: http://londatiga.net/tutorials/imagecrop/example.html Now i want to show this

[symfony-users] Re: how can I make normal query using Symfony and Doctrine ?

2010-01-05 Thread klemens_u
Hi Alex, try this to get the PDO connection: $dbh = Doctrine_Manager::getInstance()-getCurrentConnection()-getDbh (); $result = $dbh-query(SELECT * FROM my_table); :-) Klemens On 5 Jan., 13:23, alexmm misiekaleksan...@gmail.com wrote: I want to make normal query in symfony and doctrine

[symfony-users] Re: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-05 Thread ken
you can use $object-getRaw('property'); On Jan 5, 6:34 pm, chrisyue blizzch...@gmail.com wrote: I also encountered a problem like that: when I pass a DOMDocument object $dom to view, I found that I can't treat $dom as array anymore, I put $dom in a foreach statement: foreach

[symfony-users] MySQL error with a little filter

2010-01-05 Thread tirengarfio
Hi, I have added this model and this fixture to my app: Birthday: columns: day: date Birthday: example: day: 2010-1-1 I have generated the Birthday module. Then I've generated the filter class (BirthdayFormFilter.class.php) and I have created a form filter object in

[symfony-users] Re: problem installing sfDoctrineGuard Plugin

2010-01-05 Thread el-sid
ok...i downgraded to symfony 1.3 and downloaded sfDoctrineGuardPlugin 4.0 and 3.0 followed some advice on symfony forums to do this symfony plugin:install ./sfDoctrineGuardPlugin-3.0.0.tgz rm sfDoctrineGuardPlugin-3.0.0.tgz but the symfony tool still tries to connect to the internet, even though

Re: [symfony-users] Re: problem installing sfDoctrineGuard Plugin

2010-01-05 Thread Stéphane
Please, download package, unzip it in your plugins directory and add the $this-enablePlugins('dirName'), in your projectConfiguration.class.php then plugin:publish-assets if needed. Check readme on plugin website. I'm pretty sure google would give you an answer near this one :-) Before Printing,

[symfony-users] Re: how can I make normal query using Symfony and Doctrine ?

2010-01-05 Thread alexmm
thx :) On 5 Sty, 14:01, klemens_u klem...@ull.at wrote: Hi Alex, try this to get the PDO connection: $dbh = Doctrine_Manager::getInstance()-getCurrentConnection()-getDbh (); $result = $dbh-query(SELECT * FROM my_table); :-) Klemens On 5 Jan., 13:23, alexmm misiekaleksan...@gmail.com

[symfony-users] Re: embedForm bug?

2010-01-05 Thread kierzniak
I have read many of theese tutorials. Without effect. I have unset id. But.. look at this schema of saving forms http://vousavezchoisi.com/img/formsdiagram.png I don't know if is correct but according to this image my form is saving twice to the database. First in doSave() method and second in

[symfony-users] Re: problem installing sfDoctrineGuard Plugin

2010-01-05 Thread el-sid
thanks alot. it was deceptively simple but it worked. I must have missed a step somewhere. thanks again On Jan 5, 5:29 pm, Stéphane stephane.er...@gmail.com wrote: Please, download package, unzip it in your plugins directory and add the $this-enablePlugins('dirName'), in your

[symfony-users] Is netbeans compatible with symfony

2010-01-05 Thread lucky
hi guys i'm new to symfony till now i was working without using ide now i found that netbeans 6.8 supports symfony.is there any issues coz i don wan again to struggle like earlier please if any one is working on netbeans please let me know Boss. Regards, Lucky -- You received this message

[symfony-users] Get/Set - what is more 'correct' in symfony

2010-01-05 Thread pete
I have a MySQL table that stores a 'mood id' (eg. 6) and a picture associated with that mood (eg. /images/mood_happy.png'). mood_id is referenced on other tables like 'customer_contact' but I never want to see the mood_id - everytime mood is referenced in other tables eg. customer_contact, I just

Re: [symfony-users] sfDoctrineGuard and behaviors

2010-01-05 Thread Lukas Kahwe Smith
On 04.01.2010, at 11:49, Lukas Kahwe Smith wrote: (*) the issue is caused by the way the behaviors are defined in the sfDoctrineGuard plugin: sfGuardUser: actAs: [Timestampable] in my customized plugin i used the proper (aka the one that does not require magic inside the Doctrine

Re: [symfony-users] Is netbeans compatible with symfony

2010-01-05 Thread Parijat Kalia
There was a thread earlier which discussed symfony plugins for netbeans, it's been discussed this week itself, you should do a little search for it. On Tue, Jan 5, 2010 at 12:57 PM, lucky givin.chris...@gmail.com wrote: hi guys i'm new to symfony till now i was working without using ide now i

[symfony-users] Debugging forms ..

2010-01-05 Thread dantleech
Hi all What is the best way of debugging Forms with the form framework? Im used to print_r()'ing objects, but with the nesting in sfForm framework this is a bad idea .. The problem I have is that I have a form that has a global error - There is an error with your form, but none of the fields

Re: [symfony-users] Debugging forms ..

2010-01-05 Thread Gábor Fási
This usually means you forgot to echo the csrf secret field in your form. On Tue, Jan 5, 2010 at 17:59, dantleech dan.t.le...@gmail.com wrote: The problem I have is that I have a form that has a global error - There is an error with your form, but none of the fields are highlighted. -- You

[symfony-users] Re: Debugging forms ..

2010-01-05 Thread dantleech
In this case it was because widgets in the form were not being rendered .. but that's a different story :) On Jan 5, 5:16 pm, Gábor Fási maerl...@gmail.com wrote: This usually means you forgot to echo the csrf secret field in your form. On Tue, Jan 5, 2010 at 17:59, dantleech

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-05 Thread Tom Ptacnik
Hello Axel, I like your solution, but in Opera (v. 10.10) it has broken layout little bit ... On 5 led, 11:40, Massimiliano Arione garak...@gmail.com wrote: Axel, my solution is totally independ from date format. On my page (liked above) there is also an example with day/month/year On 4

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-05 Thread Tom Ptacnik
I wanted to add a link to a printscreen to imageshack (with your datepicker in Opera), but when I add a link into this reply window it show me an error that I can't post it... On 5 led, 19:23, Tom Ptacnik to...@tomor.cz wrote: Hello Axel, I like your solution, but in Opera (v. 10.10) it has

[symfony-users] Re: Storing navigation via associative arrays in YAML

2010-01-05 Thread SB
Thank you Daniel! That was it. Now I remember reading that in the Docs. I ended up doing this: all: .navigation: tabs: main: - { slug: monitoring, link: Monitoring } - { slug: customers,link: Customers } customers: - { slug: lookup, link:

[symfony-users] Re: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-05 Thread SB
Thanks all! On Jan 5, 5:02 am, ken marfillas...@gmail.com wrote: you can use $object-getRaw('property'); On Jan 5, 6:34 pm, chrisyue blizzch...@gmail.com wrote: I also encountered a problem like that: when I pass a DOMDocument object $dom to view, I found that I can't treat $dom as array

Re: [symfony-users] Re: Storing navigation via associative arrays in YAML

2010-01-05 Thread Daniel Lohse
Cool, no problem. Glad to be of help! Cheers, Daniel On Jan 5, 2010, at 7:51 PM, SB wrote: Thank you Daniel! That was it. Now I remember reading that in the Docs. I ended up doing this: all: .navigation: tabs: main: - { slug: monitoring, link: Monitoring } -

[symfony-users] Re: Debugging forms ..

2010-01-05 Thread Florian
hello, just for info, the only way i found to get all errors compiled is this : {{{ // in lib/form/doctrine/BaseFormDoctrine.class.php // or lib/form/BaseForm.class.php public function getErrors() { $errors = array(); foreach ($this as $form_field) {

Re: [symfony-users] Re: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-05 Thread Stéphane
In a template, you can call $sf_data-getRaw('myActionProperty'); after init it like $this-myActionProperty = array('hey'='hoy'); inside an action. So you'll get your raw object : unescaped. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre

Re: [symfony-users] Get/Set - what is more 'correct' in symfony

2010-01-05 Thread Daniel Lohse
Just implement the __toString() method in your mood model class and return $this-_get('mood_image'); in it. Then you can just echo $mood in the template and it will output that path. Cheers, Daniel On Jan 5, 2010, at 12:42 PM, pete wrote: I have a MySQL table that stores a 'mood id' (eg. 6)

Re: [symfony-users] Re: embedForm bug?

2010-01-05 Thread Daniel Lohse
I don't understand this. Do you embed the same form into the same form? I'd need to see your schema and the form code where you're embedding the additional form. Cheers, Daniel On Jan 5, 2010, at 4:11 PM, kierzniak wrote: I have read many of theese tutorials. Without effect. I have unset

[symfony-users] Re: symfony 1.2 + mssql 2005 + propel + wamp

2010-01-05 Thread Vikos
I change to symfony 1.4. A tried to use ODBC connection width doctrine. The connecion works, anything else...:( Symfony can build schema. and read the db. But can't insert, or update. Now I'm trying to use DBLIB. the newest php 5.3.1 has the dll... (php_pdo_mssql.dll) But i got this message:

[symfony-users] 1.4, propel, and sfGuard problem

2010-01-05 Thread Martin Settle
I thought I might try re-writing a system I built a few years ago inside symfony. To that end, I created an Ubuntu server Vbox appliance, installed symfony 1.4, initiated a new project and app, changed the default Doctrine to Propel (I'm familiar with it), then added sfGuard. At this point I

Re: [symfony-users] Re: symfony 1.2 + mssql 2005 + propel + wamp

2010-01-05 Thread Gábor Fási
Try this one: http://trac.symfony-project.org/wiki/HowToConnectToMSSQLServer, chapter Windows host On Wed, Jan 6, 2010 at 00:40, Vikos make.webp...@gmail.com wrote: I change to symfony 1.4. A tried to use ODBC connection width doctrine. The connecion works, anything else...:( Symfony can

[symfony-users] showsuccess

2010-01-05 Thread Gabo
HELP!! Symfony print in the showSuccess text change html tags table width=100% cellspacing=1 cellpadding=1 border=1 captionEncabezado/caption tbody tr tdnbsp;/td tdnbsp;/td /tr tr tdnbsp;/td tdnbsp;/td /tr tr tdnbsp;/td tdnbsp;/td /tr /tbody /table Gabo -- You received this message

[symfony-users] created_at is intermittently blank

2010-01-05 Thread lawrence
I've a problem with the created_at field defined in my schema.yml on this site: http://www.wpquestions.com/ I've this table: sf_guard_user_profile: _attributes: { phpName: sfGuardUserProfile } id: ~ user_id: { type: integer, foreignTable: sf_guard_user,