[symfony-users] [17794] breaks inclusion of js/css in components

2009-06-03 Thread Dennis Verspuij
Hello, The only way to succesfully add stylesheets and javascripts using the use_stylesheet() and use_javascript() helpers from component slots templates was to let the sfCommonFilter add all stylesheets and javascripts implicitely after rendering a page (thus not including include_stylesheets()

[symfony-users] Re: [17794] breaks inclusion of js/css in components

2009-06-03 Thread Fabian Lange
Hi Dennis, You can just include include_stylesheets() and include_javascripts() calls where you want the stuff to go to. if you want to have exactly the same behaviour as before, just put them before the end of the head tag. I dont understand why you think the common filter did something

[symfony-users] Re: [17794] breaks inclusion of js/css in components

2009-06-03 Thread Dennis Verspuij
Hi Fabien Thanks for your prompt reply. The problem is that the common filter inserted the link and script tags áfter generating the whole layout body, so when I use use_javascript and/or use_stylesheet in the template of a component I include by using include_component_slot() in the body of a

[symfony-users] Re: [17794] breaks inclusion of js/css in components

2009-06-03 Thread Fabian Lange
Hi Dennis, i am Fabian, not Fabien. Now I understand your issue. The point is that there will be always a layer where it is too late. basically all used javascripts and stylesheets must be known before the layout is rendered. Rendering the layout should not have effects on anything else. Your

[symfony-users] Re: [17794] breaks inclusion of js/css in components

2009-06-03 Thread Dennis Verspuij
Fabian, Sorry for the name exchange, they look so alike I didn't notice. I think my case is not so rare, components often render a block somewhere in a page with their own looks, thus their own styles. Sometimes they also require their own javascripts. In my case the stylesheets/ javascripts

[symfony-users] Re: Cpanel + symfony

2009-06-03 Thread Sid Ferreira
1) You would need to fix the WEB folder name in your project2) Take a look in memory limits 3) check the freaking permission FYI: Just uploaded to a CPanel :p On Wed, Jun 3, 2009 at 10:28, juaninf juan...@gmail.com wrote: If I have a server with cpanel its possible install symfony, exist any

[symfony-users] Re: Cpanel + symfony

2009-06-03 Thread Sid Ferreira
Well, I didn't had to care about it... On Wed, Jun 3, 2009 at 10:43, juaninf juan...@gmail.com wrote: all?, because when i worked with propel in the php settings, have that enabled extension=php_xsl.dll On 3 jun, 15:38, Sid Ferreira sid@gmail.com wrote: 1) You would need to fix the WEB

[symfony-users] Re: Cpanel + symfony

2009-06-03 Thread juaninf
all?, because when i worked with propel in the php settings, have that enabled extension=php_xsl.dll On 3 jun, 15:38, Sid Ferreira sid@gmail.com wrote: 1) You would need to fix the WEB folder name in your project2) Take a look in memory limits 3) check the freaking permission FYI: Just

[symfony-users] Javascript Issue - Not getting all objects of the html tag created

2009-06-03 Thread DEEPAK BHATIA
Hi, I have a javascript function function dist2(value1,value2) { var des = description; for(m=value1;mvalue2;m++) { document.write(document.getElementById(des+m)+BR); } return false; } The id's of the text area are built as given below ==

[symfony-users] Doctrine build SQL error

2009-06-03 Thread FlyLM [ML]
Hi, I've finished a project under Symfony / Doctrine. Developers have worked on Mac OS X and Windows. When I try to install the project on Linux (Gentoo, PHP 5.2.9), the task doctrine:build-sql fails with this error : Fatal error: Class 'I18N' not found in

[symfony-users] handing many-to-many relationship forms

2009-06-03 Thread Mo Mughrabi
Hi all, I have two tables which contain data and one table is a relationship between the two tables for example table1 id: name: longvarchar created_at: table2 id: name: longvarchar created_at: rel_table: table1_id: table2_id: my question is how do i embed rel_table when i

[symfony-users] Weird upload problem

2009-06-03 Thread Sid Ferreira
Sample schema: tableA: id: ~ title : varchar(16) tableB: id: ~ a_id: (FK) file: varchar(64); tableC: id: ~ a_id: (FK) file: varchar(64); In the forms, TableA embed all TableB and TableC that belongs to it. Sometimes the upload of B simply fails. why? obs: I

[symfony-users] Re: Which classes should I use for this validation logic?

2009-06-03 Thread Campezzi
Hi Alex, I haven't looked too deep in the subject, so this is not going to be a magical solution ;) But since there's some validation logic that involves more than 1 field, you'll have to play around with global validators - take a look at

