Symfony Tips: Use the referer to customize messages on Symfony
Submitted by nei on Tue, 11/24/2009 - 11:10
On symfony is a good idea to use the referer to costomize some messages, like this one below.
in template, you have to make a condition:
<?php if( $sf_request->getReferer() != '' ): ?>
The page <?php echo $sf_request->getParameter('page'); ?> was changed.
<?php else: ?>
The page <?php echo $sf_request->getParameter('page'); ?> not exists, check if you type correctly.
<?php endif; ?>
Post new comment