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
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
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:
>
>
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
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
> 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
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é
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
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
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
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
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
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
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
;
> 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
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
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
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
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
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
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
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
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
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
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,
>
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
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
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
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'
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
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
31 matches
Mail list logo