Are you using version 1.3? If so, replace all instances of $Html to $this->Html. You'll also need to do the same with $Form (to $this->Form) and $Session/$session (to $this->Session). You'll also need to include the Session helper and component in your app_controller:
var $components = array(...'Session'...); var $helpers = array(...'Session'...); (the dots indicate that you might have other components/helpers in your array already). For more details, check here: http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3 The examples were written for earlier versions and need to be updated - perhaps I'll take that on when a get a bit of time. Jeremy Burns Class Outfit [email protected] http://www.classoutfit.com On 4 Oct 2010, at 20:45, J. Argyl Plath wrote: > Hello. I am following along on the blog tutorial and I can't get my > first view to work. > > I set up the database just fine and created my model and controller. I > copy/pasted in the view code but I get this error: > > Notice (8): Undefined property: View::$Html > Fatal error: Call to a member function link() on a non-object > > I tried dumping out $this and saw that in fact there is no Html > property. > > Suggestions? > > Check out the new CakePHP Questions site http://cakeqs.org and help others > with their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" 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 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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
