[symfony-users] Re: Should project:enable clear cache?

2008-04-16 Thread Paulo Magalhaes
Hi, I would like to second that. Moreover, currently the log-rotate task disables the application and doesn't enable it again afterwards (btw, is this by design?). One could argue that it's easy to directly remove the lock file, but I also don't see the need to clear cache when enabling the

[symfony-users] trier par date sans tenir compte de l' année

2008-04-16 Thread Berduj
Bonjour, dans un projet Symfony j'ai une table avec des utilisateurs et leur date de naissance. Je souhaite pouvoir afficher les prochains anniversaires ( donc faire un tri par date de naissance dans tenir compte de l'année) . J'ai cherché l'équivalent d'un DATEPART dans propel mais je n'ai pas

[symfony-users] Sort by date without year

2008-04-16 Thread Berduj
Hello, in a symfony project i got a table containing users and birthdates. I'd like to display the next birthdays (sort by date without year). I've tried to find something like DATEPART in propel but didn't. What would you do for this? Thanx --~--~-~--~~~---~--~~

[symfony-users] Re: trier par date sans tenir compte de l'a nnée

2008-04-16 Thread Nicolas Perriault
On Wed, Apr 16, 2008 at 10:11 AM, Berduj [EMAIL PROTECTED] wrote: Hello, in a symfony project i got a table containing users and birthdates. I'd like to display the next birthdays (sort by date without year). I've tried to find something like DATEPART in propel but didn't. What would

[symfony-users] Re: Is it a bug of sfWebResponse ?

