Sorting on aggregate and composite fields using pagination in 1.2
While it may not be a common problem, I ran into this while working on a simple website I was building, and have recieved permission to share it with the community. I had a paginated table, and wanted a SUMed column to support sorting. This is how I did it.
Note that the coming release of CakePHP 1.3, has an awesome feature known as Virtual Fields http://book.cakephp.org/view/1608/Virtual-fields, which are far superior to this little trick.
[Read more] Note that the coming release of CakePHP 1.3, has an awesome feature known as Virtual Fields http://book.cakephp.org/view/1608/Virtual-fields, which are far superior to this little trick.
Component For Google Custom Search
This is a pretty simple component for retrieving your Google Custom Search Engine results and returning them to cake wrapped in an array. This will only work for a Business account which grants you access to the custom search api. Usage is quite simple, add the component to your controller and pass the search term to the run_search() method.
[Read more] Google static maps helper for CakePHP
This is a simple CakePHP helper to create static maps using google API. For more information on the api and how to get an api key consult the Google Static Maps API.
[Read more] Detect mobile devices with the WURFL API
This component uses the WURFL API to detect any mobile or wireless device, and sets custom paths for your views and css, so you can easily create a mobile version of your website.
[Read more] Google PageRank Component
Google Page Ranking is being used less and less, but it's still out there and offered by accessing google's servers. When talking about Search Engine Optimization the main items to look at are Trust and Authority, however Google/Yahoo/Bing are not releasing the ability to get that information yet. Page Rank will just have to do for the time being.
[Read more]
Latest Comments