• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The template parser library

#1
[eluser]Maglok[/eluser]
I am just looking into templating for CI. Mainly for readability of simple things like displaying a title.

I prefer {title} to <?php echo $title; ?>

That said, I do want control over my variables that I find need more complicated display methods that the template parser class does not provide.

The thing is if you call the template parser class like so:

Code:
$this->parser->parse('blog_template', $data);

It will automatically display the view.

Is there any way to have {title} and also normal variables in the same view?


Messages In This Thread
The template parser library - by El Forum - 10-07-2011, 11:38 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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