The response to the 1.0 release has been fantastic. Digg provided some excitement and we had a lot of new visitors to #cakephp on IRC, where there are regularly 70+ users. So, to thank everyone for getting in some good tickets, we have CakePHP 1.1.2.2955
This release fixes some bugs found in the 1.0 release. We also made some changes to the coding standards in this release. The major changes were the removal of newlines for the first bracket of a function definition and the if/else statements, and we changed from spaces to tabs. By changing the style we were able to reduce the overall footprint by a couple of KB.
We will continue to actively fix the bugs on the 1.0 line of code, but ask that everyone be very diligent in how they submit the tickets. Several tickets were marked for 2.0 because that is the default on the new ticket form. Please, go through the form thoroughly when submitting a ticket. We like to fix bugs, but do not like having to sift through missed categorized tickets. If you have a feature or enhancement request those are marked for 2.0. If you are using 1.0 and have a problem mark those for 1.0, but be sure to try the latest nightly before submitting a ticket. If you need some help from the docs team you can submit tickets for the 1.0 Manual.
Thanks to everyone who is using CakePHP. We have a one of the best communities around, which continues to make CakePHP the best rapid development framework for PHP.
Just wanted to make a follow-up comment about something that happened this release. Actually, it's more of a confession: We did it again. We started adding new features.
One thing people kept asking about was how to update multiple page elements in a single Ajax request, and up till now, we had no way of doing that. Not only that, but doing Ajax updates now takes less view code, thanks to AjaxHelper::div( ) and AjaxHelper::divEnd( ). Take a look:
> Just wanted to make a follow-up comment about something that happened > this release. Actually, it's more of a confession: We did it again. > We started adding new features.
> One thing people kept asking about was how to update multiple page > elements in a single Ajax request, and up till now, we had no way of > doing that. Not only that, but doing Ajax updates now takes less view > code, thanks to AjaxHelper::div( ) and AjaxHelper::divEnd( ). Take a > look:
100rk, that's impossible unless you upgraded wrong. The afterRender( ) method is defined in the Helper base class, so as long as your helper extends it properly, you should have no errors.
Mostly just clever output buffering to capture the content between the div tags. I implemented a new callback in Helper, which AjaxHelper uses to write out the content, and then exit. It packages it as a JSON object, with an extra little snippet of code that gets evaluated on the client side. It iterates thru the elements in the object, and assigns the content to the proper div element.
Thanks nate, but this wasn't my problem - it was issue of 2 people on IRC today - they has helpers which aren't extend Helper class and after upgrade to latest release they ends with above errr message.
Nate have you the controller's method going with this ? I'm probably thinking too quickly but I don't get how this method will return 2 things at once.
> Just wanted to make a follow-up comment about something that happened > this release. Actually, it's more of a confession: We did it again. > We started adding new features.
> One thing people kept asking about was how to update multiple page > elements in a single Ajax request, and up till now, we had no way of > doing that. Not only that, but doing Ajax updates now takes less view > code, thanks to AjaxHelper::div( ) and AjaxHelper::divEnd( ). Take a > look:
> Nate > have you the controller's method going with this ? I'm probably thinking > too quickly but I don't > get how this method will return 2 things at once.
> nate wrote: > > Hey y'all,
> > Just wanted to make a follow-up comment about something that happened > > this release. Actually, it's more of a confession: We did it again. > > We started adding new features.
> > One thing people kept asking about was how to update multiple page > > elements in a single Ajax request, and up till now, we had no way of > > doing that. Not only that, but doing Ajax updates now takes less view > > code, thanks to AjaxHelper::div( ) and AjaxHelper::divEnd( ). Take a > > look:
> > <?=$ajax->div('first'); ?> > > This is the first div, it has the current time: > > <?=strtotime('now'); ?> > > <?=$ajax->divEnd('first'); ?>
> > <?=$ajax->div('second'); ?> > > This is the second div, it shows server variables: > > <? pr($_SERVER); ?> > > <?=$ajax->divEnd('second'); ?> > > </code>
Helpers: Some of the helpers defined on the wiki (such as http://wiki.cakephp.org/docs:helpers:custom:pagination) don't extend anything and therefore suffer from this problem. Well they will when you read this message but that's the magic of community spirit ;).
> Nate > have you the controller's method going with this ? I'm probably thinking > too quickly but I don't > get how this method will return 2 things at once.
It's the least I can do; I would prefer to see new features earlier by taking some of the load of you chaps ;). And I learn from reading the q's that are out of my current scope ( I cached some of my views for the first time today).
Cheers,
AD7six Off topic, chipped in for comment: There are some snippets which also use orphan helpers and a number which seem to be either obsolete (integrated or duplicated in Cake now) or need enhancing to be useful. The drawback of an active community seems to be policing their efforts :)
> On 5/26/06, *Olivier percebois-Garve* <perceb...@gmail.com > <mailto:perceb...@gmail.com>> wrote:
> Nate > have you the controller's method going with this ? I'm probably > thinking > too quickly but I don't > get how this method will return 2 things at once.
Hi Marcelo de Moraes Serpa : Thanks first. I have resolved it. I used cake (version 0.10...),when found there was a new cake version,so I decided to update my cake,but I found such codes in controller would not work in the new version 1.1: $userdata=$this->users->read();
I have to use : $userdata=$this->Users->read(); instead; --------------------------------------------------------------------------- --------------------------------------------------- That means the first letter of model's name must be a uppercase when you try to execute a model funciotn(such as find,findall or read) in controller with cake 1.1. --------------------------------------------------------------------------- ---------------------------------------------------