Welcome Guest, Not a member yet? Register   Sign In
How to load a view like theme_view('metadata')
#1

[eluser]Massimiliano Marini[/eluser]
Hi all,

In my theme I want to load the metadata.php file directly in default.php file, like theme_view('metadata').

My complete folder structure is this:
Code:
application/themes/my_theme/views/layouts/default.php

and the metadata.php is here:
Code:
application/themes/my_theme/views/metadata.php

Into default .php between
Code:
<head></head>
tags I want to put something like this
Code:
theme_view('metadata')

I think it must be something like a theme_helper.php, Phil Sturgeon do this in PyroCMS, I've tried to reproduce it but without success.

Any idea or help?


Messages In This Thread
How to load a view like theme_view('metadata') - by El Forum - 11-26-2010, 08:03 PM
How to load a view like theme_view('metadata') - by El Forum - 11-27-2010, 08:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB