[symfony-users] datagrid plugin

2010-03-15 Thread Sela
i installed this plugin and realised the suggested configuration doesn't work with symfony 1.4 as when checking the log i could see it tried to call formhelper.php that isn't supported in symfony 1.4. what should i do then? -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Symfony License issue

2010-03-15 Thread Avinash
Hi There, I am not sure if this is right place, but I need to clear my doubt that if i can create a symfony based product for selling instances to clients without paying to any one or there is any paid version of symfony framework. I do have gone through licenses posted on

[symfony-users] before_filter-like function on Symfony

2010-03-15 Thread Andree Surya
Hi there, On one module, can I create a rule that allow one action to be executed before any others? For example, I have a function requireLogin that will redirect any anonymous user to a login page. This method should be executed before any other action is taken. To those who familiar with Ruby

[symfony-users] Starting with symfony on Debian

2010-03-15 Thread spyker
I am working on a Debian (Squeeze/Sid) system (I want to try out symfony and I have downloaded the svn version of 1.4, copied it to ~/ programmeer/php/jobeet/lib/vendor/symfony and ran $ php lib/vendor/symfony/data/bin/symfony -V PHP Deprecated: Comments starting with '#' are deprecated in /etc/

Re: [symfony-users] Symfony License issue

2010-03-15 Thread Alexandru-Emil Lupu
I think you can sell without any problems. You are selling your work, not the framework itself. In fact , you can sell only your app, and let the user install symfony. Anyway, you can donate to the sf project, if you are not comfortable that you are using the framework for free... Alecs On Sat,

Re: [symfony-users] Symfony License issue

2010-03-15 Thread Georg Gell
Hi, checkout symfony and execute find . -name 'LICENSE*' in it's folder. Am 13.03.2010 10:29, schrieb Avinash: Hi There, I am not sure if this is right place, but I need to clear my doubt that if i can create a symfony based product for selling instances to clients without paying to any

Re: [symfony-users] before_filter-like function on Symfony

2010-03-15 Thread Gareth McCumskey
symfony has an authentication security system already built in ready for use as well as a plugin developed by the core team to add additional functionality to that called sfGuard http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_action_security It essentially does

[symfony-users] Re: before_filter-like function on Symfony

2010-03-15 Thread Andree Surya
Thanks! On Mar 15, 1:54 pm, Gareth McCumskey gmccums...@gmail.com wrote: symfony has an authentication security system already built in ready for use as well as a plugin developed by the core team to add additional functionality to that called sfGuard

[symfony-users] Re: before_filter-like function on Symfony

2010-03-15 Thread Davide Borsatto
Gareth suggested a specific use case (the authentication), but if you need something more specific, you can add sfActions::preExecute() and sfActions::postExecute(), which are self-explaining :) The only flaw, compared to rails, is that preExecute and postExecute are executed for every action you

[symfony-users] Propel extend Criteria different functions

2010-03-15 Thread HAUSa
If you want to make OR term in Propel, you need to make a Criterion object that adds the OR terms to the Criteria object. Now I build my Criteria by use of several functions. This is the first: public static function getAttentionCriteria(Criteria $oCriteria = NULL){

[symfony-users] Re: m:n with orderBy setting in yml is ignored

2010-03-15 Thread axel at
hello, I found a solution by adding a default sort order to the Visitor model: Visitor: options: orderBy: name ASC columns: id: ... On 16 Feb., 16:06, Tom Ptacnik to...@tomor.cz wrote: I think there were topic like that, and if I remember right the answer is bad ... it's not

[symfony-users] Using subqueries under Doctrine

2010-03-15 Thread NOOVEO - Christophe Brun
I'm trying to create a query like this one : select commande_id, statut_commande_id, id from historique_commande h where h.id = (select max(j.id) from historique_commande j where j.commande_id = h.commande_id group by j.commande_id) having h.statut_commande_id = 1 ; This is to be used as a

[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. a href=# onclick=new Ajax.Updater('lista_miembros', '/frontend_dev.php/miembros/filtrar?page=2')Next page/a The problem: as expected, it only works in the development enviroment of the frontend (frontend_dev.php).

Re: [symfony-users] propel:build-schema not working[jobeet]

2010-03-15 Thread Gábor Fási
Correction: in 1.2 Propel is the default, it has been changed to Doctrine in 1.3/4 On Fri, Mar 12, 2010 at 07:15, Gareth McCumskey gmccums...@gmail.com wrote: Just change sfDoctrinePlugin to sfPropelPlugin :) If you don't specify --orm=Propel on project creation symfony from 1.2 and up defaults

[symfony-users] Re: Problem in creating a Doctrine backend admin module

2010-03-15 Thread Tom Ptacnik
I think your problem is in composite primary key in your Book model. Related topic: http://tohenk.wordpress.com/2009/04/22/using-multiple-primary-keys-in-admin-generator/ On 13 bře, 04:23, t...@soe taylor@gmail.com wrote: I have two tables: headline, review. One-to-many relationship, i.e.

[symfony-users] form's i18n and add_empty

2010-03-15 Thread HiDDeN
I have this widget: $this-setWidget('slug', new sfWidgetFormDoctrineChoice(array('model' = 'MyTable', 'method' = 'myMethod', 'key_method' = 'myMethod', 'add_empty' = 'Select option'))); Ok, what should I do to translate the Select option? I can't use the __() helper inside the form, and adding

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

2010-03-15 Thread Javier Garcia
Ok, this is the solution: a href=# onclick=new Ajax.Updater('lista_miembros', '?php echo url_for(miembros/filtrar?page=2); ?')next/a Javi On Mar 15, 5:59 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, i have this line below that shows a link to go the next page of a

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

2010-03-15 Thread Gábor Fási
public_path(), http://www.symfony-project.org/api/1_4/UrlHelper#method_public_path On Fri, Mar 12, 2010 at 16:58, Luis Alberto Zarrabeitia zarrabei...@gmail.com wrote: Moreover, it produces the image tag, but I can't find the way to access the url (for instance, if I want to link to it). Any

Re: [symfony-users] form's i18n and add_empty

2010-03-15 Thread Daniel Lohse
I have a patch sitting on my Mac. I'll send it to you but — just in case I forget — hit me up again in a few hours, I'll be home then. :) Just leave it the way it is now, it'll just work after applying my patch. I actually will be uploading it to the symfony trac later. Regards, Daniel

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

