[symfony-users] Doctrine's column_aggregation and Admin Generator

2010-01-06 Thread Thomas
who has some clues. Thomas -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more

[symfony-users] Limit results with Doctrine

2011-06-08 Thread Thomas
Hi all, I didn't found in the doctrine documentation how to limit my results when i'm fetching all my news. I want to limit my results with only 5 news (like in SQL LIMIT 0,5). I've done this : $news = new News(); $news = $this-get('doctrine') -getEntityManager()

Re : Re: [symfony-users] Limit results with Doctrine

2011-06-09 Thread Thomas
Hi all and thanks for your answers ! I've used Repositories to create my SQL queries, and it's work fine :) I've done this : public function findLimitedOrderedByDateDebut($limit = 5, $offset = 0){ return $this-getEntityManager() -createQuery('SELECT e FROM MyCompanySiteBundle:Thing

[symfony-users] [sf2] Html Escaping

2011-06-13 Thread Thomas
I all, i've a problem when rendering a news in a twing template. My html isn't escaped : public function showAction($permalink){ $news = $this-get('doctrine') -getEntityManager() -getRepository('CompanySiteBundle:News') -findOneByPermalink($permalink); if (!$news) { throw

Re : Re: [symfony-users] [sf2] Html Escaping

2011-06-13 Thread Thomas
Hello Christophe, In my showNews.html.twig i have : {% block content %} h2{{ news.titre }}/h2 div id=date_news iPublished on {{ news.dateCreation.format('d F Y') }}./i /div {{ news.contenu }} {% endblock %} and in my head i've the meta : meta http-equiv=Content-Type content=text/html;

Re : Re: [symfony-users] [sf2] Html Escaping

2011-06-14 Thread Thomas
I've fixed my problem, In the Twig documentation (http://www.twig-project.org/doc/templates.html) i've found this : {% autoescape false %} Everything will be outputed as is in this block{% endautoescape %} So like Chirstophe said, the output escaping is enabled by default. Adding {%

[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

[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: 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] 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: 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] 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: Batch and Emails, how to pass parameters to the action ?

2008-04-14 Thread Thomas Rabaix
an attributesHolder and an parameterHolder object. Maybe it will be more suitable to use the attribute holder, as values from the parameterHolder can be badly interpreted by actions. Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: Accesing sfActions method from sfAction class

2008-04-20 Thread Thomas Rabaix
The methods are not in the same class, that is why you cannot call them in your second file. Now you can have a different solutions : use a external class with static methods Thomas On Sun, Apr 20, 2008 at 6:35 AM, Mohammad Ali Safari [EMAIL PROTECTED] wrote: I had a bunch of method in one

[symfony-users] Re: object_select_tag ??

2008-04-20 Thread Thomas Rabaix
Hello, Have a look to : - options_for_select from the FormHelper - objects_for_select from the ObjectHelper and read http://www.symfony-project.org/book/1_0/10-Forms Thomas On Sun, Apr 20, 2008 at 9:13 PM, ArturT [EMAIL PROTECTED] wrote: I am new to Symfony, but there is something I do

[symfony-users] Re: Access Control on Objects (Newbie)

2008-04-23 Thread Thomas Rabaix
()-getUser()-getUserId()) { throw new sfException('Permission denied, you are not the owner of the object'); } 2. high level : controller Use the same logic but you have to check at every action. Thomas On Wed, Apr 23, 2008 at 2:32 PM, Iain Adams [EMAIL PROTECTED] wrote: Dear All, I am

[symfony-users] Re: Update Primary Key

2008-04-23 Thread Thomas Rabaix
, $con); $con-commit(); } catch(PropelException $e) { $con-rollback(); throw $e; } Thomas On Wed, Apr 23, 2008 at 2:22 PM, Matías López [EMAIL PROTECTED] wrote: Hi All, I'm trying to update a record in a mysql table, but i need to modify the primary key itself. I think

[symfony-users] Re: sfThumbnailPlugin

