[symfony-users] Re: filter causes CSRF attack

2010-03-05 Thread Tom Ptacnik
Maybe this http://forum.symfony-project.org/index.php?t=msgth=17867; or http://forum.symfony-project.org/index.php/m/75882/ or http://forum.symfony-project.org/index.php/m/92096/ will help you. On 4 bře, 10:45, mbernasocchi mbernasoc...@gmail.com wrote: sorry to bothe abain, but the pastebin

[symfony-users] Re: Route :slug value

2010-03-05 Thread Andrey
More information will be good. For example, what is the URL that you try to call? Is it /exp/send/sometoken ? On 3 Mrz., 09:43, feykintosh feykint...@gmail.com wrote: Hi all, I'm having a problem with routing. route.yml settings: Send:   url:     /exp/send/:token   param:   { module: exp,

[symfony-users] Show/Check Simple Query Result

2010-03-05 Thread bertzzie
Hi, I'm very new to symfony, and just a novice developer also... I searched in forum and documentation already and can't find the answer (probably because it's too basic and simple :D) Here's the case : I have one table, 'user' to save username and password, then I want to retrieve the data from

[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

[symfony-users] Re: How to create a child module with admin generator ?

2010-03-05 Thread Tom Ptacnik
How this module should look like? - what should be in the listing page - how the edit and insert forms should look? On 2 bře, 22:06, Herzult antoine.hera...@gmail.com wrote: Hello, I am trying to create a kind of child module with admin generator. I wanted to know if you have solutions.

[symfony-users] Re: Question about sfWidgetFormChoice

2010-03-05 Thread Raphael Schumacher
array('' ='-', range(14,130)) ...seems to me a bit a strange construction, a mix of associative and non-associative array elements. In any case the 'choices' option needs a associative array, so it may work better if you put together a proper associative array? E.g. like: $choices

Re: [symfony-users] You must pass a valid path to a directory containing Doctrine models

2010-03-05 Thread Bill P.
This is what my ProjectConfiguration.class.php looks like. ?php require_once 'C:\\frameworks\\symfony-1.4.2\\lib\\autoload\\sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends sfProjectConfiguration { public function setup() {

[symfony-users] Re: symfony Forms in Action

2010-03-05 Thread Massimiliano Arione
Unfortunately, the form docs are almost abandoned. I wrote the update for symfony 1.4 myself, but more work is needed. I asked Fabien at symfony live, he told me to rearrange the chapters and to add a chapter on embedding forms. If you want to help, please write on symfony-docs group cheers

[symfony-users] sfWidgetFormInputFileEditable

2010-03-05 Thread MoUeTtE
Hi there, I just migrated to symfony 1.3, so that could be part of the explanation, but I can't use the sfWidgetFormInputFileEditable. in fact, everything seems to go right as field is displayed, but I've got an empty value in my doSave method. the way I configured my form is the following:

[symfony-users] Re: Deploy an application

2010-03-05 Thread Darren884
Did you check the paths in the AJAX files? On Mar 3, 6:41 am, maelo_fredas mlugoab...@gmail.com wrote: Hello everyone: I'm developing an app with symfony-1.2.12, Doctrine and PostgreSQL. Deployed it according the steps defined in Jobeet. The files were successfully transferred after deploy

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-05 Thread Augusto Flavio
Hi Gareth, the method that you show us have a security problem: inject sql. You need to check what kind of parameter the user is sending. if (!in_array($parameter, array('asc', 'desc'))) { //do something } else { //execute the query } bye Augusto Morais -- If you want to report

[symfony-users] Re: sfWidgetFormInputFileEditable

2010-03-05 Thread MoUeTtE
my bad, I feel so dumb... I looked for a long time, but did not check if I used the right template, and I wasn't... sorry for this. On 5 mar, 16:51, MoUeTtE the.moue...@gmail.com wrote: Hi there, I just migrated to symfony 1.3, so that could be part of the explanation, but I can't use the

[symfony-users] Re: ideas for development architecture in symfony

2010-03-05 Thread Richtermeister
Just to beat that horse some more, since Apostrophe is open-source and built by programmers that encountered all the problems and challenges you're looking to solve, the suggestion is to look at their schema / code for inspiration. Any answer we could give you here would simply re-iterate what's

[symfony-users] Re: How to customize the save process of many-to-many relation in symfony form framework?

2010-03-05 Thread Alex
may be like this $db = Doctrine_Manager::connection(); $sql = insert into tags(name) value('$name') on duplicate key upadte count=count+1; $db-exec($sql); or with prepare statement (NO sql-inject) $db = Doctrine_Manager::connection(); $sql = insert into tags(name) value(?) on duplicate key

[symfony-users] sfWidgetFormDoctrineChoice problems

2010-03-05 Thread Samuel Morhaim
I have a question, I have a dropdown that needs to be populated from the database, but with a query, and the query is based on a post variable. I know that sfWidgetFormDoctrineChoice has an option for passing a method, but I can't pass a method + parameter like that. So I used the simple

[symfony-users] Re: sfWidgetFormDoctrineChoice problems

2010-03-05 Thread Samuel Morhaim
More info: The same widget, generated with sfWidgetFormDoctrineChoice without passing any method for filtering (Notice it has one more value, of course because it is not filtered, but the value = id): select id=rule_new_campaign_id name=rule[new][campaign_id] option selected=selected value=/

[symfony-users] subform update when other widget changes

2010-03-05 Thread Abraham
Hi all, is there a way to update a subform when the selected value in a sfWidgetFormDoctrineChoice changes? I'm using javascript onChange, however, i need to create a doctrine query with the selected value, and is not possible to pass javascript vars to PHP. Any ideas to overcome this? Thanks.

[symfony-users] symfony and hosting

2010-03-05 Thread Germana Oliveira
Hi. I have an x10hosting.com acount, i already freeze my project and upload it to the server, in a directory with myProject name, but: when i go to my web page : http://bogapp.x10hosting.com/ what i see is: Index of / * cgi-bin/ * images/ * indepabis/ * postinfo.html

[symfony-users] Re: How to customize the save process of many-to-many relation in symfony form framework?

2010-03-05 Thread SymfonyNewbie
Symfony binds with doctrine, so I wander if there is a ORM based solution so that I don't have to write queries explicitly? On 3月6日, 上午6时41分, Alex bessan...@gmail.com wrote: may be like this  $db = Doctrine_Manager::connection();  $sql = insert into tags(name) value('$name') on duplicate key

Re: [symfony-users] symfony and hosting

2010-03-05 Thread Dheeraj Kumar Aggarwal
Hi set the documentRoot of your apache server upto your indepabis/web On Fri, Mar 5, 2010 at 8:08 PM, Germana Oliveira germanaolivei...@gmail.com wrote: Hi. I have an x10hosting.com acount, i already freeze my project and upload it to the server, in a directory with myProject name, but:

Re: [symfony-users] Show/Check Simple Query Result

2010-03-05 Thread Gareth McCumskey
As a bew symfony developer I highly recommend you start and complete the Jobeet tutorial for Doctrine: http://www.symfony-project.org/jobeet/1_2/Doctrine/en/ This will give you a great example of using everything in symfony you would ordinarily use. I know it seems like a long way to get going,

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-05 Thread Gareth McCumskey
Firstly, symfony does that for you ;). Secondly it was just a quick example to get him on the right road. I didn't have time to sit and show a fully worked, real world example. Jsut to reiterate, symfony already checks what parameters are passed through GET and POST for you for SQL injection and