Фатальная ошибка:
вызов функции-члена charset () для необъекта в D: \ xampp \ htdocs \ demo \ app \ controllers \ test_controller.php в строке 10
Код контроллера PHP:
<?php
class TestsController extends AppController
{
var $name="Tests";
var $helpers = array('Html');
var $uses=array();
# demo action to check wheather html helper is working or not
function index()
{ echo "111111111";
echo $this->Html->charset();
echo "22222222222";
}
}
?>
Я получаю вышеуказанную ошибку при обращении к URL: http://localhost/demo/tests
Я использую CakePHP 2.0 ALPHA (последняя версия).
Пожалуйста, дайте мне знать, в чем причина.