[symfony-users] Re: Re : [symfony-users] Re: csrf_token required

2008-04-11 Thread Thomas Rabaix
way to add error. Hope it can help ! Thomas On Thu, Apr 10, 2008 at 8:13 PM, Loïc Vernet [EMAIL PROTECTED] wrote: @Thomas: I have added the secret key in the settings.yml file with no success. Your patch didn't work for me. What is strange, is that I have only the bug if i call

[symfony-users] Re: symfony cc problem

2008-04-11 Thread Thomas Rabaix
It look like you are using sf1.1 as sfProjectConfiguration class is only available in this version. Please keep in mind there is no documentation on this version. and you should use the version 1.0 to get best support from the community. Thomas On Fri, Apr 11, 2008 at 10:55 AM, Ian P

[symfony-users] Re: component variable

2008-04-10 Thread Thomas Rabaix
Hello, Please keep in mind that the partial should not do any logic, or creates variables for another partial. As a partial can be used at different places. Partial should be used only to render elements. Thomas On Wed, Apr 9, 2008 at 11:54 AM, Eugene Leonovich [EMAIL PROTECTED] wrote: You

[symfony-users] Re: production profiling

2008-04-10 Thread Thomas Rabaix
Hello, You can look to the code of sfWebDebug and sfWebDebugFilter. Thomas On Wed, Apr 9, 2008 at 11:15 PM, hutchic [EMAIL PROTECTED] wrote: In a production environment I'd like to be able to record profiling statistics such as execution time, number of queries and time per query

[symfony-users] Re: Redirect AND https

2008-04-10 Thread Thomas Rabaix
within the same symfony project. You can do : $host = $request-getHost(); $uri = url_for('module/action[...]'); $this-redirect(sprintf('%s://%s/%', 'https', $host, $uri) Thomas On Wed, Apr 9, 2008 at 11:58 PM, Bruno Reis [EMAIL PROTECTED] wrote: Hi, I´m using symfony 1.0.0 When I try

[symfony-users] Re: Mangled HTML after POST

2008-04-10 Thread Thomas Rabaix
. The documentation states : The fillin feature works by parsing the response content in XML just before sending it to the user. If the response is not a valid XHTML document, fillin might not work. [1] Thomas [1] http://www.symfony-project.org/book/1_0/10-Forms#Form%20Validation On Thu, Apr 10, 2008

[symfony-users] Re: csrf_token required

2008-04-10 Thread Thomas Rabaix
setup() { sfForm::enableCSRFProtection(); $this-addCSRFProtection('my secret'); } } I get a valid csrf token value, and a correct token validation Thomas On Thu, Apr 10, 2008 at 4:32 PM, Marijn [EMAIL PROTECTED] wrote: Hi Fabien, The output of the version

[symfony-users] Re: csrf_token required

2008-04-08 Thread Thomas Rabaix
is present, if not add ?= $form[$form-getCSRFFieldName()]-render() ? Thomas On Tue, Apr 8, 2008 at 5:10 PM, Marijn [EMAIL PROTECTED] wrote: Hi everybody, I am having trouble finding documentation about csrf support in symfony 1.1. When I generate crud actions for a Model and try to populate

[symfony-users] Re: csrf_token required

2008-04-08 Thread Thomas Rabaix
in yml # symbol is used to comment text :) csrf_secret: my super token Thomas On Tue, Apr 8, 2008 at 5:44 PM, Marijn [EMAIL PROTECTED] wrote: Hi Thomas, Thanks for your quick reply. in my view there was the following line of code for my csrf_token: ?php echo $form

[symfony-users] Re: Mysterious URL concatenation behavior

2008-04-06 Thread Thomas Rabaix
Does the getFilepath return a string value, or just echo the value ... that will explain why the filepath is displayed at first Thomas On Sun, Apr 6, 2008 at 6:53 AM, Jill Elaine [EMAIL PROTECTED] wrote: Coolio! Yes! Your suggestion works! First of all, I realized I didn't need to put

[symfony-users] Re: Mysterious URL concatenation behavior

2008-04-06 Thread Thomas Rabaix
Hello, It look like your code get X filepath and echo all the different path. If there is only one filepath, add $c-setLimit(1) to get only one path. and just return $resultset-getString(1); You have to test that the result is not null. Thomas On Sun, Apr 6, 2008 at 4:23 PM, Jill Elaine

[symfony-users] Re: Mysterious URL concatenation behavior

2008-04-06 Thread Thomas Rabaix
#WritingSQL . Thomas On Sun, Apr 6, 2008 at 10:33 PM, Jill Elaine [EMAIL PROTECTED] wrote: I realized I was making my selection criteria much more complicated than I need. I wrote the function with sql and can see more clearly my criteria: public function getFilePath

[symfony-users] Re: object in a component

2008-04-05 Thread Thomas Rabaix
You can pass an array of arguments in the third parameters of include_component. see : http://www.symfony-project.org/book/1_0/07-Inside-the-View-Layer#Components On Sat, Apr 5, 2008 at 11:10 AM, kusum [EMAIL PROTECTED] wrote: hi i want to pass a object from a template to a component

[symfony-users] Re: Components

