Nice writeup of Ajax use in CakePHP


Ahsanul Bari created a nice list of links to articles on the use of Ajax in CakePHP.
Some of the parts covered are:

  • Getting Started
  • AutoComplete
  • Ajax Redirect
  • Ajax Validation
  • Encoding
  • Ajax Uploader

So head over to Ahsan’s Laboratory and distover how to implement some nice ajax stuff in your web-app!

CakePHP 1.2: $html->link with html or image.


In CakePHP 1.1 if you need to display an image or piece of HTML with a link to an action, you need to instruct cake NOT to escape the contents of the "Title" attribute with the last false statement like this:

PHP:
  1. e(
  2. $html->link(
  3.     $html->image("add.gif"),
  4.     array('action' => 'add'),
  5.     array(),
  6.     null,
  7.     false ));

In CakePHP 1.2 you could rewrite this to:

PHP:
  1. e(
  2. $html->link(
  3.     $html->image("add.gif"),
  4.     array('action' => 'add'),
  5.     array('escape' => false)));

CakePHP 1.2: redirect method


Previously (in CakePHP 1.1) it was best to add an exit or return after you redirect method like:

PHP:
  1. $this->redirect('controller/action');
  2. exit();

or

PHP:
  1. $this->redirect('controller/action');
  2. return();

in CakePHP 1.2 this can be shortened to:

PHP:
  1. $this->redirect('controller/action', null, true);

See cakebaker on this too.

I want to be six again


Adult Resignation
To Whom It May Concern:

I am hereby officially tendering my resignation as an adult.

I have decided I would like to accept the responsibilities of a 6 year old again.

I want to go to McDonald's and think that it's a four star restaurant.
I want to sail sticks across a fresh mud puddle and make ripples with rocks.
I want to think M&Ms are better than money, because you can eat them.
I want to play kickball during recess and paint with watercolors in art.
I want to lie under a big Oak tree and run a lemonade stand with my friends on a hot summers day.
I want to return to a time when life was simple.

Small update:


Okay…... the 26th of november 2005 we’ve moved. Since then we were not able to make use of the Internet because of troubles with our Cable-provider @Home. They were unable to update their LDAP database. After a lot of frustrating phonecalls in which they told us to wait just a little more, we decided to switch to DSL. They were able to connect us within 2 weeks….

More updates will follow soon !

Boxes, Boxes everywhere….


a lot of boxes
For the next three weeks the walls will be filled with boxes. Would be nice to skip this part of the move ;o)

Genealogy unfortunately offline!


Unfortunately I had to take the “Westen” genealogy offline, due to a heavy serverload.The information that was sent to me by a couple of people will be entered in the genealogy too.

Hopefully the system will return in a couple of weeks. (Depending of the problem can be fixed).

Cheers,

Max

The moving date is set


Goodbye Deventer
November the 7th we get the keys to our new home. The first days we will be cleaning and redecorating the place.The day of the move is set to November the 26th.

Birth of Deniz Westen


Deniz, Just born
This morning @ 2AM our daughter Deniz is born.

Yay! we bought a house…


We finally made the big step:
We bought a house.

After commuting for about 3 to 6 hours a day, for over 6 years, things start to get better now. We’ve bought a house that’s only 20km. (about 1/2 hour drive) from my work.