[symfony-users] Put message from forward404() into template

2009-09-13 Thread pcummins
How do I get the message from a call to $this-forward404() into a customized error404Success.php template? --~--~-~--~~~---~--~~ 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] Re: Custom admin theme problem

2009-09-13 Thread Macdom
Nobody's online ? --~--~-~--~~~---~--~~ 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 to

[symfony-users] Re: Put message from forward404() into template

2009-09-13 Thread rooster (Russ)
On Sep 13, 9:05 am, pcummins patwcumm...@gmail.com wrote: How do I get the message from a call to $this-forward404() into a customized error404Success.php template? Your custom template should have a variable called $exception, which is the sfError404Exception object... The message is the

[symfony-users] Re: Put message from forward404() into template

2009-09-13 Thread Patrick Cummins
Russ, unfortunately the $exception variable doesn't seem to available when I send a 404 (see code below). The $exception variable IS available when I throw an unhandled exception from an action. Unfortunately, my entire app was built to throw errors (for missing parameters and just about

[symfony-users] Re: cant upload file through admin generator

2009-09-13 Thread Richtermeister
Hehehe, thanks :) On Sep 12, 1:12 pm, גולן (במילעל) stu...@yanivgolan.com wrote: Thanks Daniel it did help (BTW liked the delicate graphics in your Blog header...:) ) On Sep 12, 7:57 pm, Richtermeister nex...@gmail.com wrote: Hey Yaniv, I suppose you're using sf1.2 In this case, the

[symfony-users] static pages module

2009-09-13 Thread Mihai Rusoaie
Hello! I am following the tutorial for creating static pages at http://trac.symfony-project.org/wiki/HowtoServeStaticContent My question is: how can I generate a module without a model (for the static module I don't need a model, do I)? Thank you! Mihai Rusoaie e-Business Consultant Mobile:

[symfony-users] Re: Put message from forward404() into template

2009-09-13 Thread rooster (Russ)
Sorry, my bad - on closer inspection this is not the case for 404 exceptions. Not sure why, this would be a useful feature! The only place that gets the error message is the php error_log function, which means in theory you could retrieve the error using error_get_last(). This is not wise

[symfony-users] Re: static pages module

2009-09-13 Thread Gábor Fási
Just like any other module: your modules need not represent your models. Just create a new module, and don't use any models there :) Gábor On Sun, Sep 13, 2009 at 18:47, Mihai Rusoaie mi...@rusoaie.com wrote: Hello! I am following the tutorial for creating static pages at

[symfony-users] Re: Put message from forward404() into template

2009-09-13 Thread Patrick Cummins
Thanks Russ! I looked into converting all 404's errors to unhandled exceptions... but error.html.php, doesn't get decorated with the layout so I'll take a crack overriding the sf404Exception. I'll post my patch when it's done. On Sun, Sep 13, 2009 at 1:12 PM, rooster (Russ)

[symfony-users] generate static pages

2009-09-13 Thread Mihai RUSOAIE
Hello! I am following the tutorial for creating static pages at http://trac.symfony-project.org/wiki/HowtoServeStaticContent My question is: how can I generate a module without a model (for the static module I don't need a model, do I)? Thank you! Mihai Rusoaie e-Business Consultant Mobile:

[symfony-users] Deployment Scenarios (DB Specific)

2009-09-13 Thread Fotis Paraskevopoulos
Hello All, I would like to ask the group the different deployment scenarios that have been setup. I am specifically looking for some information on how you manage your database deployment when some changes need to be made. For example I deploy version 1.0 of the site/application and I need to

[symfony-users] Special character in admin generator label

2009-09-13 Thread HAUSa
Hi all, I'm using the admin generator, and I want to use a euro sign (€) in a field label. However, when I use that in my generator.yml, it displays euro;. It replaces automatically the character! How can I get this character in my label? And, is it possible to use HTML in my label? For

[symfony-users] Re: Fast query on all records

2009-09-13 Thread Gábor Fási
http://snippets.symfony-project.org/snippet/50 On Sun, Sep 13, 2009 at 22:44, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is there a fast way to update all records matching a criteria? What I could do, is this: $results = MyPeer::doSelect(new Criteria()); foreach($results as

[symfony-users] Re: Fast query on all records

2009-09-13 Thread Sid Bachtiar
This might help http://snippets.symfony-project.org/snippet/50 On Mon, Sep 14, 2009 at 8:44 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is there a fast way to update all records matching a criteria? What I could do, is this: $results = MyPeer::doSelect(new Criteria());

[symfony-users] Re: Fast query on all records