2008-04-23 Thread Thomas Rabaix
Is your file a valid picture ? Thomas On Wed, Apr 23, 2008 at 10:33 AM, Ian P. Christian [EMAIL PROTECTED] wrote: CX wrote: phpinfo data: gd GD Supportenabled Modify the plugin on the lines I showed, remove the @ sign so you can see the real error. -- Thomas

[symfony-users] Re: sfThumbnailPlugin

2008-04-23 Thread Thomas Rabaix
It look like you are not using absolute path, so the function cannot find the file. Look to me, it just an issue with the path. Thomas On Wed, Apr 23, 2008 at 3:54 PM, CX [EMAIL PROTECTED] wrote: yes i did, here is the result: Warning: getimagesize(/uploads/photos

[symfony-users] Re: sfThumbnailPlugin

2008-04-23 Thread Thomas Rabaix
CX, Partial should not have any logic ! you should use a component Thomas On Wed, Apr 23, 2008 at 5:52 PM, Ian P. Christian [EMAIL PROTECTED] wrote: CX wrote: correct! THANK YOU Ian, :) No problem - welcome to the community btw - hopefully the support you've had

[symfony-users] Re: save()-Method always inserts a new Record and does no updates

2008-04-23 Thread Thomas Rabaix
= BasePeer::doUpdate($criteria, $con); $con-commit(); } catch(PropelException $e) { $con-rollback(); throw $e; } Thomas On Wed, Apr 23, 2008 at 8:58 PM, Nicolas Perriault [EMAIL PROTECTED] wrote: On Wed, Apr 23, 2008 at 5:31 AM, Matías López [EMAIL PROTECTED] wrote: Do you have

[symfony-users] Re: Custom Logging..

2008-04-28 Thread Thomas Rabaix
. then overwrite the log method to only log messages which start with your {customEvent} Thomas On Mon, Apr 28, 2008 at 12:29 PM, Richtermeister [EMAIL PROTECTED] wrote: Yes, that would work. My issue with that approach is that info is a fairly low error level, and symfony generates a lot

[symfony-users] Re: bug caused by settings.yml

2008-04-29 Thread Thomas Rabaix
Have you change the value of max_forwards in the settings.yml ? It look like it is setup to 0. Thomas On Tue, Apr 29, 2008 at 6:21 AM, Charles Hilditch [EMAIL PROTECTED] wrote: I may have found a bug (in a recent 1.0.x version), should I post this here? (maybe the trac...) When

[symfony-users] Re: PDFs generation and Report Generator integration

2008-04-29 Thread Thomas Rabaix
The Ajax options is only an alternative, you can combine : - a http meta refresh and/or an ajax - Email - Setting up a random yutube video while the user is waiting :) Depends on how long it take to generate the PDF. If it is only a few seconds, email is not the best solution... Thomas

[symfony-users] Re: PDFs generation and Report Generator integration

2008-04-30 Thread Thomas Rabaix
Hello, You can change the memory limit to your background task as they should run in cli. With a queue system you don't have the same task running X times in parrallel, and so you allocate more ressources to one process. Thomas On Wed, Apr 30, 2008 at 2:00 PM, Nicolas Perriault [EMAIL

[symfony-users] Re: Template Variable sfPHPView question

2008-04-30 Thread Thomas Rabaix
The point is why they are using a foreach in the escaping === both. A extract should be better as that use php internal function. my 2 cents. Thomas On Wed, Apr 30, 2008 at 2:25 PM, alessandro cinelli [EMAIL PROTECTED] wrote: On Sun, Apr 27, 2008 at 3:34 PM, alessandro cinelli [EMAIL

[symfony-users] Re: Accessing a foreign model from a different module/controller

2008-05-01 Thread Thomas Dedericks
to the $posts array inside the view. If you already use a 'posts' module, you may also use a component to display the last posts. ++ Thomas Le jeudi 01 mai 2008 à 16:35 +0800, Gould, Adrian a écrit : Problem Taking the my_first symfony tutorial as the basis for this problem... We have a module

[symfony-users] Re: off topic: svn gui for OS X

2008-05-02 Thread Thomas Rabaix
Eclipse has a nice svn plugin Eclipse is also a very good IDE to handle symfony project Thomas On Fri, May 2, 2008 at 1:14 PM, Nicolas Perriault [EMAIL PROTECTED] wrote: On Fri, May 2, 2008 at 12:42 PM, Jonathan Franks [EMAIL PROTECTED] wrote: i'm moving over to OS X and I

[symfony-users] Re: off topic: svn gui for OS X

2008-05-02 Thread Thomas Rabaix
] wrote: I use eclipse on the PC but I've heard such good things about TextMate that I'm playing with that at the moment. Thomas Rabaix wrote: Eclipse has a nice svn plugin Eclipse is also a very good IDE to handle symfony project Thomas On Fri, May 2