2008-04-05 Thread Thomas Rabaix
include_component('activity','grid', array('month' = $month) but if you component does not do any logic you should prefer the use of include_partial, which is quicker. Thomas On Fri, Apr 4, 2008 at 6:11 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a situation that (I think) screams

[symfony-users] Re: messages on the login and security modules...

2008-04-03 Thread Thomas Dedericks
/index'); } - in the login/index view : ?php if ($sf_flash-has('message')) echo $sf_flash-get('message') ? Don't know if this is the best way to do it, but it should work. Thomas -- http://tequila-studio.com/ Le jeudi 03 avril 2008 à 10:16 -0300, Bruno Reis a écrit : Hi, when a user does

[symfony-users] Re: Putting forms in session

2008-04-03 Thread Thomas Rabaix
) Is up to you to choice the most suitable solution, there are not best solutions. Each case are differents. Thomas On Thu, Apr 3, 2008 at 4:01 PM, Sumedh [EMAIL PROTECTED] wrote: Duh... ??? On Apr 3, 2:11 pm, Marco Schierhorn [EMAIL PROTECTED] wrote: Hi, is there an easy way to drop

[symfony-users] Re: Updating Production Databases.

2008-03-10 Thread Thomas Rabaix
Hello, There is no built-in migration feature in symfony. Have a look to : http://trac.symfony-project.com/wiki/Migrations Thomas On Mon, Mar 10, 2008 at 8:09 AM, James [EMAIL PROTECTED] wrote: Hey Everyone, I am trying to figure out if symfony provides a mechanism for updating

[symfony-users] Re: object_admin_double_list - change displayed value

2008-03-10 Thread Thomas Dedericks
Hi, __toString() means a query is run for every item in the select list. Which doesn't matter, but doesn't feel good either ;) Only if you use a db query inside your __toString method ... which sounds like a bad idea. This method is supposed to return a string briefly describing the

[symfony-users] Re: Putting forms in session

2008-03-04 Thread Thomas Rabaix
CO2, let's imagine the situation : - you store an object in the session - then you refactore your code by renaming the class - the next time the user connect to your site, the class does not exists anymore - and you get a silent error ! Hope it make sense. Thomas On Tue, Mar 4, 2008 at 3:45

[symfony-users] Re: session garbage collector with mysql session based storage

2008-02-22 Thread Thomas Rabaix
('session_cookie_lifetime', $cookieDefaults['lifetime']); and then sfMySQLSessionStorage::sessionGC, the GC uses the same $lifetime value. Thomas On Thu, Feb 21, 2008 at 9:53 PM, Rob Sworder [EMAIL PROTECTED] wrote: On Feb 21, 2:41 pm, Thomas Rabaix [EMAIL PROTECTED] wrote: You should read

[symfony-users] Re: session garbage collector with mysql session based storage

2008-02-21 Thread Thomas Rabaix
the sessions database: propel # Name of the database connection to use session_cookie_lifetime: 172800 # 48h Thomas Rabaix On Thu, Feb 21, 2008 at 3:13 PM, Rob Sworder [EMAIL PROTECTED] wrote: Jo, You've still only set the probability to 1% - you could temporarily change

[symfony-users] Re: controller and __ and flash message

2008-01-28 Thread Thomas Dedericks
Hi, not sure this is really as clean as possible, but this is what I'd naturally do : (for example, to show a confirmation message after a user action) inside the controller: $this-setFlash('confirm', true); and inside the view: ?php if ($sf_flash-has('confirm') $sf_flash-get('confirm'))

[symfony-users] AW: [symfony-users] Re: AW: [symfony-users] Re: sfValidator (sf1.1)

2008-01-06 Thread Abröll , Thomas
The sfValidatorZip validates a postcode in dependence to a country selection field. So I need the inserted postcode value and the selected country to validate the code. I've tried this now with your fix and it works fine. Thanks for the very fast solution. Thomas -Ursprüngliche Nachricht

[symfony-users] Re: long url

2008-01-05 Thread Thomas Dedericks
Hi, link_to() parses the second parameter to extract the module ('cms') and the action to execute ('categ1'). If you need some parameters, you have to add something like this : link_to('page13_title', 'cms/categ1?id_categ=3id_page=13') or use the 'query_string' option

[symfony-users] AW: [symfony-users] Re: sfValidator (sf1.1)

2008-01-05 Thread Abröll , Thomas
', 'country') ))); If I execute this, I get the following exception: Unable to merge a sfValidatorErrorSchema to global errors. Regards, Thomas Von: symfony-users@googlegroups.com im Auftrag von Fabien POTENCIER Gesendet: Sa 05.01.2008 22:34 An: symfony-users

[symfony-users] Re: symfony is noncommercial ?! what if my sites make money ?

2008-01-02 Thread Thomas Dedericks
Hi, if you read Symfony's license, you won't find any mention of 'non-commercial websites' ... You can monetize your website built with symfony ... or I missed something. http://www.symfony-project.org/content/license Le mercredi 02 janvier 2008 � 09:22 -0800, mozey a �crit : Please stay with

[symfony-users] Re: Suppressing Symfony Exception Errors

2007-12-20 Thread Thomas Dedericks
Hi, Symfony exceptions should not appear in your production environment, your users will see the default error page if you haven't set one yourself ... So what's the point ? Le jeudi 20 d�cembre 2007 � 05:03 -0800, slinky66 a �crit : Hello, I'm doing a security check of my site and would

<    1   2   3   4