[symfony-users] Re: Embedded forms

2010-03-14 Thread Thibault Jouannic
Hi, Don't use merged forms, stick to embedded forms, and create a custom template to display your form the way you like. Cheers, Thibault J. On Mar 11, 4:19 pm, Lea Haensenberger baerne...@gmail.com wrote: Hi all, I have a form with an embedded form and I'd like to reorder the fields in the

Re: [symfony-users] Re: Embedded forms

2010-03-14 Thread Lea Hänsenberger
Hi, since we have multiple forms with embedded forms I hoped there's some general solution. But custom templating for every form seems to be the easiest way to have the forms as we want them. Thanks. Cheers, Lea On Mar 14, 2010, at 12:52 , Thibault Jouannic wrote: Hi, Don't use merged

Re: [symfony-users] Doctrine - modify schema.yml

2010-03-14 Thread Kieu Anh Tuan
Hi Denis, clean-model-files works fine, thank you. Eno, doctrine:build --all does drop the database if it existes. On Sat, Mar 13, 2010 at 5:26 PM, Dennis Riedel riedel.den...@gmail.comwrote: Maybe this helps: http://www.symfony-project.org/reference/1_4/en/A-What-s-New Clean Model Files

[symfony-users] symfony propel:build --sql

2010-03-14 Thread Tahar Yazid Touaibia
The command php symfony propel:build --sql is supposed to a file with sql query in it but i don t find this file in the data folder. I am following this tutorial : http://www.symfony-project.org/jobeet/1_4/Propel/en/03 Did i miss something ? Thanks -- If you want to report a vulnerability issue

[symfony-users] Re: enormous sf

2010-03-14 Thread vero
my main.css is: *{ width:800px; } #content { display: block; margin:0 auto 0 auto; width:390px; } #footer { bottom: 0px; background-color: #8090ee; text-align: center; position: fixed; z-index: 9; } h1, p { margin-bottom: 20px; } #header { background-color: #8090ee;

[symfony-users] Flag form invalid command ?

2010-03-14 Thread MrGlass
I want to set a form as invalid, from my action. Is there a command to flag a form as invalid? and perhaps add a global error? P.S. In this case i just need it to be invalid if the user isn't logged in, but I've needed this in more complicated situations. -- If you want to report a

[symfony-users] Re: help il list

2010-03-14 Thread Belgacem TLILI
thank very much Syam i'm searchin haw to build a list of choice il my action to be displayed in the template may be i must use a doctrine query , have u an idea how i can buil the DQL of this request thanks On Mar 13, 2:01 pm, Syam s...@nexen.org wrote: I am not sure to understand, You want

[symfony-users] Re: enormous sf

2010-03-14 Thread rooster (Russ)
On Mar 14, 7:24 pm, vero vegoi...@alumni.uv.es wrote: my main.css is: *{ width:800px; } Seriously? You are setting the width of the first found element to 800px - which in your case is the sf logo. http://www.w3.org/TR/CSS2/selector.html#universal-selector I imagine this works in the

[symfony-users] Re: enormous sf

2010-03-14 Thread rooster (Russ)
Oh, and install Firebug... You would have spotted the problem straight away by selecting the element and looking to see which css rules were applying to it, and where they were coming from. Russ. On Mar 14, 8:15 pm, rooster (Russ) russmon...@gmail.com wrote: On Mar 14, 7:24 pm, vero

[symfony-users] Re: Flag form invalid command ?

2010-03-14 Thread ScherlOMatic
Hello! What's the reason for setting a form invalid? Because it should be checked after the submit request... You could try this: $this-form = new MyForm() $this-form-isBound = false; or maybe rewriting the isValid() function could help: public function isValid() { if (!$this-isBound)

[symfony-users] Can someone help me translating this Doctrine snippet to Propel?

2010-03-14 Thread Christian Schaefer
hi all, can somebody translate this simple function to use Propel instead of Doctrine? {{{ function getValueFor($tableName, $id, $columnName) { $table = Doctrine::getTable($tableName); $object = $table-find($id); return $object-$columnName; } }}} Thanks a lot! /Christian -- If you want

[symfony-users] Symfony Doctrine Query Split - limit() problem

2010-03-14 Thread feykintosh
I have a problem with Doctrine. I have a query like this: Doctrine_Query::create () -select ( u.user_id, wm.*, asi.*, ... )-from ( user u ) -leftJoin ( u.member gm ON u.user_id = gm.member_id ) // more x10 leftJoin ... -where (

Re: [symfony-users] Can someone help me translating this Doctrine snippet to Propel?

2010-03-14 Thread Jonathan Wage
function getValueFor($tableName, $id, $columnName) { $object = call_user_func_array(array($tableName.'Peer', 'retrieveByPk'), array($id)); return $object-{'get'.sfInflector::camelize($columnName)}; } I think something like this? - Jon On Sun, Mar 14, 2010 at 4:43 PM, Christian Schaefer

Re: [symfony-users] Linking to the upload path from a template.

2010-03-14 Thread Gareth McCumskey
Why not give the following a try? ?php echo link_to(image_tag('/uploads/myimages/'.$image_name), '/uploads/myimages/'.$image_name) ? On Fri, Mar 12, 2010 at 5:58 PM, Luis Alberto Zarrabeitia zarrabei...@gmail.com wrote: On Fri, Mar 12, 2010 at 2:00 AM, Gareth McCumskey gmccums...@gmail.com