To create an <option value="custom_value"> tag with custom values in cakephp, you just have to assign an associative array to option attribute of select tag like below example.
Continue reading “Automagically assign values of option tag in cakephp” »
Category Archives: php
Automagically assign values of option tag in cakephp
Posted by Bob on Feb 2012
None comments
Php simple form validation
Posted by Bob on Aug 2011
1 comments
This is a very simple validation and retains the data of the form after validation.
Continue reading “Php simple form validation” »
How to customized wordpress login in side bar of your blog
Posted by Bob on Jul 2011
2 comments
Below are the basic steps i did to tweak the wordpress login.
step 1.
I modified the sidebar.php of my theme, copied the login submit form of the original code from wp-login.php. I changed some of the classes of few of the elements so that the original style will not be affected. This is what the tweak login looks like.
Continue reading “How to customized wordpress login in side bar of your blog” »
Redirect to referer page in cakephp
Posted by Bob on Jun 2011
2 comments
Adding related post thumbnail in sidebar on your wordpress blog
Posted by Bob on May 2011
None comments
You have to download and install YARPP plugin first.
Continue reading “Adding related post thumbnail in sidebar on your wordpress blog” »
