[symfony-users] Re: Pass ?variable=value to admin generator form via GET

2009-09-09 Thread Wagner Pinheiro
Hi, See this: http://snippets.symfony-project.org/snippet/253 cheers, Wagner Pinheiro On Sep 7, 1:24 pm, Christian Hammers c...@lathspell.de wrote: Hello I have anAdminGenerator form with several input fields. Now I want a link like /index.php/gu_historie/new?myinput=foo which not only

[symfony-users] Routes of action links in admin module

2009-09-09 Thread Jose San Gil
Hi all, I'm working with the sfDoctrineGuardPlugin. I customized the sfGuardUser module and the routing.yml file: sfGuardUser_new: url: /usuarios/new.:sf_format class: sfDoctrineRoute options: model:sfGuardUser module: sfGuardUser type: object

[symfony-users] Re: how to use the cli command data-dump

2009-09-09 Thread Sholeh Hadi Setyawan
If you use the 1.0 version, should it be propel-load-data instead of propel-dump-data? CMIIW. I don't know what about the newer version command. HTH, Sholeh On Wed, Sep 9, 2009 at 12:36 PM, sunny asim...@gmail.com wrote: hi i have appliaction name civil and my file name is filenew.yml in

[symfony-users] Re: an intermitent bug, involving an error about favicon.ico

2009-09-09 Thread Bernhard Schussek
Hi Jake, Can you try to access the favicon directly on the server? The problem probably is that the favicon is requested by the login page. Instead of loading an image, the symfony stack is launched, redirects to the login page and stores the requested page in the session, which was the favicon.

[symfony-users] Re: overriding sfFormField renderRow method

2009-09-09 Thread Bernhard Schussek
Hi, Unfortunately it is currently not possible to replace the class sfFormField with a custom implementation. What are you trying to achieve? Bernhard -- Software Architect Engineer Blog: http://webmozarts.com --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: Many-to-many Relation -- Display fields comma separated in a list-view

2009-09-09 Thread Bernhard Schussek
Hi, Check the admin generator documentation about custom fields: http://www.symfony-project.org/book/1_2/14-Generators#chapter_14_sub_fields I suggest you add the method getAuthorNames() to your Book model, that returns the names of all authors as array. Then you add the field _author_names to

[symfony-users] generator.yml disable field

2009-09-09 Thread smellycat37
hi, I try to use the symfony admin generator, do you know how disable a field in a the form? I tried this in the generator.yml file but it doesn't work : config: actions: ~ fields: created_at: {params: disabled=true} updated_at: {params: disabled=true}

[symfony-users] Re: how to use the cli command data-dump

2009-09-09 Thread sunny
hi i have appliaction name civil and my file name is filenew.yml in data /fixture directory how to dump data into it i have syntax $ php symfony propel:dump-data APPLICATION_NAME FIXTURES_DIR_OR_FILE [ENVIRONMENT_NAME] --~--~-~--~~~---~--~~ You received this

[symfony-users] Re: how to use the cli command data-dump

2009-09-09 Thread Gábor Fási
Output of `php symfony help propel:data-dump`: Usage: symfony propel:data-dump [--application[=...]] [--env=...] [--connection=...] [--classes=...] [target] Aliases: propel-dump-data Arguments: target The target filename Options: --application The application name (default: 1)

[symfony-users] Re: generator.yml disable field

2009-09-09 Thread chakir ezziani
Pay attention to the indentation bug, you must not have a (tabulation) in your file 2009/9/9 smellycat37 charley.mail...@gmail.com hi, I try to use the symfony admin generator, do you know how disable a field in a the form? I tried this in the generator.yml file but it doesn't work :

[symfony-users] Self-referencing objects (a variantion of M:M)

2009-09-09 Thread Crafty_Shadow
In a project I have recently started I need to show a connection between objects. For the sake of example let's say I have a database structure similar to: child_record: id: ~ name: { type: varchar(255), required: true } slibling_relation:

[symfony-users] Re: generator.yml disable field

2009-09-09 Thread smellycat37
Thanks for your answer but I don't have any identation character... I can see all the character (space, tab, \r, \n) in my IDE... Is it the good syntax for adding to a field the html param disabled=disabled ? On 9 sep, 14:12, chakir ezziani ezziani.cha...@gmail.com wrote: Pay attention to the