2008-04-16 Thread Nicolas Perriault
On Wed, Apr 16, 2008 at 11:05 AM, Cipher Chien [EMAIL PROTECTED] wrote: below is my sample code: in action: function executeTest() { $json = array('success'=true); $this-getResponse()-setHttpHeader(X-JSON, '()'); echo json_encode($json); return sfView::HEADER_ONLY;

[symfony-users] Re: Is it a bug of sfWebResponse ?

2008-04-16 Thread Cipher Chien
Thanks your reply the post. I tried your solution before I create the post, but, the result is html header doesn't show any data. the result catched by firebug: html head/ body/ /html Cipher Chien On 4月16日, 下午5時15分, Nicolas Perriault [EMAIL PROTECTED] wrote: On Wed, Apr 16, 2008 at

[symfony-users] Is it a bug of sfWebResponse ?

2008-04-16 Thread Cipher Chien
Dear Symfony fans, I think I find a bug of sfWebResponse, but ...I'm not sure. For make sure, I post it before I make a ticket to Symfony. Hope someone who met the same problem could share some advices. below is my sample code: in action: function executeTest() { $json =

[symfony-users] Re: Cookie for one project

2008-04-16 Thread Mohammad Asif Ali
Eno, I fixed the problem with IE. IE will not create a Cookie of 60 min life. so i increased the time to 120 mins. Its working fine.. and the multiple themes also working great. Thanks Asif On Apr 16, 1:54 pm, Mohammad Asif Ali [EMAIL PROTECTED] wrote: Yes i cleared the cookies and

[symfony-users] Re: Table joins with Propel

2008-04-16 Thread Fabrice B
If with your query you only hydrate your blog posts then that additional information get the interest of the user or nothing if no interest will just disappear, therefore making your approach useless... This is actually a common problem because a common one. My approach would be the following :

[symfony-users] Re: Assign CSS-class to form-field if validation fails

2008-04-16 Thread Daniel Haller
Hi Red, You could try something like ?php echo input_tag('thefield', '', array('class'=form_has_error('thefield')?'error':'')) ? I found a similar solution for this, but I am now using a helper-Function: /** * Assigns error-CSS Class to a given Field if validation has failed * *

[symfony-users] Re: Assign CSS-class to form-field if validation fails

2008-04-16 Thread red
Hi Yeah sure it's always better to create a clearer helper-solution... :) Well with your solution you'll not be able to set the other classes. I'd recommend to add another (optional) parameter: /** * Assigns error-CSS Class to a given Field if validation has failed * * @param string

[symfony-users] Re: Is it a bug of sfWebResponse ?

2008-04-16 Thread Nicolas Perriault
2008/4/16 Cipher Chien [EMAIL PROTECTED]: I tried your solution before I create the post, but, the result is html header doesn't show any data. the result catched by firebug: It's normal as then content of json is put in the header part of the response. You can check it using the Net tab

[symfony-users] View includes Partial, which includes Ajax helpers ... Not Working on View !

2008-04-16 Thread Shinkan
Hi everyone ... I have a crucial problem for an application built with Symfony. I use the input_auto_complete_tag Ajax helper on a partial which is called _adresseForm. Then, I call this Partial into an action view called personneInitFormSuccess. When I try to use the personneInitForm action,

[symfony-users] Call to peer method causing blank screen

2008-04-16 Thread [EMAIL PROTECTED]
Even in dev public static function doReports(Criteria $criteria, $con = null) { $weeks = array(); foreach (sfContext::getInstance()-getUser()-getMonthObj()- getWeeksOfMonth() as $week) { $weeks[] =

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

2008-04-16 Thread Lee Bolding
Hmm... they're both foreignkeys? Not tried that before maybe that's the problem :-/ On 16 Apr 2008, at 00:54, Daniel Haller wrote: Hi Lee, Are you sure that in your schema.yml you've set both columns to have PrimaryKey=true? Yes, I think so... :-) This is how the generated SQL

[symfony-users] Re: Call to peer method causing blank screen

2008-04-16 Thread Lee Bolding
try setting your error_reporting level to 8191 On 16 Apr 2008, at 17:31, [EMAIL PROTECTED] wrote: Even in dev public static function doReports(Criteria $criteria, $con = null) { $weeks = array(); foreach

[symfony-users] sfWebRequest error

2008-04-16 Thread Rytis Daugirdas
Hello, I need to be able to use request objects (sfWebRequest) in my automated tests. Running the following - $request = new sfWebRequest(); $request-initialize(sfContext::getInstance()); $request-setError('id', 'error'); echo $request-getError('id'); -

[symfony-users] Re : [symfony-users] Call to peer method causing blank screen

2008-04-16 Thread Loïc Vernet
Generally this is beacuse your are giving an object of value instead of a criteria. - Message d'origine De : [EMAIL PROTECTED] [EMAIL PROTECTED] À : symfony users symfony-users@googlegroups.com Envoyé le : Mercredi, 16 Avril 2008, 18h31mn 00s Objet : [symfony-users] Call to peer

[symfony-users] Re: wrong-generated sql-query (symfony propel-generate-crud)

2008-04-16 Thread Georg Sorst
Hi Dan, looks very much like you are passing the wrong value (ie. NULL) to the RetrieveByPK() method. Can you check if this might be the case? Cheers, Georg Dan Jipa schrieb: One of my actions in a module calls the *RetrievebyPK method* and generated 0 results. I've used the debug mode

[symfony-users] Good Collection of Important Websites

2008-04-16 Thread Rapid Mile
This is not spam, if you dont want to receive mails from us, then please reply with subject Remove Dear Friends, Here is a new website from Rapid Mile, which has links to all daily use Important Websites. http://ihome.rapidmile.com http://snipurl.com/24nwr We recommend you to put it as your

[symfony-users] Remove

2008-04-16 Thread Xavier Cambar
Le 16 avr. 08 à 23:11, Rapid Mile a écrit : This is not spam, if you dont want to receive mails from us, then please reply with subject Remove Dear Friends, Here is a new website from Rapid Mile, which has links to all daily use Important Websites. http://ihome.rapidmile.com We

[symfony-users] symfony1.1 web debug output looks ugly

2008-04-16 Thread Christian Hammers
Hello I'm playing aroung with symfony 1.1 and the web debug javascript thing shows e.g. the vars config very ugly: Request Toggle --- ? parameterHolder : ? action : index ? module : hardware Shouldn't

[symfony-users] Re: symfony1.1 web debug output looks ugly

2008-04-16 Thread Fabien POTENCIER
Do you use syck? Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.com | aide-de-camp.org Tél: +33 1 40 99 80 80 Christian Hammers wrote: Hello I'm playing aroung with symfony 1.1 and the web debug javascript thing shows e.g. the vars config

[symfony-users] sfPropel13 bug?

2008-04-16 Thread Ian P. Christian
Please keep in mind, I don't use propel anymore, and haven't for years, so I'm almost at n00b level I guess ;) I've been told to fix a problem in a website using it however, so I've had to get the hands a little dirty This code: $c = new Criteria(); //pager $pager = new

[symfony-users] Re: symfony1.1 web debug output looks ugly

2008-04-16 Thread Christian Hammers
On 2008-04-17 Fabien POTENCIER wrote: Do you use syck? I had indeed a php5-syck Debian package installed. Once it was purged the output looked nice again. Symfony should write a warn logging message about it :-) thanks for the quick response, -christian- Fabien -- Fabien Potencier

[symfony-users] Re: sfPropel13 bug?

2008-04-16 Thread Kiril Angov
I think you are right that there is a problem, but it should be reported to the Propel guys rather than here. Just make sure you tell them details because I think the problem comes from sfPropelPager because it takes the empty Criteria and does $c-setLimit(0), $c-setOffset(0), etc and some other

[symfony-users] Re: sfPropel13 bug?

2008-04-16 Thread Ian P. Christian
Kiril Angov wrote: I think you are right that there is a problem, but it should be reported to the Propel guys rather than here. Ah well - the reason I didn't is because in propels SVN trunk, BasePeer class doesn't even have a doCount() method, so I'm not too sure if it's a symfony thing or

[symfony-users] Re: sfWebRequest error

2008-04-16 Thread Kiril Angov
Seems like it... create a ticket in Trac. Whatever it is it is not supposed to show fatal error but should handle it properly. Kiril On Wed, Apr 16, 2008 at 1:20 PM, Rytis Daugirdas [EMAIL PROTECTED] wrote: Hello, I need to be able to use request objects (sfWebRequest) in my automated

[symfony-users] Re: Is it a bug of sfWebResponse ?

2008-04-16 Thread Cipher Chien
Many Thanks to Nicolas. I think this is not a bug of sfWebResponse. This is about my coding way has some problem. Here is my workable code, if someone who also use ExtJS + Symfony, you will need the solution. function executeTest() { $json = array('success' = true); return

[symfony-users] How to serve binary files?

2008-04-16 Thread Rod
Does anybody know of a good solution for serving binary files? I've considered creating a /web/downloads directory and putting my files in there. Also, is there helper I can use to create a path to the file? AssetHelper doesn't seem to have anything for this purpose. Thanks for any help :)

[symfony-users] Config-handler in the symfony 1.1

2008-04-16 Thread Dmitry Nesteruk
I created the file config_handlers.yml with following contents: config/assets.yml: class: AssetsConfigHandler The class AssetsConfigHandler: class AssetsConfigHandler extends sfYamlConfigHandler { public function execute($configFile) { $this-initialize(); $config =