Archive

Archive for March, 2010

jChasing menu(Simple JQuery Plugin)

March 26th, 2010

jchasing

Online Demo: http://www.the-di-lab.com/jchasing-demo/demo.html

Source: http://github.com/dilab/jchasing

jChasing menu simulates the effect of mouse pointer being chased by the menu button. It is a high configurable plug-in. With the help of jQuery easing plug-in (http://gsgd.co.uk/sandbox/jquery/easing/), you will have the freedom to use 20 plus animation effects provided. Since jChasing is built with CSS, you can easily change its design as well.

Please post issues here, So I could keep track of it.

admin JQuery

Meeting Room Booking System

March 20th, 2010

mrbs

This is my second item made for CodeCanyon.

It is a very simple booking system, where admin is able to add/modify rooms, and users are able to book rooms, view his booking status as well as canceling bookings.

Client Page: http://www.the-di-lab.com/mrbs-demo/
Define your owner username and password. No email activation is required.

Admin Page: http://www.the-di-lab.com/mrbs-demo/admin

Username: admin
Password: admin

cc_180x100_v2

Please purchase it at  http://codecanyon.net/item/meeting-room-booking-system-/92669 if you like it.

Happy Baking~!

admin 3-Code Canyon Items

CakePHP calendar helper on my GitHub repository

March 16th, 2010

It has been quite sometime since I started using Git.

Since I have built a calendar helper recently, I decided to start my GitHub journey from here.

Check out my Github repository at http://github.com/dilab/.

A brief idea of calendar helper: it is a pure helper, not a component, not a plugin, hence it provides the very basic function of a calendar which is
out putting a calendar interface. I have built it with JQuery UI Theme, particularly the Datepicker theme, so you can customize its UI by downloading theme file from
http://jqueryui.com/themeroller/. One useful function inside the helper is called content_in_cell($day,$month,$year), from its parameters, you can tell it has information
of each cell’s day,month and year, so you will be able to modify its cell content by changing this function.

If you have any issues with calendar helper, do report to me.

admin 1-CakePHP, General Cakephp

CakePHP common errors part 2

March 10th, 2010

While moving my business logic from Controllers to Models in order to form a more standard MVC pattern.

I have encountered a very interesting error.

Suppose I have two models A and B in plugin(P) folder. And A is associated to B with a “hasMany” relationship. So inside model A, I have “$hasMany = array(’B’ ).  And I have a function test() in Model B. so inside Controller B, when I try to call “$this->B->test()”, it tells me the function is undefined, the reason is because CakePHP does not create class B with my file, instead it auto creates a B model class which has no test() function defined. So I spent almost half day to find the reason. And It turns out that the reason is to define a association inside plugin, i need to put this inside model A “$hasMany=array(’P.A’)”.

please note the difference between “$hasMany=array(’A')”  and “$hasMany=array(’P.A’)” .

I wish someday, CakePHP could improve its error message to help Developers.

admin 1-CakePHP, General Cakephp

Role Based Access Control System (CakePHP plug-in)

March 9th, 2010

280701

Recently I have made a RBAC(Role Based Access Control) System using CakePHP, and it is an easy plug-in which you can use to plug into your existing project or you can use to start a brand new project from.

You can check out the demo at
http://www.the-di-lab.com/base-demo/base/base_users/login

Username:admin
Password:admin

cc_180x100_v2

I have put it up at CodeCanyon ( http://codecanyon.net/item/base-role-based-access-controlcakephp-plugin/89182 ). If you want to support me, please purchase it at CodeCanyon.

Happy Baking!

admin 3-Code Canyon Items

Get Adobe Flash playerPlugin by wpburn.com wordpress themes