"Sounds like the Html helper is not loaded." Yes, I added the HTML helper and now it works!! Thanks!!
@Euromark, I added a contacts table to get the files baked and just changed the index funktion, and its working now! Danke!! On 10 Jun., 13:50, euromark <[email protected]> wrote: > class ContactsController extends AppController { > var $name = 'Contact'; > .. > > that doesnt work!! > > class ContactController + $name = Contact > > On 10 Jun., 13:01, Ryan Schmidt <[email protected]> wrote: > > > > > On Jun 10, 2011, at 03:15, heohni wrote: > > > > I always get the error > > > Undefined property: View::$Html [APP\views\layouts\default.ctp, line > > > 4] > > > Fatal error: Call to a member function charset() on a non-object in D: > > > \SVN-Homes\PHP\trunk\My-project\views\layouts\default.ctp on line 4 > > > > This line 4 is <?php echo $this->Html->charset(); ?> > > > Sounds like the Html helper is not loaded. Since this is being used in the > > default template, you probably want the Html helper loaded always, i.e. in > > your app_controller, possibly along with other helpers you plan to use > > everywhere: > > > class AppController extends Controller { > > var $helpers = array('Html', 'Session', .......); > > > } -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