[symfony-users] Re: How do the *.css from a forms getStylesheets() get on the final web page?

2009-09-09 Thread Eno
On Tue, 8 Sep 2009, Christian Hammers wrote: That worked fine with only one widget but now I have two ncWidgetFormDynDateTime input fields in the same form and the Admin Generator, who does this include_javascript_for_form($form), gives: link rel=stylesheet type=text/css media=all

[symfony-users] Re: generator.yml disable field

2009-09-09 Thread chakir ezziani
No, it's not that, if you want to disable a field you must not write it in the display option list: display: [id, name, weighting, created_at, updated_at, published]; h0ere you display all the fields in the list action. i think that your generator.yml is correct 2009/9/9 smellycat37

[symfony-users] Re: generator.yml disable field

2009-09-09 Thread Mr_chon
Hi, I'm not sure you can use the disabled param for dates. If all you want is to display those dates, you could set their type as plain. your fields part would be like this : fields: created_at: { type: plain } On Sep 9, 12:59 pm, smellycat37 charley.mail...@gmail.com wrote: hi, I try to

[symfony-users] Re: generator.yml disable field

2009-09-09 Thread smellycat37
charki ezziani : I want to see the field value in my html form... I just want to render it not modiabled... Mr_chon : I try on a field type varchar(30) and it doesn't work too... config: actions: ~ fields: name: {params: disabled=true} list: display: [id,

[symfony-users] Re: generator.yml disable field

2009-09-09 Thread José Nahuel Cuesta Luengo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 smellycat37 escribió: charki ezziani : I want to see the field value in my html form... I just want to render it not modiabled... Mr_chon : I try on a field type varchar(30) and it doesn't work too... config: actions: ~ fields:

[symfony-users] Re: generator.yml disable field

2009-09-09 Thread smellycat37
thanks, I know it's possible to do it in the form object... but is there a way to do it in the generator.yml? for information, I use doctrine... On 9 sep, 15:39, José Nahuel Cuesta Luengo ncue...@cespi.unlp.edu.ar wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 smellycat37 escribió:

[symfony-users] problem with undefined table and embedded form

2009-09-09 Thread Abraham
Recently i embedded a form to another one and everything went just fine, i could save a new row and also edit it without any problem... i submitted the change to my svn repository... my pc was pretty slow so i decided to format it, i installed WAPP and all the necessary stuff again... i checked

[symfony-users] Re: problem with undefined table and embedded form

2009-09-09 Thread Eno
On Wed, 9 Sep 2009, Abraham wrote: now the error: 500 | Internal Server Error | Doctrine_Connection_Pgsql_Exception SQLSTATE[42P01]: Undefined table: 7 ERROR: no existe la relación «vehiculo_placa_seq» LINE 1: SELECT CURRVAL('vehiculo_placa_seq') Your Apache error log might show the SQL

[symfony-users] Re: problem with undefined table and embedded form

2009-09-09 Thread Abraham Montilla
the error log shows the same: [Wed Sep 09 12:39:08 2009] [error] [client 127.0.0.1] SQLSTATE[42P01]: Undefined table: 7 ERROR: relation \xc2\xabvehiculo_placa_seq\xc2\xbb doesn't exist\nLINE 1: SELECT CURRVAL('vehiculo_placa_seq')\n ^, referer:

[symfony-users] ysfYUIPlugin state. Is this plugin dead?

2009-09-09 Thread Tiago Nunes
Hi. I'm looking for a good plugin to act as a wrapper to YUI. Because I think ysfYUIPlugin has been developed by Yahoo developers, it's the most promising YUI symfony plugin I can think of. The problem is that the plugin looks dead to me! In the plugin page

[symfony-users] Re: problem with undefined table and embedded form

2009-09-09 Thread Abraham Montilla
I found the solution, however i don't understand why it worked before without any problems... Turns out that i had the placa attribute of Vehiculo (its PK) with the autoincrement set to true, removing that line from the schema.yml i finally could save a new row in the table, i tried with that

[symfony-users] Re: Routes of action links in admin module

