Welcome Guest, Not a member yet? Register   Sign In
Using { } notation in CodeIgniter?
#2

[eluser]opel[/eluser]
if you use colin williams "Template" library or smarty to handle your views I think you can do that. Not used smarty, also may be possible in standard CI, but in colins you put this in your controller:

$data['title'] = 'Title Goes Here';

$this->template->parse_view('your_view', $data);

then in the view

<h1>{title}</h1> or <h1>{$title}</h1>


Messages In This Thread
Using { } notation in CodeIgniter? - by El Forum - 09-23-2008, 04:10 PM
Using { } notation in CodeIgniter? - by El Forum - 09-23-2008, 05:09 PM
Using { } notation in CodeIgniter? - by El Forum - 09-23-2008, 07:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB