Quantcast
Channel: Guide pour le framework Symfony
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

A sfValidator to convert a date from a given pattern to a SQL friendly...

Maybe I’ve just spend a few hours for nothing (if so, please let me be aware of that by commenting ), but I wasn’t able to find a widget and/or a validator to do this bunch of things : Display, in a...

View Article



Image may be NSFW.
Clik here to view.

Access the form values in prevalidator

I’m using a preValidator to validate a price in a form. Say the user enters "22,35", I want to format this string to "22.35". And I need to do this before the actual validator (sfValidatorNumber) of...

View Article

Image may be NSFW.
Clik here to view.

sfValidatorI18nFloat a homemade validator for internationalized input numbers

Getting a number from your model and output it in a i18n/l10n way is really easy thanks to Symfony helpers. But there is no native way to easily input a number and validate its pattern before saving in...

View Article

Image may be NSFW.
Clik here to view.

Improving Autocompletion

Updated on 2nd Oct. 2009 : some code was erased in my_javascript.js snippet because of < and > Ajax autocompletion is really easy with sfWidgetFormJQueryAutocompleter. But the input hidden (which...

View Article

Image may be NSFW.
Clik here to view.

Symfony forms saving process

I always had troubles understanding what really happens in the symfony form process. Even though most of the time everything works great following tutorials, forums, etc.. I needed to understand the...

View Article


Image may be NSFW.
Clik here to view.

Limit user’s access only to some records of your Model

Working on a module, I faced the need to limit user’s access only to some of the Model’s record. Imagine for example that you got a bunch of users on your website. Let’s say users can write reviews on...

View Article

Image may be NSFW.
Clik here to view.

Pre-fill a form in the backend with symfony

Pre-fill a form in Symfony Hi all, I hope I didn’t miss anything evident since my issue really sounds easy at first sight… What is my problem ? I just want to re-use in the backend objects that already...

View Article

Image may be NSFW.
Clik here to view.

Quick Doctrine NestedSet reference

I discovered Doctrine’s NestedSet behavior this week. I wasn’t able to find any resource on the Internet which would summarize how to create schema and fixture all together. So let me share with you...

View Article


Image may be NSFW.
Clik here to view.

Symfony, MAMP, PhpMyAdmin, password changed…

I use MAMP to run all the things needed to develop web sites with symfony (php based framework). Even if I am not 100% satisfied, I did not find any other solution and I must admit it is pretty simple...

View Article


Image may be NSFW.
Clik here to view.

New blog : www.erreur500.com

Vous pouvez désormais nous suivre sur notre nouveau blog : Erreur 500, en français, avec toujours des astuces de dev pour Symfony, javascript, Git, admin système etc. You can now follow us on our new...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images