[symfony-users] Re: IP blocking for a specific page element in a symfony 1.0 project

2010-05-17 Thread Tom Ptacnik
Yes, you can add the relevant ip's into the app.yml. Then in the appropriate action I would do sometnig like if ($actualIP is in_array(config->(app_denied_ips)) { $this->hideEmail = true} And you have to customize you template On 13 kvÄ›, 10:44, blurmy23 wrote: > Hey folks, > > I've inherite

[symfony-users] Re: IP blocking for a specific page element in a symfony 1.0 project

2010-05-15 Thread pghoratiu
There are several ways to do this: 1. For the user-email field create a partial and put the logic in there as you would with PHP code. If you do not want to mess around with symfony code this is the way to go. 2. A more "symfony way" would be to setup a credential "can_see_email_addresses" and us