2009-09-09 Thread Jose San Gil
anybody? I just want to change the URL from the actions links. I'm talking about the links automatically placed by symfony. thanks Jose A On 9 sep, 23:07, Jose San Gil jsangi...@gmail.com wrote: Hi all, I'm working with the sfDoctrineGuardPlugin. I customized the sfGuardUser module and the

[symfony-users] Re: ysfYUIPlugin state. Is this plugin dead?

2009-09-09 Thread Dustin Whittle
Hi Tiago, The plugin is not dead, but I have been waiting for the release of YUI3 and YUI3 widgets before I work on it. I don't really plan to support ysfYUIPlugin for YUI 2.x (the 1.1 and 1.2 branches).. I am actively working on the 1.3 branch (which is based on YUI 3.x). The biggest problem

[symfony-users] Re: ysfYUIPlugin state. Is this plugin dead?

2009-09-09 Thread Tiago Nunes
Hi Dustin, Thanks for your response. I just have a few more questions. :) Does YUI 3.x replace YUI 2.x? I know they can work together and don't have namespace collisions, but does YUI 3.x provide all the widgets and functionality already present in YUI 2.x? Also, when is YUI 3.x stable

[symfony-users] Re: overriding sfFormField renderRow method

2009-09-09 Thread steady
I am hoping to accomplish something similar to what is discussed in this ticket: http://trac.symfony-project.org/ticket/5838 I thinking of passing a multidimensional array into renderRow() in the attributes parameter. I could then pass one of the sub arrays to renderField() and another to

[symfony-users] Re: an intermitent bug, involving an error about favicon.ico

2009-09-09 Thread Jake Barnes
An easy fix for your problem is adding a favicon.ico to your document root. Also make sure that the login page doesn't require any other images that do not exist on the server. I'm sorry if I wasn't clear, but I've already tried this. Now what happens is that you fill in your username and

[symfony-users] Re: ysfYUIPlugin state. Is this plugin dead?

2009-09-09 Thread Dustin Whittle
Tiago, Yes, YUI 3.x will replace YUI 2.x and there will be the same widgets and functionality. Also, see the yuilibrary.com for more information and a timeline. I believe widgets will be released end of ear. Cheers, Dustin On 9/9/09 1:14 PM, Tiago Nunes xec...@gmail.com wrote: Hi Dustin,

[symfony-users] Re: How can I custom the default css path

2009-09-09 Thread Tugdual SAUNIER
Hi Tom, stylesheet_path() with an url like 'your_css.css' will use it as relative and prepend '/css/'. But apparrently if you put a / at the begining it use it as absolute link. I use this behaviour in the _assets.php of our admin generator: [?php use_stylesheet('?php echo

[symfony-users] Re: an intermitent bug, involving an error about favicon.ico

2009-09-09 Thread Thomas Rabaix
looks to me the sfGuardPlugin keeps the last referer to your favicon url. This can happen if the file does not exist, then symfony catch the call. Your app require authentication, so guard plugin keep the referer as the favicon. So next time you login it works... The favicon call can be done

[symfony-users] Re: an intermitent bug, involving an error about favicon.ico

2009-09-09 Thread Tugdual SAUNIER
I also noticed that (in particular with Safari on MacOS X) and I had the same conclusion. I never had again the problem after adding a favicon.ico ... Le 10/09/09 00:02, Thomas Rabaix a écrit : looks to me the sfGuardPlugin keeps the last referer to your favicon url. This can happen if the

[symfony-users] Re: problem with undefined table and embedded form

2009-09-09 Thread Eno
On Wed, 9 Sep 2009, Abraham Montilla wrote: and as i said, i don't know why did it work before cause the autoincrement line is set from the beginning of the project, therefore, the firstime i embedded the form and added a new row that line was in schema.yml :S i really don't know what did i

[symfony-users] how can i customize field error format?

2009-09-09 Thread dagger
Hi, How can i achieve the following? make errors appear like this strong class=errorRequired/strong or like label Username br/ strong class=errorRequired/strong /label instead of the standard formatting in an un-ordered list ul liRequired/li /ul without having to change any core

[symfony-users] Re: how can i customize field error format?

2009-09-09 Thread Jeremy Thomerson
You can render the forms however you want - see the 24 hour tutorial page about forms. Unfortunately, it leaves you rendering all of the forms yourself. But you could use a helper for this. I would recommend just using CSS on the error HTML to style it however you want. That will be the much