[symfony-users] Re: Accessing foreign table fields using admin generator

2008-05-02 Thread Thomas Rabaix
' so I do see the fields from event_type in the sql query but I have no way to use them in generator.yml. Am I missing something? Or am I suppose to use a partial and code that bit? Thanks, M. -- Thomas Rabaix Internet Consultant

[symfony-users] Re: symfony propel-dump-data - Maximum function nesting level

2008-05-06 Thread Thomas Rabaix
try to remove your debugger ... Thomas On Tue, May 6, 2008 at 6:24 PM, Olivier LOYNET [EMAIL PROTECTED] wrote: Hi, Try in your php.ini to increase your memory. Be careful, there are two php.ini, one for apache, on for cli mode. This is the cli for your command line. Olivier

[symfony-users] Re: Accessing model from helper

2008-05-06 Thread Thomas Rabaix
Hello, I am not sure what you mean by access the model. but an helper can have model as argument to perform a specific task. You cannot do any logic in a helper. Thomas On Tue, May 6, 2008 at 9:58 PM, Tom Haskins-Vaughan [EMAIL PROTECTED] wrote: I'm about to start writing a helper

[symfony-users] Re: How to cache differently based on parameters not in the request?

2008-05-07 Thread Thomas Rabaix
Hello, Have you try to use a filter to append new params to the request ? Thomas On Tue, May 6, 2008 at 11:18 PM, Dennis Verspuij [EMAIL PROTECTED] wrote: The sfViewCacheManager creates cache keys based on parameters that appear in the request. Is there any way to apply some custom

[symfony-users] Re: How to cache differently based on parameters not in the request?

2008-05-07 Thread Thomas Rabaix
the code Thomas On Wed, May 7, 2008 at 5:24 PM, Dennis Verspuij [EMAIL PROTECTED] wrote: Hi Thomas, yes I did try to add the parameters to the sfRequest instance parameters in a custom filter. But this results in sfRouting complain that the current route cannot be found when it has

[symfony-users] Re: i18n question

2008-05-08 Thread Thomas Rabaix
trans-unit id=2 source![CDATA[Tours amp; Activities]]/source targetTours amp; Activit#xE9;es/target /trans-unit Thomas On Wed, May 7, 2008 at 8:26 PM, melz [EMAIL PROTECTED] wrote: Ah, nevermind. Figured it out. trans-unit id=5 sourceProducts

[symfony-users] Re: Use of construct in Classes

2008-05-09 Thread Thomas Rabaix
Hello, what you mean by use ? if you add a __construct method, it will be call when doing new Model. however the model will be empty, as propel use hydrate method to populate object value. Thomas On Fri, May 9, 2008 at 9:39 AM, Leo Barrientos C. [EMAIL PROTECTED] wrote: Hello

[symfony-users] Re: Use of construct in Classes

2008-05-09 Thread Thomas Rabaix
Well, i don't know doctrine, but look like you forgot to call the parent constructor. parent::__construct() ... Thomas On Fri, May 9, 2008 at 2:33 PM, Leo Barrientos C. [EMAIL PROTECTED] wrote: If you put in MyClass extends BaseMyClass a construct - and make the call ($myObject = new MyClass

[symfony-users] Re: Propel : onDelete/casade and parent attached media

