Skip to content

Open Source

Sorting on aggregate and composite fields using pagination in 1.2

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 16:48
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.
Categories: Open Source

Component For Google Custom Search

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 11:09
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.
Categories: Open Source

Google static maps helper for CakePHP

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 11:09
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.
Categories: Open Source

Detect mobile devices with the WURFL API

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:35
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.
Categories: Open Source

Google PageRank Component

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:34
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.
Categories: Open Source

Sexy Cake with Krumo: Say Goodbye to print_r()

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:33
Debugging nested arrays with print_r() can be wicked tough but Krumo makes this task a little less crack-a-lackin.
Categories: Open Source

How to implament One Time Password for forgot-my-password and account-activation processes

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:32
CakeOTP is a secure, table-less and expirable implementation of One Time Password for CakePHP. It can be used for forgot-my-password and account-activation processes.
Categories: Open Source

Autocomplete multiple fields

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:31
This short tutorial will show how to autocomplete data to multiple fields.
Categories: Open Source

Hostip.info - Accessing GeoIP information using HttpSocket

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:30
This article will cover how to access geoIP information from hostip.info. Hostip.info is a community-based project to geolocate IP addresses, making the database freely available but it needs you to put in your city to make it work.
Categories: Open Source

Check Member / User Online or Offline Status

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:29
The following piece of code will calculate the last visited time of a Member/User and calulate the time difference with current time. And if the Member/User last visited time is greater than 10 minutes then that will be considered OFFLINE otherwise ONLINE.
Categories: Open Source

Helper for Farbtastic (jQuery color picker)

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:28
I needed to drop the Farbtastic color picker ( http://acko.net/dev/farbtastic ) into my Cake project, and while adding it manually was easy enough, I was surprised that nobody had previously come up with a helper for it. So I decided to write my own. You download all of the Farbtastic files and put the folder into your webroot's js folder, include the helper in your model, and off you go!
Categories: Open Source

Use multiple databases in one app based on requested url

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:26
I needed to build an application where there are multiple customers (companies) using the application and each have their own database, but also some common tables in another database. I selected CakePHP for the framework and started to work with it. This is what I came up with.
Categories: Open Source

Introducing Croogo CMS

The Bakery, Everything CakePHP - Fri, 03/12/2010 - 08:25
Croogo is a free, open source, content management system powered by CakePHP framework.
Categories: Open Source

CSS: Goto Declaration

NetBeans for PHP weblog - Thu, 03/11/2010 - 14:14

There is a new feature that allows navigate to CSS class or id selector declaration from CLASS or ID attribute of an HTML tag. When you go over a usage of  a class or id selector with mouse pointer and the CTRL key is hold, then the selector is change to a link. The link navigates to the declaration. 

The picture below displays the navigation from td tag in an HTML file to the CSS file, where the header_top class selector is defined.

When there are more declarations that fit the selector name, than a popup window is displayed, where you can select the file. The red (unrelated) mark means that there is no direct connection between the usage and the declaration.


As you can see the features works in HTML files and PHP as well.

Categories: Open Source

AJAX star rating plugin

The Bakery, Everything CakePHP - Wed, 03/10/2010 - 08:36
In the days of social networks, you often want to give users the possibility to rate things and to show the average rating. The most common user interface implementation is a star rating system. This plugin offers you an easy, customizable way to enable your users to star rate any CakePHP model you want.
Categories: Open Source

Introducing VaM Cart

The Bakery, Everything CakePHP - Wed, 03/10/2010 - 08:35
VaM Cart - Free, Open Source CakePHP Based Shopping Cart. Official Site - http://vamcart.com/ Online Demo - http://vamcart.com/demo/ Admin: http://vamcart.com/demo/admin/ Login: admin Password: password * Easy Installation. * CSS, JS minify and compress. * SEO - Search Engine Optimization. * Unlimited Categories, Products. * CakePHP, MVC, Smarty. * Multi Language, Multi Currency. * Templatable. * Open Source. * Automatic Image Resize. * Product Reviews. * Coupons... Join Us.
Categories: Open Source

Tripeo - Reviews website powered by Cakephp

The Bakery, Everything CakePHP - Wed, 03/10/2010 - 08:33
Tripeo is a community for travellers to share their experiences and reviews for hotels, resorts, and accommodations.
Categories: Open Source

Agavi at ConFoo

Agavi - PHP5 application framework - Tue, 03/09/2010 - 21:33

The beacon of hope that is Agavi is carried to Montréal this week, where the ConFoo Web Tech conference takes place.

David will be giving a talk on Agavi, and although we know that some of you will be there to watch it live, all those who couldn’t make it to Montréal (it’s a lovely city, so consider attending next year) need not despair, as at least the slides, and possibly also a recording of the talk will be posted after the conference.

If you’re there in person, make sure to catch a seat in one of the front rows so you can be first in line after the talk to grab one of the Agavi t-shirts that made the long journey to Canada.

Categories: Open Source

unaneem.com : a community website built on CakePHP with extensive use of AJAX

The Bakery, Everything CakePHP - Tue, 03/09/2010 - 09:34
On April 2007 a friend and I started a project we named "unaneem". The purpose of this project was to develop a community website which helps people to share and organize events.We decided to use only open source technologies. As our core application library we used CakePHP.The project steps over time were : April 2007 to June2007 : Functional studies June 2007 to July 2007 : Templates design July 2007 to September 2007 : Database development September 2007 to October 2008 (now): Application development October 2008 : Production deployment : unaneem goes online ! October 2008 to 2009 (now): Beta version test and debug The application uses CakePHP as its core PHP library, Prototype as its core AJAX library and many open source external PHP and JS libraries : PHP Libraries : PHPThumb PHPBrowscap KCaptcha ... JS Libraries : Scriptaculous SWFUpload Lightbox ... You can see the application current version at http://www.unaneem.com/
Categories: Open Source

New Download/Upload dialog

NetBeans for PHP weblog - Mon, 03/08/2010 - 17:13

Hi, today it will be again a very short blog post about a feature we just added to the development version of NetBeans. Many of you requested this change so we hope that you will like this change:

New Remote Files Selection

The behavior should be as expected, it means that if one checks a directory, all folders and files underneath the directory are checked as well.

However, if anyone of you still prefer the current dialog (a "table"), start NetBeans with -J-Dnb.php.transfer.ui.table=true and leave a comment why do you think it's better, an option could be added for it (probably in Tools > Options > PHP).

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans IssueZilla (component php, subcomponent FTP Support).

Categories: Open Source