How to execute views programmatically in drupal 7?
Views is one of very useful module for drupal, it can be used to setup front page, taxonomy term pages, show views in blocks that are assigned to different regions and many more. We...
Views is one of very useful module for drupal, it can be used to setup front page, taxonomy term pages, show views in blocks that are assigned to different regions and many more. We...
Drupal is very famous cms and providing wide range to functionality to build web applications. While building custom theme for drupal 7 we might have different page templates for different content types, for this...
Set sort order by using Elastica_Query_Bool() In a symfony2 project I implemented elastic search by using FOSElisticaBundle and used Elastica\Query\Bool() to make query and found that there isn’t any method to set sort order...
Validation is a very common task in web applications. Data entered in forms needs to be validated and it needs to be validated before it is written into a database or passed to a...
Get user ip address in symfony2 controller In symfony2 controller we can get user ip address by request service. Following is statement to get ip address.
Contact form 7 is very famous form plugin for wordpress. It allows us to manage and customize multiple forms with simple markup. We can build forms with bootstrap html structure and classes. For bootstrap...
Add custom error message for form fields in symfony2 Symfony is a set of reusable PHP components and PHP framework for web projects. By Symfony websites can be created rapidly, we can create controllers,...
Rest Drupal Admin Password To reset drupal admin password when you lost it and email notification could not work mostly on localhost, then you can reset it with sql-query. For this you have to...
While debugging php code we might need to use print_r() or var_dump() functions with exit or die, as in following code but by following code page will not render completely because exit or die...
Get controller name and method name. CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant toolkit to create full-featured web applications. Following codeigniter...
More