[eluser]Neocrypter[/eluser]
Hi, glad to see someone else that new to using the framework besides me
, First off my suggestion is if you are not used to MVC Models you should do some reading up on the theory behind them, Which will help answer both your questions I think.
you short tag example is for a template engine which CI dose not have built in there are several libraries available that you can include into your projects quickly to help with this, and a few really good examples on the forums here for that matter just do a search and im sure you will find a great starting point.
the way I am doing titles is im loading seperate veiws one that has the style.css title etc in it then it loads the working data set example
in my controller
Code:
$this->data['title']='Bann User';
$this->data['page']='edit_banned_user_form';
$this->data['query'] = $this->bu->get_entries($this->uri->segment(3));
$this->load->view('template', $this->data);
template.php
Code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php echo $title; ?></title>
<link rel="stylesheet" href="<?php echo base_url();?>css/style.css" type="text/css" media="screen" />
</head>
<body>
<div id="wrapper">
<div id="header">
</div>
<div id="main_content">
<?php //$this->load->view('menu'); ?>
<?php $this->load->view($page); ?>
</div>
<div id="footer">
Copyright 2010. <!-- or create a view and load here -->
</div>
</div>
</body>
</html>
in the example im sending $this->data['page']='edit_banned_user_form'; to the template which it calls that as an additional view to be loaded and integrates it into the template.php like an include essentially
I actually found this method on the forums here
dont remember the author though
there are other ways, so id just look around and find what suits your needs and style.