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