2008-05-12 Thread Thomas Rabaix
will be delete) then you have to traverse your files array to delete thoses files. Thomas On Mon, May 12, 2008 at 10:49 AM, nico_bl1nd [EMAIL PROTECTED] wrote: This is quite automatic. I call the Article.delete method, then everything is done by magic, thanks to the schema.yml onDelete:cascade

[symfony-users] Re: Propel : onDelete/casade and parent attached media

2008-05-12 Thread Thomas Rabaix
Yes, its depends ... $article-delete() will never call $media-delete() at least in innodb Thomas On Mon, May 12, 2008 at 1:19 PM, Olivier LOYNET [EMAIL PROTECTED] wrote: Hi You have to override your 'delete' method in your lib/model/foo and it's not depend on your database Like

[symfony-users] Re: Askeet Day 2 Final URL not working (Object not found.)

2008-05-13 Thread Thomas Dedericks
? As of now, the apache logs indicate that apache is looking for a concrete resource called question, directly under the web folder. -- Thomas Dedericks -- [EMAIL PROTECTED] GSM: +32 (0) 499 23 60 22 http://tequila-studio.com --~--~-~--~~~---~--~~ You

[symfony-users] Re: timeout issue

2008-05-13 Thread Thomas Rabaix
You should read this post : http://www.centresource.com/blog/2006/05/23/php-session-lifetime-an-adventure/ and then modify the foctories.yml storage: class: sfSessionStorage param: session_name: symfony session_cookie_path: /mypath Thomas On Tue, May 13, 2008 at 1:30 PM

[symfony-users] Re: What to do now that sfWebRequest-moveFile() is deprecated?

2008-05-14 Thread Thomas Rabaix
Hello, All posted data have to be handle by a form. So my guess is that you have to create a form object with a file field. and so you can have access to the uploaded file. Thomas On Wed, May 14, 2008 at 2:14 AM, david at artefactual [EMAIL PROTECTED] wrote: Hi, I was digging through

[symfony-users] Re: sf_request an instance of?

2008-05-14 Thread Thomas Rabaix
use get_class($sf_request) to know the class used in the template. It should be sfWebRequest, unless you change the factories value for your env. Thomas On Wed, May 14, 2008 at 3:46 PM, Sumedh [EMAIL PROTECTED] wrote: Thanks Nicolas... But when I try $sf_request-getUriPrefix

[symfony-users] Re: phpThumb

2008-05-15 Thread Thomas Rabaix
-- Thomas Rabaix Internet Consultant --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email

[symfony-users] Re: Propel order by (column_a-column_b)

2008-05-16 Thread Thomas Rabaix
give a try $c-addDescendingOrderByColumn(self::COLUMNS_A .'-'.self::COLUMNS_B); Thomas On Fri, May 16, 2008 at 6:12 PM, Tom Haskins-Vaughan [EMAIL PROTECTED] wrote: Hi, I have a league table that I retrieve like so: static public function getTable() { $c = new Criteria(); $c

[symfony-users] Re: getUriPrefix() not printing port...

2008-05-19 Thread Thomas Rabaix
$this-pathInfoArray; } to get the port information. So you have to check which 'sf_path_info_array' is used, and then check if the port value is set. Thomas On Mon, May 19, 2008 at 8:55 AM, Sumedh [EMAIL PROTECTED] wrote: Anyone? :| On May 17, 4:52 pm, Sumedh [EMAIL PROTECTED] wrote: Hi

[symfony-users] Re: fillin:true through code

2008-05-21 Thread Thomas Rabaix
The fillin filter is not reliable at 100% as it uses DOM parser to transform and populates the value. So if your html is too broken, then the parser may transform your html into something wrong. Thomas On Wed, May 21, 2008 at 1:53 AM, jtodd [EMAIL PROTECTED] wrote: I would also like

[symfony-users] Re: propel-load-data

