You need to set the variables in the controller not in the model.
oracle wrote:
> I'm brand new to Cake and I'm going through the quick start tutorials
> from IBM.
> https://www6.software.ibm.com/developerworks/education/os-php-wiki2/section5.html
>
> I seem to be having problems setting variables in the model and
> reading them in the view.
> The tutorial set the variable in the model like this:
>       $this->set('entry_title', $title);
>
> And tries to display the variables in the view like this:
>       <?php echo $entry_title?>
>
>
> But the views complain the entry_title is not set.  This is done
> several times in the tutoral but never seems to work.  I always have
> to find away around it.  I'm wondering if the tutorials might be old
> and this is an old way of setting variables from the model into the
> view?
>
> Best Regards


--~--~---------~--~----~------------~-------~--~----~
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