[symfony-users] Handling match sorting

2009-05-18 Thread Iltar
Basically I want the following sorting for a match: per date (combination of year-month-day) per week per team per match identification number win / loss And maybe some others. A combination of those must be possible: - I want to see all matches lost by the A1 - I want to see all matches at 20

[symfony-users] Re: checking for duplicate entry while validating

2009-02-19 Thread Iltar
=> > 'sfGuardUserProfile', 'column' => array('email')), array("invalid" => > "Such %column% is already exists")) >                 ) >             ) >         ); > > On Feb 18, 11:03 pm, Iltar wrote: > > > How can I add a validation f

[symfony-users] checking for duplicate entry while validating

2009-02-18 Thread Iltar
How can I add a validation for fields that have a unique index? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe

[symfony-users] Re: Could Symfony be easier to use?

2009-02-16 Thread Iltar
Symfony is the best, but lacks features. Yes I can bridge to zend, but I want it all in one framework. I do believe there is some room for improvement within the ORM. There are sooo many queries that are actually not needed yet. You should be able to provide a number of linked objects, THEN a fun

[symfony-users] Re: using i18n outside template

2009-02-16 Thread Iltar
Ah yes ofcourse, I try to place everything in the view, but since my messages are defined in a form class, it's not possible :( This option seems the best method as $i18n will only be local (best memory performance) On Feb 16, 9:22 am, David Herrmann wrote: > Iltar schrieb: > > &

[symfony-users] Re: Multiple File Uploads

2009-02-15 Thread Iltar
As far as i know, you should use: file[] in your html. This creates an array in $_FILES. On Feb 15, 10:55 pm, juro wrote: > Hi, > I am generating a form that has 5 file uploads and a few fields. When > submitted (and valid), it should take the files, resize them and save > them in a folder. > >

[symfony-users] using i18n outside template

2009-02-15 Thread Iltar
When i want a custom message for like a form error: array( 'min_length' => __('Your username cannot contain less then 6 characters.'), 'max_length' => __('Your username cannot contain more than 32 characters.') ) The __() ofcourse doesn't work... How can i insert an english but ma

[symfony-users] displaying errors from setPostValidator

2009-02-11 Thread Iltar
At the forms tutorial I did found something in page two for setting equal validators: $this->validatorSchema->setPostValidator( new sfValidatorSchemaCompare('password', '==', 'passconf'), new sfValidatorSchemaCompare('email', '==', '

[symfony-users] Re: hard redirect for index page

2009-02-10 Thread Iltar
, using > routing.yml you could just map > "/" (the root url) to "site/index". > > On Tue, Feb 10, 2009 at 5:45 PM, Iltar wrote: > > > Whenever I come at mywebsite.com, I want to be redirected to > > mywebsite.com/site/index. I know how with rewrites, b

[symfony-users] Re: Build Two Modules with the same Model

2009-02-10 Thread Iltar
A module in an application? On Feb 10, 7:47 pm, Nabil EL GHALI wrote: > Hi , > > im using symfony 1.1 and i'm searching to build two modules ( ex : > candidates and employees ) with the same Model please any idea to make that > . > > thank's a lot for help . > > Nabil --~--~-~--~~---

[symfony-users] Re: PHP 5.2.4 dependency

2009-02-10 Thread Iltar
If php 5.2.6 wasn't secure, ubuntu wouldn't have it. I recommend changing OS. CentOS is great for uptime, but the packages are way behind... On Feb 10, 4:59 pm, Pablo Godel wrote: > Hi Brendan, > > You should consider downloading and compiling PHP from source. > > CentOS PHP package is so old an

[symfony-users] hard redirect for index page

2009-02-10 Thread Iltar
Whenever I come at mywebsite.com, I want to be redirected to mywebsite.com/site/index. I know how with rewrites, but if it's possible within symfony, I'd rather do that. Is that possible, if so how? --~--~-~--~~~---~--~~ You received this message because you are sub

[symfony-users] Re: don't repeat already executed sql statement during a single HTTP request

2009-02-09 Thread Iltar
Hey, If I understand you correctly, you want to have the id like "3" available in every part of your script? Try setting it as a config value: sfConfig::set('campaign_id', $campaign->getId()); if I recall correctly. This is available everywhere. Else I recommend either bridging to Zend Framework

[symfony-users] Re: un-secure a routing to plugin

2009-02-08 Thread Iltar
ord. > > If you don't already have an sfGuardAuth dir in your modules   > directory, create one and place the config/security.yml in it to   > override the plugin defaults. > > I'm pretty sure that will work. > > On 8 Feb 2009, at 00:24, Iltar wrote: > >

[symfony-users] Re: Pear upgrade to 1.2.4 fails

2009-02-08 Thread Iltar
Same problem here. i tried: ./symfony -V and i got include failes. It was just a couple of bytes though. uninstalling and reinstalling seems to work fine though... pear uninstall symfony/symfony-1.2.3 Somehow he doesn't see symfony installed after this patch when using pear list On Feb 8, 2:30 

[symfony-users] un-secure a routing to plugin

2009-02-07 Thread Iltar
Here is the case: I've got the routing, /account/request-password Routes to sfGuardAuth/password But by default, i have everything on secure, except for the pages that don't need it. But how can i say that i want a page from a plugin to be protected or not? "request-password: is_secure:" off do

[symfony-users] security.yml secure off for routed action

2009-02-04 Thread Iltar van der berg
Here is the case: I've got the routing, /account/request-password Routes to sfGuardAuth/password But by default, i have everything on secure, except for the pages that don't need it. But how can i say that i want a page from a plugin to be protected or not? "request-password: is_secure:" off doe

[symfony-users] sfguard checks credentials before symfony checks if action is valid

2009-02-03 Thread Iltar
Here's my thought, shouldn't symfony check if the action exists _before_ you are prompted to login? Right now my anonymous visitor would see a login for like site.com/i- dont-exist/fake-action while it does not exist. I think google doesn't like that either. Is it something I done wrong, or a de