Using a Anchor in the Template parser [easy?]

#1
[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' => '&lt;link href="../css/cms.css" rel="stylesheet" type="text/css" /&gt;',
        '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


Messages In This Thread
Using a Anchor in the Template parser [easy?] - by El Forum - 05-20-2010, 08:32 AM
Using a Anchor in the Template parser [easy?] - by El Forum - 05-20-2010, 12:39 PM
Using a Anchor in the Template parser [easy?] - by El Forum - 05-21-2010, 01:17 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.