Archive for April, 2010
How to use OR in find method – CakePHP
When any developer is working with any web application, he/she will constantly interact with the Select Query. As i am working with CakePHP, i also need to use Select Query often. For Select Query in CakePHP, you can use find method of Model which gives you the data as per conditions given in find method. If you write more than one conditions in conditions array passed in find method than by default it will take OR clause and make a query string with "OR".
Set Meta Title (Page Title) in CakePHP 1.2/1.3
As i mention in my previous posts, CakePHP 1.3 come up with lots of new syntax changes. I was looking for a Meta Title SEO tag for each page. I need to set this Meta Title (Page Title) for each page. You must be aware that Page Title can be set in method which we write in respective controller.
Zip Component in CakePHP-Add files in Zip
Today i have implemented a Zip functionality in CakePHP. If you want to create an archive file consists of some files to give a download Zip file option to user than i might help you to show the steps. Below are the steps how to zip all files and save it to some folder.
Problem in Mozilla Firefox-Easy AJAX Pagination Using JQuery CakePHP
I was working with CakePHP's Easy AJAX Pagination Using JQuery. I found this as a great code for sorting and paging with jQuery in CakePHP. But i faced a problem in Mozilla Firefox. It is not working in Mozilla Firefox. While in IE and Crome it works fine for me.
$html->link with html or image in CakePHP 1.2/1.3
Today i was working with $html->link in CakePHP 1.3. I need to show image and make a link on that image. If i use the $html->link and place the $html->img for link label than it display img html tag text and not showing the image. You can do it by defining escape to false. But syntax for defining 'escape'=>flase in CakePHP 1.3 is different.
Create iframe dynamically using jQuery
Creating iframe using jQuery is not a difficult task. If you want to create iframe dynamically using jQuery, than look at below code.
Set Background image with jQuery
As you know we can set the tag’s attributes using jQuery. It can be dynamically change by using jQuery(calling it at some events.(for e.g. onClick, onFocus etc)). If you are looking to set the background image property in div using jQuery than have a look at below jQuery code.
Get URL variables in javascript/jQuery
Yesterday i was in search of javascript/jQuery code for getting URL variables in javascript. Once i will get the URL variables in javascript file i can make further process with it. I came across below code which saves lots of my time.


I am
Recent Comments