[symfony-users] Fwd: I18N Translation: Looking for best tools

2010-12-23 Thread JoJo
Hello Everyone, Does anyone have ideas ? Thanks and Regards, JoJo -- Forwarded message -- From: JoJo Date: 2010/12/22 Subject: I18N Translation: Looking for best tools To: symfony-users@googlegroups.com Hello guys, I would like to know if anyone use some good translation too

[symfony-users] custom validator with sfValidator

2010-12-23 Thread jimpass
Hi, I'd like to create a custom validator for a sfWidgetFormInputText. This validator have to ensure than the value entered is greater than a value stored in the database. Is it possible ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.co

[symfony-users] How to avoid breaking MVC separation while loading partial from controller.

2010-12-23 Thread deepak
Hi Folks I use symfony 1.4. At some places in my "action.class.php" I have used "getPartial" method when ever there is a need to change the view via ajax. public function executeFastAction() { $returnText = $this->getPartial('myPartial', array('myVrialbles'=> $val)) return $this->renderText(

[symfony-users] Re: Symfony 1.4 + propel15 ondemand hydration

2010-12-23 Thread Thor
if someone should have the same problem in the future, the user ventzy on the symfony forum has found a workaround for the problem: $articles = ArticleQuery::create() ->useArticleI18nQuery() ->filterByCulture('bg') ->endUse() ->withColumn('ArticleI18n.Title', 'TitleBg')

[symfony-users] Re: How to avoid breaking MVC separation while loading partial from controller.

2010-12-23 Thread Florian
Thats the way it should be done IMHO. You just should use the shortcut: return $this->renderPartial('myPartial', array('myVrialbles'=> $val)); You could also use a full view rendering, by returning sfView::SUCCESS; (or wathever else) and then move your presentation in the fastActionSuccess.ph

[symfony-users] Re: custom validator with sfValidator

2010-12-23 Thread bedomon
Yes use a validator callback and put it in the post validator On 23 déc, 09:47, jimpass wrote: > Hi, > I'd like to create a custom validator for a sfWidgetFormInputText. > This validator have to ensure than the value entered is greater than a > value stored in the database. > Is it possible ? --

[symfony-users] displaying collection/s in templates

2010-12-23 Thread introvert
hello, i've just migrated to Symfony framework a few days ago and I'm wondering one thing. which approach would be best to use when you want to display a collection (particularly hierarchical data - categories) inside a template? should I make a helper that would retrieve collection (object/s) f

[symfony-users] Re: Fwd: I18N Translation: Looking for best tools

2010-12-23 Thread simple
Also Can't find any decent tool. On Dec 23, 2:44 pm, JoJo wrote: > Hello Everyone, > > Does anyone have ideas ? > > Thanks and Regards, > > JoJo > > > > > > > > -- Forwarded message -- > From: JoJo > Date: 2010/12/22 > Subject: I18N Translation: Looking for best tools > To: symfo

Re: [symfony-users] [Symfony2] .htaccess for SEO (force non www, remove index.php from url)

2010-12-23 Thread Jordi Boggiano
On Tue, Dec 21, 2010 at 9:56 PM, gordonslondon wrote: > For the first one i have (it's work great but when i go to > www.example.com/mypage it redirects to example.com/): > >   RewriteCond %{HTTP_HOST} ^www\.[a-z-]+\.[a-z]{2,6} [NC] >   RewriteCond %{HTTP_HOST} ([a-z-]+\.[a-z]{2,6})$ [NC] >   Rewr

[symfony-users] Re: [symfony-devs] Easy migration from Symfony 1.x to 2.0

2010-12-23 Thread Federico Torresan
Hi, Is there any updates about this topic? I have to start developing a new web application and I want to use symfony as Php Framework but I need to know if it's better to start with symfony 2.0 or with the current 1.4 release. I'm interested in the performance improvement of the 2.0 version, suppo

Re: [symfony-users] Re: [symfony-devs] Easy migration from Symfony 1.x to 2.0

2010-12-23 Thread Gustavo Adrian
I'm finishing my first serious project with Symfony 2 and I must say that I feel that I made the right choice when I made myself the same question that you're asking. Symfony 2 it's already pretty stable and if you don't mind updating your code from time to time, then you're good to go. I think th

Re: [symfony-users] [Symfony2] .htaccess for SEO (force non www, remove index.php from url)

2010-12-23 Thread gordonslondon
thanks for your response, all works perfectly with: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] # force url with no www RewriteCond %{HTTP_HOST} ^www\.([^.]+\.[^.]+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301] # force url with no

Re: [symfony-users] Re: custom validator with sfValidator

2010-12-23 Thread Ardison Nicolas
Hi, I'm not a symfony expert, but i think that you can do easy what you want, creatin a new file of your own validator in /lib/validator/ For example you can create a file ThisIsMyValidator.class.php That cointains a class that inherit the class of TextValidator (Not sure about that i had used my

[symfony-users] Re: custom validator with sfValidator

2010-12-23 Thread ken
you can simply pass the min number as a form option then pass as "min" option of http://www.symfony-project.org/api/1_4/sfValidatorNumber -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subs

[symfony-users] Re: custom validator with sfValidator

2010-12-23 Thread jimpass
Great thanks for all your responses, In fact i follow the solution of bedomon, i create a sfValidatorCallback in my form like that $this->validatorSchema['MyField'] = new sfValidatorCallback(array('callback' => array($this, 'validateMhq'))); and i add this function : public function validat

Re: [symfony-users] help with symfony chapter 3...data model

2010-12-23 Thread oscar balladares
Of course, feel free to create that directory "web/uploads/jobs/" ;) That should gonna make it. 2010/12/22 Wiynn > in the data model chapter this is explaind but i donot get it "The job > fixture file references two images. You can download them > (http://www.symfony-project.org/get/jobeet/sens

Re: [symfony-users] Admin Generator removes sortable headers

2010-12-23 Thread oscar balladares
Yes, you did something wrong for sure. That happened to me but for a foreign related object column. You should give more info to us, may be we can help you to debug it. 2010/12/22 Gandalf > This is probably a bug in your code somewhere. Works for me. > > On 12/22/10, Scott O'Brien wrote: >

[symfony-users] Time investment. Symfony 1.x VS Symfony 2.x

2010-12-23 Thread oscar balladares
Hi everybody! I have a month (almost 2) studying Symfony 1.4. I would appreciate your comments about if I should improve my sf_1.4 skills or move to sf_2.x (I would start from zero) I have read the jobeet tutorial, Forms in action, Doctrine, a gentle introduction to Symfony 1.4. So I have put a