[eluser]Massimiliano Marini[/eluser]
I try to give more information with my code:
Code:
application/themes/my_theme/views/layouts/default.php
The content of
default.php is:
Code:
<!DOCTYPE HTML>
<html>
<head>
<?php echo theme_view('metadata'); ?>
</head>
<body>
<?php echo $template['body']; ?>
</body>
</html>
Code:
application/themes/my_theme/views/metadata.php
The content of
metadata.php is:
Code:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $template['title']; ?></title>
<?php echo css('style.css'); ?>
<?php echo js('http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'); ?>
<?php echo $template['metadata']; ?>
In default.php file I want to write only
theme_view('metadata') and not
$template['partials']['metadata'] because I do not want to write in every controller:
$this->template->set_partial('metadata', 'metadata'), I do not like this.
How do you do this?