...

World Wide Web Server 2012-07-04 16:05:17 -07:00
parent 8355f2ce5c
commit d8e01903c5

@ -20,14 +20,14 @@ wrapper.php - wrapper file, in views folder
[/code]
menus/top.php in views folder
<code>
[code]
Here is my top menu | <a href="somewhere">Menulink</a>
</code>
[/code]
menus/top.php in views folder
<code>
[code]
Here is my bottom menu | <a href="somewhereelse">BottomMenulink</a>
</code>
[/code]
You must name the content view, upon the folder/controller/method, so in our example let's say we use action path the default controller, '/'.
@ -36,7 +36,7 @@ You must have a view 'welcome/index.php', or setup in the controller the view yo
In the first case you must have. Basicly, your view can contain everything, even load other templates.
The TTemplate library must be placed in the config/autoload.php, $autoload['libraries'] array.
<code>
[code]
&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* TTemplate
@ -196,5 +196,5 @@ class TTemplate
}
}
</code>
[/code]
Hope this is useful to you, any feedback would appreciated. Emil Dragu<emil.dragu@webwave.ro>.