Symfony2 Forms have a rich set of field types and many defined widgets for rendering fields. But still we may need a different representation of a field. For example, in a web application of today we cannot think of a date field without a datepicker.
Symfony2 Forms don’t have any built in widget for rendering a date field with a datepicker. But, Symfony Form’s customization options are so flexible that, actually there is nothing to be worry about. Just in few minutes, using a simple trick, we can turn our date filed into a datepicker. In this post, I am going to share the trick with an example.
It’s a pretty common need to show a help text with a form filed. Where we’ll tell the user about purpose of this field or some validation rules. Although Twitter Bootstrap already have a `help-block` class, Symfony Form component don’t have built-in support for rendering this kind of help block.
In this post I’ll share a simple trick that I use with Symfony Forms to render help block under form fields. Here is a sample output.
Digital World 2014 was a 4 day (4th – 7th June, 2014) ICT event at Bangladesh. It was organized by ICT Division of Telecom and IT Ministry of the country. There was a full series of technical sessions with various interesting topics throughout the event.
This is a common need to convert Doctrine ODM Documents to simpler format. Generally we need to convert them to Array or serialized as JSON. And there are many ways to do it. So, here is my way, my simple Trait that simply works.
By useing this trait you’ll get 2 methods to convert your Document to Array or JSON. It will take care of embedded Documents too.
The version 2.x.x of PHP HTTP extension is totally different from it’s version 1.x. And it’s not backward compatible at all. So, if you have updated the http extension or installed updated version, you may see it’s not working in previously working source.
So, what to do now? The important thing to note is, http://php.net/http has the documentation for older version (version 1.x.x). Here are 2 links that can help you to quickly start the using new version or to fix your old code.
Few days ago, I was searching around for a boilerplate setup for Backbone.Marionette with RequireJS. I was looking for something that is ready for use instantly without any prerequisite or additional dependency. I found few good solutions. But unfortunately none of them seems to be as simple and straightforward as I was expecting.
Lets keep the necessary git commands close at our fingertip for everyday work. This is a list of common git commands. Also tried to add few links which I think essential to know for every git beginner.
This is neither a cheatsheet nor a detailed documentation of git scm. Check useful links at the bottom for details references.