2008-05-21 Thread Thomas Rabaix
of session_id() is not the best way to do it as sessions can be handled by others systems Thomas On Tue, May 20, 2008 at 11:33 PM, Tom Haskins-Vaughan [EMAIL PROTECTED] wrote: If I change the first if statement to the following it works fine: if (!session_id()) { return parent::save

[symfony-users] Re: propel-load-data

2008-05-21 Thread Thomas Rabaix
Hello, It look like the factorie settings are ignored. The error refers to 'sfSessionStorage', however the session handler should by 'sfSessionTestStorafe' Thomas On Wed, May 21, 2008 at 6:47 PM, Tom Haskins-Vaughan [EMAIL PROTECTED] wrote: Thanks, Thomas. I tried that but I got the same

[symfony-users] Re: propel-load-data

2008-05-21 Thread Thomas Rabaix
to to a var_dump(SF_ENV) to look what env is set, and then change the factorie settings for this env. I just check into the sfPakePropel and the default env is 'dev'. You can add a second parameter with the env name to the propel-load-data command. Thomas On Thu, May 22, 2008 at 12:02 AM, Tom

[symfony-users] Re: How can I tell if a $user is my user?

2008-05-22 Thread Thomas Rabaix
and their are also related between each others If in your action you define a $user variable, you have to know the class name of this object, because you cannot compare two differents things ... Thomas On Thu, May 22, 2008 at 3:17 AM, Daevid Vincent [EMAIL PROTECTED] wrote: Thanks for the prompt reply

[symfony-users] Re: How do you sync your production db ?

2008-05-22 Thread Thomas Rabaix
You can use the sfPropelMigrationsLightPlugin http://trac.symfony-project.com/wiki/sfPropelMigrationsLightPlugin Thomas On Thu, May 22, 2008 at 8:59 AM, Daevid Vincent [EMAIL PROTECTED] wrote: -Original Message- symfony has nice features to deploy your applications and to create

[symfony-users] Re: How to insert an image in postgreDB???

2008-05-23 Thread Thomas Rabaix
This is the correct syntax for redirect : public function redirect($url, $statusCode = 302) so change your code to $this-redirect('imagem/index) ... Thomas On Thu, May 22, 2008 at 11:20 PM, allan [EMAIL PROTECTED] wrote: Hello everyone I'm making a project in which I need to save some

[symfony-users] Re: redirect() and http header

2008-05-23 Thread Thomas Rabaix
You can add a second parameters to the redirect method, which is the status code. Thomas On Fri, May 23, 2008 at 6:02 PM, Cédric Sadai [EMAIL PROTECTED] wrote: Hi, One quick question: Do anyone know what kind of header code do the redirect() method send to the client browser? Bonus

[symfony-users] Re: File Size validation not working...

2008-06-02 Thread Thomas Rabaix
the value will be empty if the file size upload_max_filesize So change the upload_max_filesize value to match your need : - in php.net - at runtime ini_set('upload_max_filesize', SIZE_IN_BYTES); Thomas On Mon, Jun 2, 2008 at 4:00 PM, Jill Elaine [EMAIL PROTECTED] wrote: This may help

[symfony-users] Re: File Size validation not working...

2008-06-02 Thread Thomas Rabaix
please read php.ini and not php.net ... On Mon, Jun 2, 2008 at 4:33 PM, Thomas Rabaix [EMAIL PROTECTED] wrote: the value will be empty if the file size upload_max_filesize So change the upload_max_filesize value to match your need : - in php.net - at runtime ini_set('upload_max_filesize

[symfony-users] Re: Mails with symfony 1.1

2008-06-03 Thread Thomas Rabaix
-devs/browse_thread/thread/b268c40c574d1402 Thomas On Tue, Jun 3, 2008 at 12:10 PM, Yohan GIARELLI [EMAIL PROTECTED] wrote: Hello ! I don't find how to send a mail with sf 1.1... How can i send mail in 1.1 without the sf1.0 compat plugin ? Thanks in advance, Yohan. -- Thomas

[symfony-users] Re: File Size validation not working...

2008-06-03 Thread Thomas Rabaix
$this-getRequest()-getFileSize(INPUT_NAME); Thomas On Tue, Jun 3, 2008 at 10:29 AM, Sumedh [EMAIL PROTECTED] wrote: Thanks Jill...That was a good resource on the topic... Thanks Thomas... But I am not getting getFileSize() even for smaller sized files...the file gets uploaded correctly

[symfony-users] Re: sfPageFlowPlugin?

2008-06-14 Thread Thomas Rabaix
The fatal error come from xdebug which cannot handle more than 100 nested functions. I don't know this plugin but it look like you have a loop in your code (function call the function caller ...) my 2 c. Thomas On Sat, Jun 14, 2008 at 6:49 PM, Mark D [EMAIL PROTECTED] wrote: I tried to make

[symfony-users] Re: Joining and Hydrating Propel Objects

2008-06-23 Thread Thomas Rabaix
= $firstObject-hydrate($rs); $secondObject = new ... $secondObject-hydrate($rs, $pos) $firstObject-add($secondObject) } you may want to handle a pool of objects with an array if the same $firstObject appears several times. Thomas On Mon, Jun 23, 2008 at 12:11 PM, Manoj Ghimire [EMAIL PROTECTED] wrote: One

[symfony-users] Re: sfLucene accentuated content

2008-06-30 Thread Thomas Rabaix
Hello, Have you check that your database connection uses uft8 ? Thomas On Mon, Jun 30, 2008 at 10:09 AM, Olivier Revollat [EMAIL PROTECTED] wrote: My problem: I can't find accentuated static content with with sfLucene !! My config : I use symfony 1.0.6 with sfLucenePlugin 0.1.6. frontend

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Thomas Rabaix
you can copy the sfGuardUser class into your lib/model folder. The autoloader load model in the lib/model first (at least for sf1.0). so you can easily redefine methods. Thomas On Wed, Aug 20, 2008 at 11:04 AM, Nicolas CHARLOT [EMAIL PROTECTED] wrote: Hi, I'm looking for the best practice

[symfony-users] Re: Problem Filtering by Date

2008-08-20 Thread Thomas Rabaix
Take care if the value come from the user request, you should add (int)$month to avoid SQL Injection. Thomas On Wed, Aug 20, 2008 at 11:34 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: You can use Criteria's custom parameter like so: $c = new Criteria(); $c-add(RecordPeer::DATE, MONTH

[symfony-users] Re: rendering partial in a task ?

2008-08-20 Thread Thomas Rabaix
You can put the hostname into a config file or can be an argument when you call your task. Thomas On Tue, Aug 19, 2008 at 8:12 PM, kevinkevin [EMAIL PROTECTED] wrote: Thanks... I will try the suggestions. The main problem with setting it manually is that when using source control

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Thomas Rabaix
I have a sf1.0 project with a custom sfGuardUser in lib/model and it works fine. have you try a symfony cc ? you can check the cache file to see how symfony create the autoload classes array. Thomas On Wed, Aug 20, 2008 at 11:29 AM, Nicolas CHARLOT [EMAIL PROTECTED] wrote: Le 20 août 08 à 11

[symfony-users] Re: sfGuard: how to manage many profile types?

2008-08-20 Thread Thomas Rabaix
There is no 'clean' way to do that. There is a plugin from Francois which allows to do that, but it is a sf1.0 plugin http://www.symfony-project.org/plugins/sfPropelAlternativeSchemaPlugin not sure if sf1.1 has a way to change on the fly the database schema to add custom field Thomas On Wed

[symfony-users] Re: Change database username

2008-08-28 Thread Thomas Rabaix
luck Thomas On Wed, Aug 27, 2008 at 5:21 PM, Pedro Bastos [EMAIL PROTECTED] wrote: Symfonians, I'm using Postgresql 8.3 with Symfony 1.0. I'd like to set username and password on the fly. I mean username and password will NOT be stored in databases.yml instead the username will be provided

[symfony-users] Important : sfMySQLSessionStorage

2008-08-29 Thread Thomas Rabaix
/snippet/26 [3] http://www.symfony-project.org/forum/index.php/m/20549/ -- Thomas Rabaix Internet Consultant --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email

[symfony-users] Re: A very basic doubt...

2008-09-08 Thread Thomas Rabaix
Hello, Keep in mind that you have one action for one template. You should not used more than one action to render one tempate. Thomas On Mon, Sep 8, 2008 at 10:17 AM, Sumedh [EMAIL PROTECTED] wrote: Yeah, but this doesn't work if there another action getting executed as I said above

[symfony-users] Re: sf 1.1 : where has passed sfResponse parameter holder ?

2008-09-10 Thread Thomas Rabaix
Hello, You can used your own caching mechanism with a filter. You may have a look to sfFunctionCache to store and retrieve your breadcrumb. The only problem is to invalidate the cache breadcrumb when the view change. Thomas On Wed, Sep 10, 2008 at 8:06 AM, Nicolas CHARLOT [EMAIL PROTECTED

[symfony-users] Re: getUri() does not include port number? :(

2008-09-22 Thread Thomas Rabaix
Can you please reply to our question ? Are you behind a proxy or are your connections tunnelings through a specific port ? like 4550 (public) to 80 (dev server ) Thomas On Mon, Sep 22, 2008 at 12:01 PM, Sumedh [EMAIL PROTECTED] wrote: Can someone put some light plase? :) On Sep 20, 10

[symfony-users] Doctrine, query arguments while fetching relations objects

2008-09-22 Thread Thomas Rabaix
a second parameter with a Query Object and the Doctrine_Record::_get a third Query argument . -- Thomas Rabaix Internet Consultant --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group

[symfony-users] Re: Doctrine, query arguments while fetching relations objects

2008-09-23 Thread Thomas Rabaix
a relation is made of. Thomas On Tue, Sep 23, 2008 at 8:03 AM, Bernhard Schussek [EMAIL PROTECTED] wrote: Hi Thomas, Why don't you just query the comments independently of the blog article? $comments = Doctrine_Query::create() -from('Comment c') -where('c.article_id = ?', $yourArticleId

[symfony-users] Re: Fatal error: Cannot instantiate interface

2008-09-23 Thread Thomas Rabaix
Connection is a reserved class name. you cannot have a class name called Connection. Thomas On Tue, Sep 23, 2008 at 12:56 PM, Vincent Majer [EMAIL PROTECTED] wrote: Hi, Sorry for my english. I can't understand why i have this error : Fatal error: Cannot instantiate interface Connection

[symfony-users] Re: Tutorial: How migrate/change a website in producction

2008-09-24 Thread Thomas Rabaix
this. Well, i lookinf for a solution, that no have do some dump of data or DDBB. When you have several MB in your table, can't dump to YML -- Thomas Rabaix Internet Consultant --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: cant autoloading a task from a plugin with sf1.2

2008-09-25 Thread Thomas Rabaix
Evangelist http://www.jwage.com -- Thomas Rabaix Internet Consultant --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com

[symfony-users] Re: Google bots and sessions

2008-09-29 Thread Thomas Rabaix
You might implement this as follow : 1. add new env called 'seo' or 'bot' 2. uses the sfNoStorage in factory.yml 3. make a case based on the IP in the index.php file to load the correct env. Thomas On Mon, Sep 29, 2008 at 2:30 PM, Paulo Magalhaes [EMAIL PROTECTED] wrote: Hi, I've a site

[symfony-users] Re: strange beahviour with request in forms1.1

2008-09-29 Thread Thomas Rabaix
Hello, Can you post the HTML output of your form ? and your form definition ? Thomas On Mon, Sep 29, 2008 at 5:25 PM, Martin Groh [EMAIL PROTECTED] wrote: I'm very sorry to annoy you all with this again. But I'm completely stuck with forms in sf1.1 (meanwhile I upgraded to 1.1.3). Even

[symfony-users] sfForm and $decoratorFormat

2008-10-02 Thread Thomas Rabaix
%%field%%help%%hidden_fields%/td\n/tr\n, $errorRowFormat = trtd colspan=\2\\n%errors%/td/tr\n, $helpFormat = 'br /%help%', $decoratorFormat = table\n %content%/table; } -- Thomas Rabaix Internet Consultant --~--~-~--~~~---~--~~ You received

  1   2   3   4   >