[eluser]Dizza[/eluser]
Hey all,
Im having a problem. I think the solution is very easy but it just wont work.
The thing is im using the template parser from codeigniter but i cant use an anchor in the template parser?
Code:
$data = array(
'logo' => '<img src="../images/cms/logo.png" />',
'next' => ' <a href="#"><img src="../images/cms/next.png" /></a>',
'css' => '<link href="../css/cms.css" rel="stylesheet" type="text/css" />',
'content' => echo anchor('cms/addpage', 'Add a page'); // < this is where it goes wrong
$this->parser->parse('admin/page', $data);
}
I just want to echo the link, but it just wont work, what am i doing wrong?
Am i forgetting the "" or something?
thanks