Re: [symfony-users] Question about security in sf2

2011-06-07 Thread Gareth McCumskey
In firewalls note this line: pattern:^/ In access_control note: ^/admin So in access control any path with ^/ is a firewalled route. Therefore access is restricted. On Mon, Jun 6, 2011 at 4:57 PM, Javier Garcia wrote: > Hi, > > in the section of security of the sf2's manual there is thi

Re: [symfony-users] Question about security in sf2

2011-06-06 Thread Christophe COEVOET
Le 06/06/2011 16:57, Javier Garcia a écrit : Hi, in the section of security of the sf2's manual there is this configuration: security: firewalls: secured_area: pattern:^/ anonymous: ~ http_basic: realm: "Secured Demo Area

[symfony-users] Question about security in sf2

2011-06-06 Thread Javier Garcia
Hi, in the section of security of the sf2's manual there is this configuration: security: firewalls: secured_area: pattern:^/ anonymous: ~ http_basic: realm: "Secured Demo Area" access_control: - { path: ^/admin, rol

[symfony-users] Question about sfFormObject::saveEmbeddedForms()

2011-03-15 Thread bkuberek
symfony 1.4.10-DEV sfFormObject.class.php : line ~ 229 I have pasted an excerpt here http://pastebin.com/dD6NGAd0 My questions is, in short, why not to call $form->save($con); Instead of $form->saveEmbeddedForms($con); $form->getObject()->save($con); The later skips all the $form->save() an

Re: [symfony-users] Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Gábor Fási
Do you have include_stylesheets in your layout? Any of your view.ymls contain a [-background] directive? On Mon, Mar 14, 2011 at 12:03, Javier Garcia wrote: > Hi, > > I have this file apps/backend/config/view.yml. > > default: >  http_metas: >    content-type: text/html > >  metas: >    #title:  

[symfony-users] Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Javier Garcia
Hi, I have this file apps/backend/config/view.yml. default: http_metas: content-type: text/html metas: #title:symfony project #description: symfony project #keywords: symfony, project #language: en #robots: index, follow stylesheets:[back

Re: [symfony-users] Question about block

2011-02-11 Thread stof
On Fri, 11 Feb 2011 14:25:00 +0100, Christophe Beyer wrote: > This works great : >> {% block title %}My title - {{ parent() }}{% endblock %} > > > Nothing about this tip in the documentation, I could'nt know this. > > Thanks ! > The Twig documentation clearly says that the "parent" function e

Re: [symfony-users] Question about block

2011-02-11 Thread Christophe Beyer
This works great : > {% block title %}My title - {{ parent() }}{% endblock %} Nothing about this tip in the documentation, I could'nt know this. Thanks ! -- Christophe Le 11 févr. 2011 à 14:00, stof a écrit : > On Fri, 11 Feb 2011 13:53:00 +0100, Christophe Beyer > wrote: >> My main HTM

Re: [symfony-users] Question about block

