Top menu

Useful Linux Commands

To decompress a file with .tar.gz extension use the command line below :

Phpmyadmin, it is pretty, it is practical but compared to the use of mysql command line via ssh for example on your dedicated server, it has nothing to do when you start a process large databases sql several mega. Indeed to […]

0

How to display image using a specific image style

Below is an example of how to use the “theme_image_style ($ variables)” function to get the HTML code of an image on which a specific style is applied:

This gives us the following result:

       

0

How to use the “getDefaultOptions” to initialize a form field value

In this article I will show you how to create a form by setting a field on a passed value from controller using the getDefaultOptions function :

Now in the controller we can create the form with a default value for the option “userType” that allow us to define the value of the  : […]

0

How to add no mapped field in form

If you wish the field to be ignored when reading or writing to the object, you can set the property_path option to false.

NB : Since 2.1, the mapped option has been added for this use-case.

0