[symfony-users] Symfony2 NotFoundHttpException custom error 404 page

2011-02-01 Thread Jérôme TEXIER
Hi guys, what should be a good practice to handle NotFoundHttpException and redirect to a custom 404 page ? Where and how should be caught this exception ? Any ideas ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received thi

[symfony-users] Re: Symfony2 Twig Helpers and _view variable

2011-01-25 Thread Jérôme TEXIER
g/doc/extensions.html#globals-and-functions should be updated. Regards PS : btw Twig is really nice, I love it. On 24 jan, 10:36, Fabien Potencier wrote: > On 1/24/11 5:02 PM, Jérôme TEXIER wrote: > > > Hi Fabien, > > > My question is just what is the best way to use some user-de

[symfony-users] Re: Symfony2 Twig Helpers and _view variable

2011-01-24 Thread Jérôme TEXIER
was thinking on how to use those functions now without the _view variable. I understand now that I simply should define those functions as Twig_Function_Method on a TwigExtension. Is that correct ? On 24 jan, 00:48, Fabien Potencier wrote: > On 1/24/11 5:20 AM, Jérôme TEXIER wrote: > >

[symfony-users] Symfony2 Twig Helpers and _view variable

2011-01-23 Thread Jérôme TEXIER
Hello, since https://github.com/symfony/symfony/commit/b60d254be2f9b9a8b1340a8f7b40270748692ca5 _view variable no more exist on templates. Before PR5, I was using this variable to access to some injected Twig helper functions. It doesn't seem really clear to me now what it's best way to do it now

[symfony-users] Re: SF2 custom get methods in entity repository class

2011-01-19 Thread Jérôme TEXIER
It's not a problem of location of the repository class but a problem of configuration. Your problem is that getRepository() is returning a default Doctrine \ORM\EntityRepository class (which only contains find, findBy, findAll) and not the custom one you created. You have to explicitly tell what i

[symfony-users] Re: Doctrine2 ODM missing hydrator files

2011-01-19 Thread Jérôme TEXIER
> Doctrine documentation. I spent a few hours scratching my head and > eventually figured out that there was probably a config setting like > the autogenerate proxies one and looked through the xml configuration > to figure it what it was called. > > On Jan 18, 12:45 pm, Jérôme T

[symfony-users] Re: Doctrine2 ODM missing hydrator files

2011-01-18 Thread Jérôme TEXIER
That works ! Thanks a lot. It was quite simple indeed. Where do you find that on the documentation ? On 18 jan, 01:00, Damon Jones wrote: > Add tbe following to your config.yml: > > doctrine_odm.mongodb: >     auto_generate_hydrator_classes: true > > On Jan 17, 11:30 pm, Jé

[symfony-users] Doctrine2 ODM missing hydrator files

2011-01-17 Thread Jérôme TEXIER
Hi, I'm currently playing with Symfony2 PR4 and Doctrine2 ODM. I've defined a document class called "Image" which relies on an existant mongodb collection. When I run a query to its related document repository (which is Doctrine\ODM\MongoDB\DocumentRepository by default), $image = $dm->getReposit

[symfony-users] symfony test:unit or test:all causes odd segmentation fault

2010-12-08 Thread Jérôme TEXIER
Hi, I'm facing a very odd problem when running my unit test suite. Some tests pass correctly but others (not always the same) are causing a segmentation fault (see trace below). I precise that each test works and passes individually, the probem only appears when runing test:unit or test:all. Each

[symfony-users] Is there any way to override symfony core class such as sfModelGenerator ?

2010-05-19 Thread Jérôme TEXIER
Hi, I would override sfModelGenerator class in order to change renderField method's behavior. Generator stuff is not supported by factories.yml and it looks like there no helpful events I could tweak there. Any idea on how I can have my own sfModelGenerator class ? Regards. Jérôme -- If you wa

[symfony-users] Re: Propel 1.3 nestedset strange behavior

2009-03-06 Thread Jérôme TEXIER
On 4 mar, 16:49, Gorka wrote: > Last time I checked -though it was months ago- I think nodes could not > be moved through the tree, but I am not sure. Maybe the limitation was > that they could not be moved between different trees (different > scopes)... sorry for my bad memory. > Anyway, I've pe

[symfony-users] Re: Propel 1.3 nestedset strange behavior

2009-03-04 Thread Jérôme TEXIER
On 4 mar, 00:28, "Yevgeniy A. Viktorov" wrote: > Have you tried to post ticket there? > As I wrote it, yes. Message rejected by Trac. Regards. Jérôme --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users

[symfony-users] Propel 1.3 nestedset strange behavior

2009-03-03 Thread Jérôme TEXIER
I've found a weird behavior while using Propel 1.3 with included nestedset module on symfony 1.2.4. Moving a node to one of its descendant put strange values on tree_left & tree_right fields and breaks the tree. I'd like to post this as a propel ticket on http://propel.phpdb.org/ but my message

[symfony-users] Re: functional test authentication

2009-01-30 Thread Jérôme TEXIER
am 'redirected' but everything seems very odd, and I am not logged > in for my next request: > >  http://www.dantleech.com/data/functionaltestfail2.png > > I am authenticated in BEFORE I send the [->get] but not during or > after.. I also have to wrap the [->get] in tr

[symfony-users] Re: functional test authentication

2009-01-29 Thread Jérôme TEXIER
; >   end(); > > > > The problem is that we do not get as far as the first assertion in > emTestBrowser::loginOk. The login code calls [->redirect] and that > throws an sfStopException which, err, stops everything. If I remove > the redirect from the lo

[symfony-users] Re: functional test authentication

2009-01-28 Thread Jérôme TEXIER
Did you try to use the specific sfTesterUser to check the state of the your user : with('user')->begin()-> isAuthenticated()-> end() One good point dealing with signin/signout operations on functional test is to write a reusable class for those kind of test, something like : class sfGuardTestF

