Woodsman,

The helper grabs the metadata of the model behind-the-scenes.  This
does not involve access or manipulation of the model data itself, it
simply introspects static data about the model.  Subtle difference.

On Feb 21, 3:05 pm, "the_woodsman" <[EMAIL PROTECTED]> wrote:
> Ad7six,
>
> Thans for your input, but to be honest i'm still confused!
>
> To quote from that link you posted:
>
> "In Cake 1.2, we're transitioning to an approach to form building that
> is more directly model-oriented, and according to the API, the first
> parameter to FormHelper::create() is actually supposed to be the name
> of a model, i.e.:
> <?=$form->create('Task', array('default' => false)); ?>
> However, if you don't provide one, it is assumed to be the default
> model for the controller (in this case TasksController)."
>
> If this doesn't look at the Model in any way, why would you need the
> name of the model?!? Surely there's nothing in $data to use ot guess
> what kind of form field to use...
>
> I'm sure once i switch to 1.2 It'll all become clear!
>
> Woody
>
> On Feb 21, 7:52 am, "AD7six" <[EMAIL PROTECTED]> wrote:
>
> > On Feb 21, 2:02 am, "the_woodsman" <[EMAIL PROTECTED]> wrote:
>
> > > I'm confused about this issue.
> > > I had assumed having Models referenced directly in presentation
> > > related code was bad practice - but isn't that the Cake 1.2 way of
> > > doing form inputs?
>
> > HiWoodsman,
>
> > The methods which are used to generate form inputs have been modified
> > in 1.2 but the MVC concepts certainly havent.
>
> > See here for some examples, note the references to $data, and nothing
> > at all do with instanciating and using a 
> > model.http://cake.insertdesignhere.com/posts/view/15
>
> > HTH,
>
> > AD


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to