Skip to content

Open Source

Easy BelongsTo Filtering For Pagination

The Bakery, Everything CakePHP - Mon, 08/23/2010 - 16:56
This component makes it easy to filter data by a belongsTo association. Allows you to display pagination results narrowed by the foreignKey used in the association. The foreignKey can persist when creating new records, and makes it easier to navigate around tables.
Categories: Open Source

Simple XML-RPC Services Implementation

The Bakery, Everything CakePHP - Mon, 08/23/2010 - 16:55
Recently I was entrusted with a project which required me to setup a XML-RPC services server on an installation of CakePHP. I could not find an implementation that would suit my needs so I thought about embarking on this adventure on my own. This implementation is beautifully simple and one more example of extending Cake's power. I have tried to enumerate the implementation in a few steps. I hope it will be easy for everyone to follow.
Categories: Open Source

Integrating Facebook Connect

The Bakery, Everything CakePHP - Mon, 08/23/2010 - 15:09
In this Tutorial I will show you how easily you can integrate the new Facebook Connect Open Graph API into your CakePHP Application.
Categories: Open Source

Introducing Croogo CMS

The Bakery, Everything CakePHP - Mon, 08/23/2010 - 15:06
Croogo is a free, open source, content management system powered by CakePHP framework.
Categories: Open Source

UPS & FedEx DataSource

The Bakery, Everything CakePHP - Mon, 08/23/2010 - 10:08
A UPS datasource and a FedEx datasource for retrieving shipping rate estimates.
Categories: Open Source

AggregateCache Behavior

The Bakery, Everything CakePHP - Mon, 08/23/2010 - 09:17
AggregateCache behavior caches the result of aggregate calculations (min, max, avg, sum) in tables that are joined by a hasMany / belongsTo association. I usually think of aggregates as being easy to calculate when needed, though in situations where the aggregate value is needed more often than the underlying data changes it makes sense to cache the calculated value. Caching the result of the aggregate calculation also makes it easier to write queries that filter or sort on the aggregate value. This behavior makes caching the result of aggregate calculations easy. AggregateCache is based on the CounterCache behavior (http://bakery.cakephp.org/articles/view/countercache-or-counter_cache-behavior).
Categories: Open Source

Persian Date Helper

The Bakery, Everything CakePHP - Mon, 08/23/2010 - 09:08
As there is no method for using Persian dates in PHP we had to use some codes to convert the dates. Using this helper you can convert the dates in a view. Use pdate_format() just like date() function in PHP. Note: It seems that some Persian characters are missing in the code below, please download the helper from here: http://hemmat.net/downloads/persian_date_component.zip
Categories: Open Source

Configure Plugin

The Bakery, Everything CakePHP - Sun, 08/22/2010 - 14:57
Override and set new values from an admin interface. Allowing you to distribute a default /app/configs/core.php and then customize it for a specific installation of a site. Updated to work with the newest RC of cake 1.2. Replace your plugins/configs/vendor/import.php with the new one in this article.
Categories: Open Source

Sexy Cake with Krumo: Say Goodbye to print_r()

The Bakery, Everything CakePHP - Sun, 08/22/2010 - 14:45
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 build a Digg or Reddit clone with CakePHP

The Bakery, Everything CakePHP - Sun, 08/22/2010 - 07:05
Bump or dump? That’s the theme behind the newly launched Link Bump (http://www.linkbump.com), where users "bump" the most interesting videos and news to the top and "dump" the trash into oblivion. The website was created with CakePHP and MySQL.
Categories: Open Source

CakePHP 1.2.8 released

The Bakery, Everything CakePHP - Sat, 08/21/2010 - 22:05
The CakePHP development team is happy to announce the release of CakePHP 1.2.8. 1.2.8 is a maintenance release for the 1.2 branch and contains bugfixes and optimizations for features found in 1.2.
Categories: Open Source

Line Wrapping in dev builds

NetBeans for PHP weblog - Fri, 08/20/2010 - 19:04
Line Wrapping was mentioned many times on this blog, so be aware that this feature is now turned on. For more information read this announcement.
Categories: Open Source

Debugging with FirePHP

The Bakery, Everything CakePHP - Fri, 08/20/2010 - 07:22
This is a quick hack to have the debugger use FirePHP for debugging.
Categories: Open Source

AJAX star rating plugin

The Bakery, Everything CakePHP - Thu, 08/19/2010 - 16:43
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

Type Hierarchy View

NetBeans for PHP weblog - Thu, 08/19/2010 - 10:31

Everyone who uses daily builds of our PHP support in NetBeans IDE might noticed couple of new features that were added after 6.9.1. One of them is Type Hierarchy View which is helpful for OO PHP code. 

To show this view use action from editor popup menu: Navigate >  PHP Type Hierarchy.

hierarchy_popup

One can assign shortcut for this action - use the same steps as described here.

Then you will see type hierarchy in window next navigator like this:

type_hierarchy

 Two buttons let you choose one of two views:

  • Subtype hierarchy - displays class and its subclasses or interface and the classes that implement it (on the picture above)
  • Supertype hierarchy - displays classes that are extended and interfaces that are implemented 

 All the issues or enhancements please report in NetBeans Bugzilla

Categories: Open Source

MongoDB ODM 1.0.0BETA1 Released

Doctrine Blog - Wed, 08/18/2010 - 18:32
Today I am happy to tell you we have released the first beta version of the MongoDB Object Document [...]
Categories: Open Source

Component to send SMS/text messages

The Bakery, Everything CakePHP - Sat, 08/14/2010 - 18:25
This is a quick guide demonstrating the use of the PanaceaSms component (written for the Panacea Mobile SMS Gateway / www.panaceamobile.com / free test credits given) which allows you to easily send SMS from your application, as well as receive delivery reports.
Categories: Open Source

MongoDB ODM: Atomic Operator Improvements

Doctrine Blog - Tue, 08/10/2010 - 21:06
Recently we've improved the support for use of atomic operators and how much it takes advantage of t[...]
Categories: Open Source

Optimizing Model loading with LazyModel

The Bakery, Everything CakePHP - Tue, 08/10/2010 - 16:22
If you are running PHP5, this is what you need. This LazyModel optimizes the loading of the models. It limits the number of loaded models to only the ones that are actually used. When using this, you can improve speed and decrease memory usage significantly. You should use LazyModel in every project you build. That said, it is easy to see this as so called ‘premature optimization’ and maybe it is, but adding this to your project will only take like 10 seconds and it will pay off most of the time.
Categories: Open Source

Generate PhpDoc

NetBeans for PHP weblog - Mon, 08/09/2010 - 12:44

Today, I would like to show you how one can generate documentation for his/her PHP project. Fortunately, it is a very simple task in NetBeans. First, validate in IDE options that your PhpDoc installation was recognized and that the PhpDoc script has been found. If not, find it manually:

PhpDoc Options

If everything is OK, then just generate documentation via project's context menu:

Generate PhpDoc

 If it is the first time you invoke this action for the current project, NetBeans asks you where to generate files for this project:

Select a Directory for Documentation

Then, the documentation itself is generated and of course, one can review the whole process in the  Output window:

Output Window

If anytime later the documentation directory needs to be changed (or one wants to change the documentation title), it can be easily done in Project Properties dialog:

PhpDoc Properties of a PHP Project

That's all for today, as always, please test it and report all the issues or enhancements you find in NetBeans Bugzilla (component php, subcomponent PHPDoc). Please notice that if you write a comment here but do not report a bug or enhancement, nothing will probably happen ;)

Categories: Open Source