Category: PHP
Run custom query in symfony 1.2 with propel
Sometimes we require to execute complex query in symfony 1.2 with propel. For this following code can be used. $rowObj will have result of your given query. You can check it via var_dump or...
referer method in symfony.
Referrer method in symfony. This is very useful method and used to redirect back to sender page.
array_reverse in PHP
array_reverse is one of array functions in php. It takes an input array and returns a new array with the order of the elements reversed. It can take two parameters first is array that...
Jquery ajax validation using remote rule.
The remote rule can be used to validate through ajax call. Field value will be passed through data and the return value to the script that is on url. You can specify data type...
Custom queries in wordpress
We can create custom queries to show post for wordpress based websites or blogs. Custom query parameters can pass to wordpress function WP_Query. These queries cover posts, pages, taxonomies, custom fields. Following is the...
Contact us form not sending email: magento
I was working on a magento site and setup contact form but that wasn’t sending email, just posted on contact us page and not showing any message whether email sent or not. I check...
How to display users Gravatar image?
Many users have images on Gravatar. If you want to dispaly user’s Gravatar image then you just need email address of that user and get its MD5 hash then append it to Gravatar URL....
Add CSS attributes to Symfony form label
You can add custom CSS attributes like class or id to Symfony form labels as following. Passing null as the first parameter won’t override the label text.
How to get current page id outside loop in wordpress?
Get page id in wordpress. You can get current page id outside loop in worpress by following statements.