[symfony-users] sfDoctrineRoute does not match

2009-06-03 Thread Eric
Hi, I have a form and I use the following route as url: --- routing.yml messages_view_conversation_update: url: /messages/reply/:id/update # class: sfDoctrineRoute options: { model: Conversation, type: object } param: { module: messages, action: reply, id: 1 }

[symfony-users] Re: Doctrine build SQL error

2009-06-03 Thread FlyLM [ML]
I've the same problem on a Debian Dedicated server :-( 2009/6/3 FlyLM [ML] flylm...@gmail.com: Hi, I've finished a project under Symfony / Doctrine. Developers have worked on Mac OS X and Windows. When I try to install the project on Linux (Gentoo, PHP 5.2.9), the task doctrine:build-sql

[symfony-users] Re: Weird upload problem

2009-06-03 Thread Campezzi
Hi Sidney, Unfortunately, there seems to be a bug with files uploaded inside embedded forms in symfony. You'll find a workaround in this URL: http://stereointeractive.com/blog/2008/12/23/symfony-12-upload-a-file-inside-an-embedded-form/ Also, it appears that when using this workaround you

[symfony-users] Re: Weird upload problem

2009-06-03 Thread Sid Ferreira
Yep, Brazillan too! Well, the weird point is that I use a LOT this embeded forms, and just _few_ some times it happens... On Wed, Jun 3, 2009 at 15:24, Campezzi campe...@gmail.com wrote: Hi Sidney, Unfortunately, there seems to be a bug with files uploaded inside embedded forms in symfony.

[symfony-users] symfony propel-build-schema

2009-06-03 Thread Yulimar
Hola! Alguien me puede ayudar a descifrar el siguiente error:?? PHP Fatal error: Call to a member function getColumn() on a non- object in /usr/share/php5/PEAR/symfony/plugins/sfPropelPlugin/lib/ vendor/propel-generator/classes/propel/engine/database/reverse/pgsql/ PgsqlSchemaParser.php on line

[symfony-users] Setting labels and help messages

2009-06-03 Thread Steve the Canuck
I was wondering if anyone has devised a method to set all the labels and help messages using some sort of lookup technique from a configuration file? Ideally, it would be great to do this for validation error messages also. Steve --~--~-~--~~~---~--~~ You

[symfony-users] sfForm and birthday field

2009-06-03 Thread Sid Bachtiar
Hi all, Any standard solution for birthday field? sfWidgetFormDate seems to only support Unix timestamp which is limited to year from 1970? Which mean the oldest person's birthday that can be recorded is 39 years old. -- Blue Horn Ltd - System Development http://bluehorn.co.nz

[symfony-users] Re: Adding a field to sfGuard Signin

2009-06-03 Thread Reynier Perez Mira
As to your second question, I've integrated LDAP with sfGuard in the past. First off, I used adLDAP (http://adldap.sourceforge.net/ documentation.php) to connect to the LDAP server. Then I created my own class (myLDAP) with a static method for checking a username and password against

[symfony-users] Referer problem with sfGuardPlugin

2009-06-03 Thread Steve the Canuck
Hi, I'm getting a problem. I have a registration confirmation screen which the user gets to by clicking on a link in an email. After getting a confirmation, the user can login. However, sfGuardPlugin sends the user to the referer if there is a referer. It seems that this is causing the code

[symfony-users] Weird Schema Error

2009-06-03 Thread Sid Ferreira
Hi guys!I can't share the content of my schema, but, it happens that it simply can't locate one of the tables. The structure is like: TableA TableB (FK to A) TableC (FK to B) TableD (FK to A) TableE (FK to C) I tried to rename, reorder fields, everything... what may it be? -- Sidney G B

[symfony-users] Re: Referer problem with sfGuardPlugin

2009-06-03 Thread Steve the Canuck
I've figured out what I need to change for this, but I don't understand why other people wouldn't have the same problem. I changed the following line in BasesfGuardAuthAction: $user-setReferer($this-getContext()-getActionStack()-getSize() 1 ? $request-getUri() : $request-getReferer()); to:

[symfony-users] Re: Weird Schema Error

2009-06-03 Thread Frank Stelzer
Hi, Is the order of the tables like in your example? Are the tables split up into different schema files? Frank Am 04.06.2009 um 05:56 schrieb Sid Ferreira: Hi guys! I can't share the content of my schema, but, it happens that it simply can't locate one of the tables. The structure is