как работать с классом xml в cakePHP 1.3?
У меня есть этот код:
function xml_test()
{
echo $this->Xml->header(array('version'=>'1.1'));
echo $this->Xml->serialize($data, array('format' => 'tags');
}
и получаю ошибку:
Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'header' at line 1 [CORE/cake/libs/model/datasources/dbo_source.php, line 684]
Почему, что не так?
Query: header