Hello,
I've got a question again about the CMS tutorial
I always get this error: Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in / var/www/web407/html/tests/cms/models/m_template.php on line 11
And now the code:
class template
{
private $ data;
/ / Construtor
function_construct () {}
/ / Function
function load ($ url)
{
include ($ url);
}
/ / Get / Set Data
function setData ($ name, $ value)
{
$ this-> date [$ name] = htmlentities ($ value, ENT_QUOTES);
}
function getData ($ name)
{
if (1sset ($ this-> date [$ name]))
{
return $ this-> data [$ name];
}
else
{
return'';
}
}
}