2009-09-13 Thread Sid Bachtiar
Try this: $oConnection = Propel::getConnection(); $oSelectCriteria = new Criteria(); $oUpdateCriteria = new Criteria(); $oUpdateCriteria-add(EstatePeer::RANK, 'rank=rank+1', Criteria::CUSTOM_EQUAL); // rank goes 1 up BasePeer::doUpdate($oSelectCriteria, $oUpdateCriteria, $oConnection); On

[symfony-users] Admin generator td classname list

2009-09-13 Thread HAUSa
I use the admin generator, but in the list action I want to give a TD (field value) a specific CSS class. That is to align the text in that TD right. Does somebody know if and how that is possible? --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: Fast query on all records

2009-09-13 Thread HAUSa
Helas, no difference... I also tried to just state '5' instead of the 'rank=rank+1'. But then also nothing is updated. On 13 sep, 23:17, Sid Bachtiar sid.bacht...@gmail.com wrote: Try this: $oConnection = Propel::getConnection(); $oSelectCriteria = new Criteria(); $oUpdateCriteria = new

[symfony-users] Re: Fast query on all records

2009-09-13 Thread Gábor Fási
This criteria means: all records, that have a star as their ID. Try Sid's modification, so an empty criteria, that means all records. On Sun, Sep 13, 2009 at 23:14, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: $oSelectCriteria-add(EstatePeer::ID, '*'); //all records

[symfony-users] Re: Fast query on all records

2009-09-13 Thread HAUSa
I tried that, that was my helas no difference answer. But besides that, I also tried the '5' instead of 'rank=rank+1' update, but also that didn't work. My code now: $oConnection = Propel::getConnection(); $oSelectCriteria = new Criteria(); $oUpdateCriteria = new Criteria();

[symfony-users] Re: Fast query on all records

2009-09-13 Thread Sid Bachtiar
Did you get any error message? On Mon, Sep 14, 2009 at 9:44 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I tried that, that was my helas no difference answer. But besides that, I also tried the '5' instead of 'rank=rank+1' update, but also that didn't work. My code now:

[symfony-users] Re: Fast query on all records

2009-09-13 Thread Sid Bachtiar
What's the SQL query in the debug log? On Mon, Sep 14, 2009 at 10:03 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: No... On 13 sep, 23:53, Sid Bachtiar sid.bacht...@gmail.com wrote: Did you get any error message? On Mon, Sep 14, 2009 at 9:44 AM, HAUSa

[symfony-users] Re: Fast query on all records

2009-09-13 Thread HAUSa
Hmm... that query is not found in the controlpanel_dev.log... sep 14 00:13:20 symfony [info] {estateActions} Call estateActions- executeCreate() sep 14 00:13:20 symfony [debug] {sfPropelLogger} exec: SET NAMES 'utf8' sep 14 00:13:20 symfony [debug] {sfPropelLogger} prepare: INSERT INTO estate

[symfony-users] Re: Fast query on all records

2009-09-13 Thread Sid Bachtiar
If it doesn't show up and there's no error, it is possible that the piece of code isn't executed at all. On Mon, Sep 14, 2009 at 10:19 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Hmm... that query is not found in the controlpanel_dev.log... sep 14 00:13:20 symfony [info]

[symfony-users] PHP-Warning in symfony-lib files when trying to run functional Tests

2009-09-13 Thread halla
Hi, when trying to run one of the default, generated functional Tests, PHP throws a warning: - D:\web\symfony1.localhostsymfony test:functional frontend categoryActions # get /category/index PHP sent a warning error at D:\web\libs\symfony-1.2.8\lib\util \sfBrowserBase.class.php

[symfony-users] Re: get $sf_content in a filter.

2009-09-13 Thread aalexand
Glad I could help. On Sep 11, 5:38 pm, Thomas Parisot // Oncle Tom tho...@oncle- tom.net wrote: Thanks, you headed us on the good way. We indeed connected on the `template.filter_parameters` and checked if the parameter 'sf_content' was there and filled. :-) On Sep 11, 4:35 pm, aalexand

[symfony-users] Issue uploading image with Admin Generator - Sf 1.2

2009-09-13 Thread Matías López
Hello all, Im trying to upload an image in the admin generator using the widget sfWidgetFormInputFileEditable but I only get *Array* in the database and the file is not uploaded.. and I have no error messages. Any idea what could be happening? This is the widget conf:

[symfony-users] Re: Issue uploading image with Admin Generator - Sf 1.2

2009-09-13 Thread Matías López
Hello Again... Dont ask me why.. but the script started working when I added this: $this-validatorSchema['imagen'] = new sfValidatorFile(array( 'required' = false, 'path' = sfConfig::get('sf_upload_dir').'/contenidos', 'mime_types' = 'web_images', )); Many Thanks