Quantcast
Channel: A typical Developer Blog » symfony
Browsing latest articles
Browse All 10 View Live

How can i use embed forms or simgle form fields depend on a form field?

You have a register form with a field account_type and two embed forms Company and Address. You want remove the embed Company form, when the field account_type is sfGuardUserProfile::TYPE_PRIVATE...

View Article



How can i remove all generated symfony base files automatically from svn?

call this from your project root for DIR in `find lib -name base -type d`; do svn propset svn:ignore base $DIR/..;svn rm $DIR; done; No related posts.

View Article

Change from Doctrine to Doctrine_Core with one command

To change all your code from Doctrine to Doctrine_Core you can use the following command 1 for fl in `find apps/ config/ lib/ test/ -name *.php`; do mv $fl $fl.old; sed 's/Doctrine::/Doctrine_Core::/g'...

View Article

How can i change the netbeans color schema to look like symfony documentations?

Simple extract this file into your netbeans-6.8/nb6.8 folder: SymfonyColorScheme.zip Thanks Ze Technology for the color schema http://www.ze-technology.com/2009/12/11/netbeans-aux-couleurs-de-symfony/...

View Article

How can i simple mark all required form fields in symfony 1.3?

Create a function in your BaseForm class 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 public static function listenToPostConfigure($event) { $form = $event->getSubject(); $widgetSchema =...

View Article


Image may be NSFW.
Clik here to view.

How can i automatic add ids to my trans-unit nodes in my XML Xliff Tanslation...

When you validate you XML Xliff file you have often the problem that a trans-unit node has no or a already existing id. So i have wrote a small script for that problem. fix_id.php 1 2 3 4 5 6 7 8 9 10...

View Article

How can i use field credentials for symfony admin generator forms?

When you would restrict the display of a field or fieldset group on user credential. you must do the following 1. open the action class and add public function preExecute() { parent::preExecute();...

View Article

Simple script to find missing translation strings

No related posts.

View Article


How can i override user attribute in my functional test?

Some times your code depend on a user attribute, so you want set the user attribute in your functional test. The Problem is that the doCall method in the sfBrowser class rebuild the context and in the...

View Article


Image may be NSFW.
Clik here to view.

What brings us Symfony2 2.2

Symfony2 version 2.2 Beta 2 is out so let us look what will it brings us. Route Use php function variable param default instate of route annotation config /** * @Route("/hi/{name}", name="hi") */...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images