2010-03-15 Thread Luis Alberto Zarrabeitia
Thank you both. I hope that'll solve my problem. Luis. On Fri, Mar 12, 2010 at 1:48 PM, Gábor Fási maerl...@gmail.com wrote: public_path(), http://www.symfony-project.org/api/1_4/UrlHelper#method_public_path On Fri, Mar 12, 2010 at 16:58, Luis Alberto Zarrabeitia zarrabei...@gmail.com

[symfony-users] sfguardplugin - layout by usergroup

2010-03-15 Thread ziclo
Hi, I would like to display a layout depending to user's group. Furthermore, i want to hide or show menus (defined into the layout) depending on user's group. First i used the credentials and it works fine when a user try to access an unauthorized module (by url). But i want to show only menus

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

2010-03-15 Thread Christian Schaefer
thanks jon! could've done that myself now that I see it.. ;) On 15 Mrz., 04:13, Jonathan Wage jonw...@gmail.com wrote: function getValueFor($tableName, $id, $columnName) {    $object = call_user_func_array(array($tableName.'Peer', 'retrieveByPk'), array($id));    return

Re: [symfony-users] propel:build-schema not working[jobeet]

2010-03-15 Thread Tahar Yazid Touaibia
Ok Thanks i sorted out this issue...Do i have to create a db with charset=utf-8 ? I seems to not be able to insert data with the default charset. 2010/3/12 Gábor Fási maerl...@gmail.com: Correction: in 1.2 Propel is the default, it has been changed to Doctrine in 1.3/4 On Fri, Mar 12, 2010

[symfony-users] Re: Starting with symfony on Debian

2010-03-15 Thread rekarnar
This looks like an issue with your php setup, not symfony. Can you check this by trying: 'php -v' and see if it executes without the error. On Mar 15, 11:17 pm, spyker johann.sp...@gmail.com wrote: I am working on a Debian (Squeeze/Sid) system (I want to try out symfony and I have downloaded

[symfony-users] How to different forms filters in backend and frontend ?

2010-03-15 Thread Javier Garcia
Hi, I have 2 modules (one in the backend and the other one in the frontend) based on the same model. Is there any trick to get different form filter in the backend and in the frontend? Javi -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] How to different forms filters in backend and frontend ?

2010-03-15 Thread Alan Bem
Set this up in generator.yml in each module.http://www.symfony-project.org/reference/1_4/en/06-Admin-Generator#chapter_06_sub_class On Mon, Mar 15, 2010 at 9:49 PM, Javier Garcia tirengar...@gmail.comwrote: Hi, I have 2 modules (one in the backend and the other one in the frontend) based on

Re: [symfony-users] How to different forms filters in backend and frontend ?

2010-03-15 Thread Jose Antonio Pio Gil
You could Make diferents YourModelForm Clases to extend BaseYourModelForm and use them on backend or frontend as you need it. Kind regards / Un saludo Jose Antonio Pio Gil Latizana Studio Diseñadera www.latizana.com Madrid – España Telf: 0034 917387209 Cel: 0034 637455667 2010/3/15 Javier

[symfony-users] Symfony 2.0 - Cookies

2010-03-15 Thread Symfony
Hi all, I'm trying to use Symfony 2.0, and I was wondering if someone knew how to set/get cookies with this version? I found a setcookie method in the Response class, but I can't figure out how to use it :/ Thanks a lot! Jérémie -- If you want to report a vulnerability issue on symfony, please

[symfony-users] Programmierer gesucht

2010-03-15 Thread Steff
Hi everyone, we are looking for a programmer for a website-builder (comparable with http://www.npage.de/, but specialized on a certain industry). Project-Management, concept, design, hosting and sales are all covered by the existing team. Therefore we are “only” looking for somebody who can take

[symfony-users] [Symfony 2.0] Cookies

2010-03-15 Thread Jérémie
Hi all, I'm trying to use Symfony 2.0, and I was wondering if someone knew how to set/get cookies with this version? I found a setcookie method in the Response class, but I can't figure out how to use it :/ Thanks a lot! Jérémie -- If you want to report a vulnerability issue on symfony,

[symfony-users] Symfony 2.0 - cookies

2010-03-15 Thread Jérémie
Hi all, I'm trying to use Symfony 2.0, and I was wondering if someone knew how to set/get cookies with this version? I found a setcookie method in the Response class, but I can't figure out how to use it :/ Thanks a lot! Jérémie PS: sorry if I sent this message twice ^^' -- If you want to