[symfony-users] Re: Sf 1.2 functional tests harness fails

2009-01-21 Thread Jérôme TEXIER
mething greater (i.e : 128). > > Julien > > On Jan 21, 10:37 am, Jérôme TEXIER wrote: > > > Hi, > > > I've got a problem running every functional tests of an application > > > ex: symfony test:functional frontend > > > returns me for ea

[symfony-users] Sf 1.2 functional tests harness fails

2009-01-21 Thread Jérôme TEXIER
Hi, I've got a problem running every functional tests of an application ex: symfony test:functional frontend returns me for each test a "dubious" flag and a "Test returned status 255" message although all of those tests work individually. I can't figure out what really fails because frontend_t

[symfony-users] Re: set 'required' messages form all widgets..

2009-01-16 Thread Jérôme TEXIER
already set for those forms. On 9 jan, 15:19, Jérôme TEXIER wrote: > Hello, > > sfValidatorBase::setRequiredMessage('This is required'); seems to be > effectless (ugly "Required." message is still displayed) when > setInvalidMessage looks to work fine. > > I&#x

[symfony-users] Re: set 'required' messages form all widgets..

2009-01-09 Thread Jérôme TEXIER
Hello, sfValidatorBase::setRequiredMessage('This is required'); seems to be effectless (ugly "Required." message is still displayed) when setInvalidMessage looks to work fine. I've also tried to override required message directly on the configure method of my validator class: $messages = ar

[symfony-users] Re: Symfony CLI out of memory error??

2009-01-07 Thread Jérôme TEXIER
Hi, Although you think your memory_limit parameter is ok, you should try to increase it on PHP CLI config file. PHP has 2 php.ini file: one for Apache, one for command line interpreter (CLI). Running symfony tasks rely on CLI php.ini file, usually found on /etc/ php5/cli/php.ini (on Ubuntu/Debian

[symfony-users] Re: Symfony patterns?

2008-11-24 Thread Jérôme TEXIER
Hi, I don't understand why you need to retrieve your cart on db. Cart could only be saved at the end of the process when the user is validating its order and just remained on session before that event. BTW, did you take a look to sfShoppingCartPlugin, which is pretty useful for that kind of purp

[symfony-users] Re: Propel insert float error

2008-11-24 Thread Jérôme TEXIER
O in place of Creole - migrating to Doctrine Regards Jérôme On Oct 29, 2:55 pm, Jérôme TEXIER <[EMAIL PROTECTED]> wrote: > Update: setting default_culture to 'en' on settings.yml actually fixes > the problem. > > I'm happy that it works but I feel a bit unconfortable

[symfony-users] Re: Propel insert float error

2008-10-29 Thread Jérôme TEXIER
do on my previous example. Jérôme On 29 oct, 13:37, Jérôme TEXIER <[EMAIL PROTECTED]> wrote: > Hum, I did also think it was linked to the locale but without any > success... > > I tried to set it to 'en' (or en_US, en_GB) , which can be easily done > on symfony using set

[symfony-users] Re: Propel insert float error

2008-10-29 Thread Jérôme TEXIER
de values. > The problem was that according my locale, floats should be separated by > commas, whereas the english standard is to use a point. I think you can get > around this by changing the locale. > 2008/10/29 Jérôme TEXIER <[EMAIL PROTECTED]> > > > > > Hi all, >

[symfony-users] Propel insert float error

2008-10-29 Thread Jérôme TEXIER
Hi all, I have a problem with Propel regarding insert of float values on a mySQL database. Basicaly, the float . separator is replaced in the SQL query by a , (comma) without quoting the value which creates an error. INSERT INTO product (NAME,PRICE) VALUES ('Foo',44,6) in place of : INSERT INTO

[symfony-users] Re: sfGuardAuth redirecting to favicon

2008-09-11 Thread Jérôme TEXIER
Very weird behavior indeed... Does it really redirect to http://yourdomain/favicon.ico ? Take a look to executeSignin function in plugins/sfGuardPlugin/modules/ sfGuardAuth/lib/BasesfGuardAuthActions.class.php, you'll see that after signin, redirection is send to : - an url set in app.yml (if def

[symfony-users] Re: sfGuard forgotten password functionality

2008-03-29 Thread Jérôme TEXIER
On 28 mar, 10:48, Lee Bolding <[EMAIL PROTECTED]> wrote: > Currently, if using sfGuard you cannot rely on email address being > available for use in forgotten password functionality - as this > requires that not only sfGuardUserProfile has been implemented (which > as we know is optional), but t

[symfony-users] Re: sfGuard forgotten password functionality

2008-03-29 Thread Jérôme TEXIER
On 28 mar, 11:47, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > On Fri, Mar 28, 2008 at 10:11 AM, Jérôme TEXIER <[EMAIL PROTECTED]> wrote: > > Nicolas, thanks for opening symfonians code, that's a really great > > initiative. > > I didn'

[symfony-users] Re: sfGuard forgotten password functionality

2008-03-28 Thread Jérôme TEXIER
Hi all, On 26 mar, 16:50, "Nicolas Perriault" <[EMAIL PROTECTED]> wrote: > I agree that an 'email' column should exist by default in > sf_guard_user table, it's a so common needed information on web apps > nowadays. It'd be a bit overkill to manage a foreign profile table to > just store such a c

[symfony-users] Re: Thank you Symfony Team

2008-01-17 Thread Jérôme TEXIER
You also should remove development environment for application backend... :) Maybe you also could rename backend.php or use a rewrite rule to avoid access to your admin side just by typing http://www.playukinternet.com/backend.php BTW, is there a pratical reason why you didn't use sfGuardPlugin t