Re: [symfony-users] [symfony 1.4] checking permissions in layout.php to make links active or inactive

2010-09-25 Thread Michael Hodges
Thanks, that's exactly what I needed to know about. I'll spend time rereading helpers since it must be time for my second pass. Much appreciated. - Michael On Sat, Sep 25, 2010 at 12:41 PM, Wanderson wrote: > You could make use of link_to_if helper with $sf_user->hasPermission() > method. Take

Re: [symfony-users] problem with how to manage image size....

2010-09-25 Thread Diego Bello
On Fri, Sep 24, 2010 at 9:36 PM, Nova Lina wrote: > dear all... i have a problem with manage image on my web im junior > programer, first time using symfony 1.4 > i dont understand how manage it. image_tag('casual_boots.jpg', array()) ?>,.. -_-! > thankyou Hi, You can use th

[symfony-users] Re: How to use the admin filter on the frontend

2010-09-25 Thread Tristan
Of course, i'll test that ASAP ! On 24 sep, 18:12, Richtermeister wrote: > Sure, > > in the action: > > public function showCustomers(sfWebRequest $request) > { >   $this -> form = new CustomerFormFilter(); >   if($request -> isMethod("POST")) >   { >     $this -> form -> bind($request -> getPara

Re: [symfony-users] [symfony 1.4] checking permissions in layout.php to make links active or inactive

2010-09-25 Thread Wanderson
You could make use of link_to_if helper with $sf_user->hasPermission() method. Take a look at them. 2010/9/25, Michael Hodges : > Hello all, > > My layout features a main menu of options, each option being a link. > Currently, a user clinks on a link and then permission logic determines if > the u

Re: [symfony-users] Re: Help on sfValidatorDoctrineUnique during UPDATE please

2010-09-25 Thread Michael Hodges
One idea might be to make use of isNew to differentiate between an INSERT and and UPDATE in your logic. I've not tried this, so it's just an idea. If it doesn't work, write a custom validator and pass an option in to control the validation logic. best of luck - Michael [form.php] if ($this-

[symfony-users] [symfony 1.4] checking permissions in layout.php to make links active or inactive

2010-09-25 Thread Michael Hodges
Hello all, My layout features a main menu of options, each option being a link. Currently, a user clinks on a link and then permission logic determines if the user gets the page, or a security warning. I'd like to disable those links for which a user should not even bother clicking, essentially, t

[symfony-users] Re: Is there an easy way to enable display the lookup values instead of IDs in indexSuccess.php in symfony 1.4.6?

2010-09-25 Thread dmitrypol
I create a partial and modified generator.yml to reference it in display: []. However I am struggling with getting the link_to working. How do I get get it to filter action so it will display only the issues assigned it to that employee? When I do: echo link_to( $issue->getEmp(), 'issue/filter',

[symfony-users] Symfony and SQL SERVER2000

2010-09-25 Thread JD
Hola amigo, soy nuevo en este grupo. Tengo un problema conectando con Sql server 2000. Todo lo tengo instalado localmente PHP 5.3, Symfony 1.2, Windows XP, Sql server 2000, symfony funciona perfecto con mysql, pero cuando intento generar las tablas con propel:insert-sql lo está tratando de hacer e

[symfony-users] Re: functional tests and the user

2010-09-25 Thread Nophiq
Hi everyone, I solve that problem in this way: $browser = new sfTestFunctional(new sfBrowser()); $browser-> info('Login')-> // go to login page get('/login.php')-> // log in with('form')->begin()-> click('Signin', array( 'signin' => array( 'username' => sfConfig::ge

[symfony-users] Re: Help on sfValidatorDoctrineUnique during UPDATE please

2010-09-25 Thread trent
Anyone? I cleaned the code up a little: $this->validatorSchema["url"] = new sfValidatorAnd(array( new sfValidatorUrl(), new sfValidatorDoctrineUnique(array('model' => 'TetCase','column'=> array('url')), new sfValidatorDoctrineUnique(array('model' =>'TetCase','column'=> a

[symfony-users] SF2 : Add a property constraint to an object, who depends of another property of this object

2010-09-25 Thread gordonslondon
Hi, i work with Symfony2 PR3. class MyObject { protected $maxLimit = 200; protected $value; public static function loadValidatorMetadata(ClassMetadata $metadata) { $maxLimit = '??'; // as the function is static we cannot do $this->maxLimit $metadata->addPropertyC

[symfony-users] Re: problem with how to manage image size....

2010-09-25 Thread ScherlOMatic
Hi creates the html code for you ( 'nofollow', 'title' => 'here comes the image title')) ?> Any more questions? BR On 25 Sep., 03:36, Nova Lina wrote: > dear all... i have a problem with manage image on my web im junior > programer, first time using symfony 1.4 > i dont understand how man

[symfony-users] automated response

2010-09-25 Thread Saad Tazi | Twist Image
Merci de votre message. Je suis présentement absent du bureau. Je serai de retour le 25 septembre. L'accès à mes courriels pourrait être limité durant cette période. En cas d’urgence, vous pouvez rejoindre notre équipe technique en envoyant un courriel à l’adresse suivante: supp...@twistimage.c

Re: [symfony-users] symfony + Cassandra

2010-09-25 Thread Mercedes Sualog III
I think I have to check first the ODM if it can work already with Cassandra. Yeah, as far as I checked last time it works with Mongo. Thank you for your reply and additional information about XML database ... On Fri, Sep 24, 2010 at 1:37 AM, Eno wrote: > On Thu, 23 Sep 2010, Mercedes Sualog III