I used ASP.NET for about a year before disovering PHP, and to me, PHP
was nothing short of salvation.  I found .NET development to be quite
inflexible, and their model of making everything control-centric and
event driven is a lot more trouble than it's worth.

As far as your code above, yes, you're doing quite a bit more work than
you need to.  For one thing, if you're using HtmlHelper to generate
form fields, you can use $this->data in place of
$this->params['form']['data'].

Also, when data is posted back, Cake automatically carries it over to
the form elements on the next page, so you can cut out all your
$dateSelected code.

Also, if the page has not been posted back yet, you can assign data to
all the form fields at once, by doing the following in your controller:

if (empty($this->data)) {
    $this->data = $this->User->read(null, $someUserID);
}


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to