2011-02-11 Thread stof
On Fri, 11 Feb 2011 13:53:00 +0100, Christophe Beyer wrote: > My main HTML layout looks like that : > > > > > /> > {% block title 'Default title - example.com' %} > > > I want to have only to write this in my controller layout : > {% block title %}My title{% endb

[symfony-users] Question about block

2011-02-11 Thread Christophe Beyer
My main HTML layout looks like that : {% block title 'Default title - example.com' %} I want to have only to write this in my controller layout : {% block title %}My title{% endblock %} instead {% block title %}My title - Default title - example.com{% endblock %} Ton re

Re: [symfony-users] Question about sfOutputEscaperArrayDecorator

2011-02-08 Thread Gareth McCumskey
foreach works on that object still. So I don't see the problem: $results = sfGuardUserPeer::doSelect(new Criteria()); And in the template: getUsername() ?> On Mon, Feb 7, 2011 at 8:17 PM, Javier Garcia wrote: > Hi, > > when i do a sfGuardUserPeer::doSelect(new Criteria()), i get an object >

Re: [symfony-users] Question about sfOutputEscaperArrayDecorator

2011-02-07 Thread Gábor Fási
It is useful to prevent html injection (and a few similar) attacks. Imagine the following: someone registers as "username", and then you create a user list page. If you'd simply output the name, his name would be quite big, but with symfony's output escaping simply echoing `$user->username` is safe

[symfony-users] Question about sfOutputEscaperArrayDecorator

2011-02-07 Thread Javier Garcia
Hi, when i do a sfGuardUserPeer::doSelect(new Criteria()), i get an object like this: object(sfOutputEscaperArrayDecorator)[114] private 'count' => int 1 protected 'value' => array 0 => object(sfGuardUser)[108] protected 'profile' => null protected 'group

[symfony-users] Question about raw SQL queries with Doctrine

2011-02-01 Thread JaredC
Hello, I'm new to Symfony and am trying to understand some things better. At http://www.symfony-project.org/gentle-introduction/1_4/en/08-Inside-the-Model-Layer-Doctrine there's a section on using Raw SQL queries. It gives the following example in listing 8-15: $connection = Doctrine_Manager::c

Re: [symfony-users] Question about fixtures: "the object is not defined in your data file".

2011-01-10 Thread Gábor Fási
Be careful, the YAML parser won't like you if you mess up with Indentation. Keep in mind the following simple tips when adding PHP code to a YAML file: * The statements must always start the line or be embedded in a value. * If a statement ends a line, you need to explicly output a new l

[symfony-users] Question about fixtures: "the object is not defined in your data file".

2011-01-10 Thread Javier Garcia
Hi, I have this code: sfGuardUser: utente_1: username: j.gar...@esempio.com password: 123456 utente_: username: utente_@esempio.com password: 123456 sfGuardUserProfile: profilo_1: user_id: utente_1 nome: Filippo Batistini note:

Re: [symfony-users] Question about accessing a child class from a parent class

2010-12-06 Thread Diego Bello
On Mon, Dec 6, 2010 at 9:16 AM, Javier Garcia wrote: > Hi, > > i have this schema: > > shop_products: >_attributes: { phpName: ShopProduct } >products_id: { phpName: Id, type: INTEGER, size: '11', primaryKey: > true, autoIncrement: true, required: true } >products_quantity: { phpName

[symfony-users] Question about accessing a child class from a parent class

2010-12-06 Thread Javier Garcia
Hi, i have this schema: shop_products: _attributes: { phpName: ShopProduct } products_id: { phpName: Id, type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true } products_quantity: { phpName: Quantity, type: INTEGER, size: '4', required: true } products

Re: [symfony-users] question about filter forms and multiple select widgets

2010-11-21 Thread Sebastien Armand [Pink]
I've got a blog post on how to use the form filters here: http://sf.khepin.com/2010/10/symfony-filter-forms-and-related-tables/ in the part where I explain how to use filters from related tables, I explain how to override the generation of the query part for a certain field or relation in order to

[symfony-users] question about filter forms and multiple select widgets

2010-11-18 Thread Stan McFarland
Hi, I've successfully created a filter form for my frontend app, but want to allow the user to select multiple values for a given attribute. After changing the widget to allow multiple values, I can select a single value from the select widget, and the SQL appears to be generated correctly: Befo

Re: [symfony-users] Question On 1.4 Repository

2010-11-16 Thread Gareth McCumskey
it is the most stable On 16 Nov 2010 12:48 PM, "Darren L" wrote: Hello, I am about to make an application with Symfony 1.4, however I noticed when I updated the SVN it was showing 1.4.9. Does the SVN not use the most stable? Or is 1.4.9 stable? Thanks, Darren -- If you want to report a vulnera

[symfony-users] Question On 1.4 Repository

2010-11-16 Thread Darren L
Hello, I am about to make an application with Symfony 1.4, however I noticed when I updated the SVN it was showing 1.4.9. Does the SVN not use the most stable? Or is 1.4.9 stable? Thanks, Darren -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-pro

Re: [symfony-users] question about sfValidatorSchemaCompare error codes

2010-11-12 Thread Michał Piotrowski
Hi, W dniu 12 listopada 2010 19:58 użytkownik Alexandre Salomé napisał: > Must be because a post validator is already set. Ideed - it's validator from BasesfGuardUserAdminForm defined in ./plugins/sfDoctrineGuardPlugin/lib/form/doctrine/base/BasesfGuardUserAdminForm.class.php Thanks for your he

Re: [symfony-users] question about sfValidatorSchemaCompare error codes

2010-11-12 Thread Alexandre Salomé
Must be because a post validator is already set. Try commenting the mergePostValidator to see if a post validator is already set. Inspect parent classes code also. --- Alexandre Salomé - http://alexandre-salome.fr Le 12 nov. 2010 18:03, "Michał Piotrowski" a écrit : Hi, I've got a registration

[symfony-users] question about sfValidatorSchemaCompare error codes

2010-11-12 Thread Michał Piotrowski
Hi, I've got a registration form with two fields for password $this->validatorSchema['password'] = new sfValidatorString(array(), array('required' => 'Pole wymagane.')); $this->validatorSchema['password_again'] = clone $this->validatorSchema['password']; $this->mergePostValidator(new

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-05 Thread oscar balladares
A partial is what it is, just a piece of code that appears where you called it; you should have 1 .js file per action. Think about 4 partials for 1 action, it is better to have 1 js file to refer that action instead 4 js pieces of code. This is for sure an advice only ;) 2010/11/3 JoJo > Hello

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-04 Thread Macvek
> Yup except you missed one point. His problem is that he wants to load > javascript on request when specific partials/templatea are > loaded into the > layout, possibly even through ajax requests. My answer for this is to create a object for holding actions. When I load some html through ajax,

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-04 Thread Stéphane
Yes, ok, so it's the same for slots, just check where to echo the things. Within action template or layout :) Just giving pointers, not saying "you have to do that this way" ! :) Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Envir

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-04 Thread Gareth McCumskey
Yup except you missed one point. His problem is that he wants to load javascript on request when specific partials/templatea are loaded into the layout, possibly even through ajax requests. On Thu, Nov 4, 2010 at 11:43 AM, Macvek wrote: > If JS is not generated dynamically and it doesn't generat

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-04 Thread Macvek
If JS is not generated dynamically and it doesn't generate html (document.write) then the best way is to put it in file and refer by js helper ( use_javascript() ). Then to run the code, you bind to DOM Load event to execute js. In jQuery it is $(document).ready( ... ). Encapsulating js in file l

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-04 Thread Stéphane
Putting javascript tags in the middle of the blocks the loading/computing of the page layout (or something similar). Having a slot to put all JS and echo it at the end or having a stacking func to gather all js calls and echo its array at the end (within the layout) is quite similar. Regards, B

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-04 Thread JoJo
Hi Alex and Stéphane, Thanks a lot for your suggestion. As Gareth said, my concern is how to embed javascript function from partials between ** tag. Because the return of partial will be added at the place where it is called, so the js functions are added in the middle of layout, it isn't clean

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread Gareth McCumskey
His one concern is having javascript included in the middle of HTML isntead of all at the end of the html. This tactic would still insert the javascript in the middle of everything. On Wed, Nov 3, 2010 at 12:57 PM, Alex Pilon wrote: > You could also put that js into external js files and use use

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread Alex Pilon
You could also put that js into external js files and use use_javascript to have each partial include the related external js file when it loads into the template. On Wed, Nov 3, 2010 at 05:58, Gareth McCumskey wrote: > Forgot the link: > http://www.symfony-project.org/gentle-introduction/1_4/en

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread Gareth McCumskey
Forgot the link: http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_slots On Wed, Nov 3, 2010 at 11:55 AM, JoJo wrote: > Hello everyone, > > I have a question not very technical but quite structural. > > In my modules, I use some partials to complet

Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread Gareth McCumskey
We have used slots as a way to do that so that you can create a slot at the end of your layout (just before ) and your partials can then load the javascript it needs into that slot. On Wed, Nov 3, 2010 at 11:55 AM, JoJo wrote: > Hello everyone, > > I have a question not very technical but quite

[symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-03 Thread JoJo
Hello everyone, I have a question not very technical but quite structural. In my modules, I use some partials to complete the layout. And in these partials, I use some javascript functions. So when page loaded, these javascript functions are added in the middle of template. I think that it is no

Re: [symfony-users] question about client certificate authentication

2010-11-02 Thread Alex Pilon
Hi Stan, You can override the default behavior by making a sfGuardAuth folder in your modules folder and overriding how authentication takes place. On Tue, Nov 2, 2010 at 10:15, Stan McFarland wrote: > Hi, > > I'm trying to secure an application where all users have client > certificates. I

[symfony-users] question about client certificate authentication

2010-11-02 Thread Stan McFarland
Hi, I'm trying to secure an application where all users have client certificates. I want to compare the client certificate name (available in an environmental variable) to the list of valid users kept in a database table. If the user exists in the database, I want to grant the user access -

Re: [symfony-users] question about variables in symfony 1

2010-10-27 Thread Michał Piotrowski
2010/10/27 Gustavo Adrian : > You could write a filter so on the very first request, you load the data you > need on the user's session. I tried the same with my "init" component. It worked fine for authenticated users. There was a problem with normal visitor. Maybe I did something wrong? > > 20

[symfony-users] question about variables in symfony 1

2010-10-27 Thread Michał Piotrowski
Hi, I've got a layout: [some html] [some php] [some html] [some random code] The problem is that all components needs some user data. I've got an user settings table and I need to SELECT the same user data in each component. As a result of such br00ken design sometimes I need to SELECT the s

Re: [symfony-users] Question with fowarding method

2010-10-22 Thread Thomas Ohms
Try the terms "symfony 404 customizing" in Google and you get many ways ;) Am Freitag 22 Oktober 2010, um 13:40:15 schrieb Tristan: > In the jobeet tutorial, you can access jobs only if they are valid > (<30 days) thanks to : > > method_for_query: retrieveActiveJob > > The problem is that it

[symfony-users] Question with fowarding method.

2010-10-22 Thread Tristan
In the jobeet tutorial, you can access jobs only if they are valid (<30 days) thanks to : method_for_query: retrieveActiveJob The problem is that it fowards to a 404 page. How to redirect the user to the HOMEPAGE instead of displaying a 404 page if the user try to access an outdated job ? T

Re: [symfony-users] Question with form

2010-10-20 Thread Alejandro Hurtado
Hi ileana You can add the widget to the form class ej: you can go to the lib/form/doctrine/theform.class.php where theform is the form that you want to modify (I guest that you are using doctrine and your form is base on it ) add to the configure the widget (depending of the type of widget that

Re: [symfony-users] Question with form

2010-10-19 Thread Pavel Pecheny
In your yourForm.class.php add class yourForm extends BaseyourForm { public function configure() { $this->setWidget('fieldname' , new sfWidgetFormInputText()); $this->setValidator('stuff_list' , new sfValidatorString(array('max_length' => 255))); } 2010/10/19 Martin Ibarra Cervan

Re: [symfony-users] Question with form

2010-10-19 Thread Martin Ibarra Cervantes
maybe you can try use in your form view. On Tue, Oct 19, 2010 at 11:30 AM, eliana m. wrote: > hello. > I have a question. > I can build a form with a field that does not exist in the model? > Thank you for your help. > > -- > If you want to report a vulnerability issue on symfony, please sen

[symfony-users] Question with form

2010-10-19 Thread eliana m.
hello. I have a question. I can build a form with a field that does not exist in the model? Thank you for your help. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Gr

[symfony-users] Question about i18nTable in Jobeet

2010-10-19 Thread Javier Garci
Hi, in Jobeet there is this part below of the schema: jobeet_category: _attributes: { isI18N: true, i18nTable: jobeet_category_i18n } id: ~ jobeet_category_i18n: id: { type: integer, required: true, primaryKey: true, foreignTable: jobeet_category, foreignReference:

Re: [symfony-users] Question about I18n tables

2010-10-07 Thread Gareth McCumskey
http://www.symfony-project.org/gentle-introduction/1_4/en/ On Wed, Oct 6, 2010 at 12:35 PM, Javier Garci wrote: > > Hi, > > i have this schema and fixtures: > > sedi: > _attributes: { isI18N: true, i18nTable: sediI18n } > id: ~ > > > sediI18n: > id: { type: integer,

[symfony-users] Question about I18n tables

2010-10-06 Thread Javier Garci
Hi, i have this schema and fixtures: | sedi: _attributes:{ isI18N: true, i18nTable: sediI18n} id: ~ sediI18n: id:{ type: integer, required: true, primaryKey: true, foreignTable: sedi, foreignReference: id} culture: { isCultur

[symfony-users] Question about a propel query

2010-10-04 Thread Javier GARCIA
Hi, I have this query inside a method: public static function pincopalla(){ $con = Propel::getConnection(SediI18nPeer::DATABASE_NAME); $sql = "select * from sedii18n where culture = :country UNION select * from sedii18n where culture <> :country";

Re: [symfony-users] Question on Forms

2010-10-01 Thread Gustavo Adrian
Maybe this plugin would help you: http://www.symfony-project.org/plugins/ahDoctrineEasyEmbeddedRelationsPlugin And this part of the "More with Symfony" book: http://www.symfony-project.org/more-with-symfony/1_4/en/06-A

[symfony-users] Question on Forms

2010-10-01 Thread eliana m.
Hi, I'm using symfony 1.4.3 Let me know if there is a chance to do the following: I have two modules called documents and photos. I need create a form that it serves both the documents and to the photos. Is it possible with symfony? -- If you want to report a vulnerability issue on symfony, p

Re: [symfony-users] Question about form and redirect

2010-08-12 Thread Stef
On Thu, Aug 12, 2010 at 10:15 PM, Gábor Fási wrote: > That only applies to stuff like posting to a blog or a forum - when > reloading the page does harm, for example by duplicating content. It > is ok to not redirect in case of a search. > > Thanks for your explanation! It's crystal clear ;) --

Re: [symfony-users] Question about form and redirect

2010-08-12 Thread Gábor Fási
That only applies to stuff like posting to a blog or a forum - when reloading the page does harm, for example by duplicating content. It is ok to not redirect in case of a search. On Thu, Aug 12, 2010 at 22:12, Stef wrote: > > > > > On Wed, Aug 11, 2010 at 6:44 PM, Gábor Fási wrote: >> >> Why do

Re: [symfony-users] Question about form and redirect

2010-08-12 Thread Stef
On Wed, Aug 11, 2010 at 6:44 PM, Gábor Fási wrote: > Why don't you directly post your data to the search action? You can > validate and do the search there. > > I've read that you should do a redirect when a form was submitted by POST. If I redirect I've managed to access the submitted data --

Re: [symfony-users] Question about form and redirect

2010-08-11 Thread Gábor Fási
Why don't you directly post your data to the search action? You can validate and do the search there. On Wed, Aug 11, 2010 at 18:06, Stef wrote: > Hello, > I have a search form which inherits from sfForm. When the form is "post" > submitted it is validated then redirected to the action executeSea

[symfony-users] Question about form and redirect

2010-08-11 Thread Stef
Hello, I have a search form which inherits from sfForm. When the form is "post" submitted it is validated then redirected to the action executeSearch() The problem I have is that I don't have access to data in the executeSearch() method. I understand that I can use http_query_build when doing th

[symfony-users] Question of _partial in list of admin-generator

2010-08-04 Thread Eduardo Lagares
Good night, I like know how i access the value of field in a _partial column in the list, generated by admin-generator i have the file _blocked.php how i will go access the value of this column in this file? thanks. -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] Question about object routing and slugging

2010-07-13 Thread Gábor Fási
The slug field needs to be a real column, not a virtual one that you created. When the url is accessed, doctrine is looking for a single object matching the fields found in the url - in your case, no fields, that's why you see the very first record in your table. The query logger should show someth

[symfony-users] Question about object routing and slugging

2010-07-13 Thread Javier Garcia
Hi, in order to not show the ID's of the members of my social network in the URL, I have created this route: perfil_miembro: url: /miembros/:nombre_apellidos class: sfDoctrineRoute options: { model: Usuario, type: object} param: { module: miembros, action: show} and added this line in

[symfony-users] Question about a choice widget

2010-07-09 Thread Javier Garcia
Hi, I have a choice widget in a form: |$years= range(14,130); $this->widgetSchema['age'] = new sfWidgetFormSchema(); foreach (array('from', 'to') as $value) { $this->widgetSchema['edad'][$value] = new sfWidgetFormChoice(array( 'label' => $value, 'choices' => ar

[symfony-users] Question about set/get methods of model classes

2010-07-02 Thread Javier Garcia
Hi, why the get and set methods of the model classes are created "on the air", instead of generating them when the model class is created? is there any advantage? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony

[symfony-users] Question about the Front Controller

2010-07-02 Thread Javier Garcia
Hi, in the manual this is written about the Front Controller: "Load and initiate the core framework classes." What does it mean exactly with "load" ? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.

[symfony-users] Question about set/get methods of model classes

2010-07-02 Thread Javier Garcia
Hi, why the get and set methods of the model classes are created "on the air", instead of generating them when the model class is created? is there any advantage? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony

[symfony-users] Question about set/get methods of model classes

2010-07-01 Thread Javier Garcia
Hi, why the get and set methods of the model classes are created "on the air", instead of generate them when the model class is created? -- Javi Ubuntu 8.04 - Symfony 1.3 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You receiv

[symfony-users] Question about a dialog form and submit errors

2010-06-16 Thread Javier Garcia
Hi, I have the link below that executes the action message/new which shows a form inside a jqueryui modal dialog. echo jq_link_to_remote('Enviar mensaje', array( 'url' => 'mensaje/new?receptor='.$miembro->getId().'&tipo=0&estado=0', 'update' => 'myDialog',

[symfony-users] Question about jq_link_to_remote()

2010-06-04 Thread Javier Garcia
Hi, i have a template with this below to show a dialog when the link is clicked: echo jq_link_to_remote('Enviar mensaje 2', array( 'url' => 'mensaje/new?receptor='.$miembro->getId().'&tipo=0&estado=0', 'update

[symfony-users] Question about a piece of code in sfDoctrineGuardPlugin

2010-05-24 Thread Javier Garcia
Hi, there is this code below in sfDoctrineGuardPlugin. $a = sfConfig::get('app_sf_guard_plugin_success_signin_url'); var_dump($a); $signinUrl = sfConfig::get('app_sf_guard_plugin_success_signin_url', $user->getReferer($request->getReferer())); var_dump($signinUrl); var_dump($user->getRefe

[symfony-users] Question about sfDoctrineGuardPlugin and signing

2010-05-24 Thread Javier Garcia
Hi, by default, using sfDGP, when i try to execute an action of an application with security activated, the signin form appears but the URL doesn't change to "frontend_dev.php/login". So, what should i do to get changing the URL to "frontend_dev.php/login" ? -- Javi Ubuntu 8.04 - Symfony 1

[symfony-users] Question about paths

2010-05-19 Thread Javier Garcia
Hi, in the cover page (login, register...) of my app i have this line: When i deploy my app, the that css rule is not loaded because, as i can see in Firebug, it's looking for that rules in www.tirengarfio.com/css/formularios.css instead of www.tiregarfio.com/rs2/web/css/formularios.css.

[symfony-users] Question about filter forms: search for exact words

2010-05-10 Thread Javier Garcia
Hi, i'm using in the frontend a filter form class generated (MemberFormFilter) that filters names, but for example if i write "Mar" the members called "Mary" are showed, i dont want that, i just want to show the members called "Mar", what shoud i do? I checked sfWidgetFormFilterInput document

[symfony-users] Question about forms: reuse the widgets set in the parent class or not ?

2010-05-03 Thread Javier Garcia
Hi, i have doubts about what is better practice: for example, I have this model: Message: actAs: [Timestampable] columns: sf_guard_user_id: integer(4) receptor: integer(4) type: integer(1) title: type: string(100) notnull: true content: type: string(400

Re: [symfony-users] Question about sfValidatorDate

2010-04-28 Thread Daniel Lohse
Yes, that's correct. It's also documented in the sfValidatorDate class (take a look into the API). :) On 28.04.2010, at 13:24, Alexandru-Emil Lupu wrote: > well, try this: > > $years = range(1900,date('Y')); > > 'fecha_nac' => new sfWidgetFormDate(array('years' => > array_combine($years, $year

Re: [symfony-users] Question about sfValidatorDate

2010-04-28 Thread Alexandru-Emil Lupu
well, try this: $years = range(1900,date('Y')); 'fecha_nac' => new sfWidgetFormDate(array('years' => array_combine($years, $years, it will give you an array like array('1901'=>1901, '1902'=>1902 ) On Wed, Apr 28, 2010 at 2:13 PM, Javier Garcia wrote: > Hi, > > i have this widget and

[symfony-users] Question about sfValidatorDate

2010-04-28 Thread Javier Garcia
Hi, i have this widget and this validator 'fecha_nac' => new sfWidgetFormDate(array('years' => range(1900, date('Y', 'fecha_nac' => new sfValidatorDate (array('min' => "01-01-1990", 'required' => 'Your born date is required.')), When i choose in the form for example 04/03/1

[symfony-users] Question regarding HTTP-only cookie feature

2010-04-19 Thread Yuchen Zhou
Hi all, I am a security researcher at University of Virginia, I am currently doing research on HTTP-only cookie deployment. May I ask do symfony support HTTP-only cookies, if yes, what is the default configuration for symfony? In other words, do the HTTP servers need to set HTTP-only manually or i

[symfony-users] Question about routing

2010-04-16 Thread Javier Garcia
Hi, i've installed sfDoctrineGuardExtraPlugin. I don't know what i touched exactly but now when i ask for sfGuardRegister/register this is showed: The route "sf_guard_register" does not exist. To debug my problem I have installed sfDGEP in another project, and i found out that if i remove

Re: [symfony-users] Question on Doctrine / Symfony 1.4 tutorial

2010-04-10 Thread Robert Heim
"id" is auto-generated by doctrine. Am 08.04.2010 22:08, schrieb cwis: Hello All, My name is Charles Wisniewski, we are exploring the route of adopting symfony for a large project at work. While going through the tutorial/documentation, I am confused by Doctrine's yml format: http://www.symfony-

[symfony-users] Question on Doctrine / Symfony 1.4 tutorial

2010-04-09 Thread cwis
Hello All, My name is Charles Wisniewski, we are exploring the route of adopting symfony for a large project at work. While going through the tutorial/documentation, I am confused by Doctrine's yml format: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03 specifically, this: JobeetCategory

[symfony-users] question about cache

2010-03-28 Thread Michał Piotrowski
Hi, Is it possible to do not cache an action in symfony? I've got such situation - some pages contains a different content for a different users. For example - page owner sees all his content but visitors sees only published content. When I enable cache for such page and owner refresh it all vis

[symfony-users] Question about choice widget

2010-03-25 Thread Javier Garcia
Hi, i have an edit form with a choice widget with radio buttons. Symfony renders the options in a column, but I wanted the choices in the same line this way: Sexo: Chico (o) Chica () So i have modified the code from the line to this: Chico Chica But now, how can i set the chec

[symfony-users] Question about an AJAX link and the dev and prod enviroments

2010-03-15 Thread Javier Garcia
Hi, i have this line below that shows a link to go the next page of a list. Next page The problem: as expected, it only works in the development enviroment of the frontend (frontend_dev.php). My question: what should i to get it work on both enviroments (production and development)? Using

[symfony-users] Question about a form and unset

2010-03-12 Thread Javier Garcia
Hi, i have installed sfDoctrineGuardExtraPlugin. When i execute sfGuardRegister/register i found a form with username, email, password, and confirmation password. Now i want to remove the field 'username' from the form. For that i have written this class sfGuardFormRegister extends BasesfG

[symfony-users] Question about sfWidgetFormChoice

2010-03-05 Thread Javier Garcia
Hi, I have this widget: $this->widgetSchema['age_from'] = new sfWidgetFormChoice(array('choices' => array('' =>'-', range(14,130; When i click on it to select a value, the expanded select shows a italic 14, between '-' and 14,15 Any idea? Javi -- If you want to report a vulnerabil

Re: [symfony-users] Question about bundles

2010-02-23 Thread Fabien Potencier
On 2/23/10 8:10 PM, rodc...@gmail.com wrote: Hi Fabien, How you will use the bundles, it will be normal include 'bundle.phar' before using or unpack? You will use defaultStub for autoloading classes from bundle? I want to start writing bundles and some info to "drive your way" writing code for s

[symfony-users] Question about bundles

2010-02-23 Thread rodc...@gmail.com
Hi Fabien, How you will use the bundles, it will be normal include 'bundle.phar' before using or unpack? You will use defaultStub for autoloading classes from bundle? I want to start writing bundles and some info to "drive your way" writing code for sf2.0. Sorry for my english. -- You received

Re: [symfony-users] Question about Symfony 2.0

2010-02-23 Thread Fabien Potencier
On 2/23/10 7:40 AM, Gareth McCumskey wrote: Hi Fabien, Thanks for the response, its really appreciated. And its good to know that this will at least be looked at :). I do understand that not everything will be automated,but just as a baseline, with no automation, our current symfony 1.x project

Re: [symfony-users] Question about Symfony 2.0

2010-02-22 Thread Gareth McCumskey
Hi Fabien, Thanks for the response, its really appreciated. And its good to know that this will at least be looked at :). I do understand that not everything will be automated,but just as a baseline, with no automation, our current symfony 1.x project would take probably on the order of 6-8 months

Re: [symfony-users] Question about Symfony 2.0

2010-02-22 Thread Fabien Potencier
On 2/22/10 11:53 AM, Gareth McCumskey wrote: Hey all, I just finished watching the presentation by Fabien about Symfony 2.0, and it really looks great. You can see that the lessons learnt developing symfony 1.x have paid off for this next major version. But I had a couple of questions... Will

[symfony-users] Question about Symfony 2.0

2010-02-22 Thread Gareth McCumskey
Hey all, I just finished watching the presentation by Fabien about Symfony 2.0, and it really looks great. You can see that the lessons learnt developing symfony 1.x have paid off for this next major version. But I had a couple of questions... Will Symfony 2.0 have some kind of upgrade capability

[symfony-users] Question Regarding Forms And Their Names

2010-02-03 Thread Darren884
I ran into a form with this customer[amount[text] What is that [text]? And how do I apply it to other fields? I have been having issues with other fields and I believe the [text] is the answer. -- You received this message because you are subscribed to the Google Groups "symfony users" group. T

Re: [symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread DEEPAK BHATIA
// Option argument as an associative array 'special_link')) ?> Or ***Use this Class name in your CSS File.* On Tue, Dec 22, 2009 at 10:53 AM, DEEPAK BHATIA wrote: > link_to is not an HTML tag, please read CSS carefully. > > > On Tue, Dec 22, 2009 at 12:40 AM, tirengarfio wrote: >

Re: [symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread DEEPAK BHATIA
link_to is not an HTML tag, please read CSS carefully. On Tue, Dec 22, 2009 at 12:40 AM, tirengarfio wrote: > Hi, > > I have created a menu using link_to. I want define a CSS rule for > these links. > > I expected it works writing something like this: > > #menu link_to { > > } > > But the rule o

Re: [symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread gato chlr
link_to is just a helper, its out put is a string, and the content of that string is an HTML 'a' tag. 2009/12/21 Gábor Fási > Link_to outputs an tag, it is not confusing at all. Also, symfony > developers cannot change css standards. > > On Mon, Dec 21, 2009 at 20:10, tirengarfio wrote: > > Hi

Re: [symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread Gábor Fási
Link_to outputs an tag, it is not confusing at all. Also, symfony developers cannot change css standards. On Mon, Dec 21, 2009 at 20:10, tirengarfio wrote: > Hi, > > I have created a menu using link_to. I want define a CSS rule for > these links. > > I expected it works writing something like th

[symfony-users] Question about links using link_to and CSS rules

2009-12-21 Thread tirengarfio
Hi, I have created a menu using link_to. I want define a CSS rule for these links. I expected it works writing something like this: #menu link_to { } But the rule only works if i write it in this way: #menu a { } Am i doing this right? Dont you think this way ("link_to" in the view and "a"

Re: [symfony-users] question about sf jobeet tutorial Day 5 sfError404Exception

2009-12-16 Thread Alexandru-Emil Lupu
Adding some fixtures, maybe? Check the jobeet code. I might think that you have a forward404Unless or something like that. Alecs sent via htc magic On Dec 16, 2009 10:43 PM, "mars" wrote: i followed the day 5 tutorial, aftre change route to sfDoctrineRoute, i got the correct url format as spec

[symfony-users] question about sf jobeet tutorial Day 5 sfError404Exception

2009-12-16 Thread mars
i followed the day 5 tutorial, aftre change route to sfDoctrineRoute, i got the correct url format as specified in the tutorial: http://jobeet.localhost/frontend_dev.php/job/sensio-labs/paris-france/1/web-developer however the page wont' display, got sfError404Exception: Action job/ sensiolabs doe

Re: [symfony-users] Question about link_to_remote: 'complete' option

2009-12-16 Thread DEEPAK BHATIA
Try this way... 'publishing/refresh', 'complete' => 'updateclass()' )) ?> On Mon, Dec 14, 2009 at 5:38 PM, tirengarfio wrote: > Hi, > > i want to change the class of a after clicking a link. In the > same time i would like to execute a symfony action. For that, im using > link_to_remote

  1   2   >