Site Archives

CakePHP 1.2: “Model/field” in formhelper deprecated


As cakebaker states:
The use of “Model/field” in the formhelper has been deprecated in CakePHP 1.2.
In CakePHP 1.1 you would call:

$form->input(’Post/title’);

In CakePHP 1.2 this has to be written like:

$form->input(’Post.title’);

Automatic updating Select boxes with Ajax


Othman Ouahbi has a very nice example on his blog on creating automatic updating select-boxes with Ajax.
If you change the first select-box, it updates the next selectbox accordingly.

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:

e(
$html->link(
$html->image("add.gif"),
array(’action’ => ‘add’),
array(),
null,
false ));

In CakePHP 1.2 you could rewrite this [...]

CakePHP 1.2: redirect method


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

$this->redirect(’controller/action’);
exit();

or

$this->redirect(’controller/action’);
return();

in CakePHP 1.2 this can be shortened to:

$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 [...]

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 [...]

Boxes, Boxes everywhere….


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


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.