but the overload from modules view is as i'm looking right already integrated with themes - or what do you mean?
Also the 2 or 3 column layout.. i think the current implementation of layouts is good enough or what do you mean with it?
---
And to use the template library in the views, you can use this code<?php echo \Template::forge()->build('view_file'); ?>
---
EDIT - 20.10.2011ErrorException [ Error ]: Call to undefined method Fuel\Core\View::forge()
PKGPATH/template/classes/template.php @ line 98
93 $that = new static();
94 $config = \Config::get('template', array());
95 $config = \Arr::merge($config, $custom);
96
97 $that->initialize($config);
98 $that->view = \View::forge();
99
100 static::$_instance = $that;
101 }
102
103 return static::$_instance;
ErrorException [ Error ]: Call to undefined method stdClass::body()
DOCROOT/index.php @ line 47
42$response = Request::factory()->execute()->response();
43
44// This will add the execution time and memory usage to the output.
45// Comment this out if you don't use it.
46$bm = Profiler::app_total();
47$response->body(str_replace(array('{exec_time}', '{mem_usage}'), array(round($bm[0], 4), round($bm[1] / pow(1024, 2), 3)), $response->body()));
48
49$response->send(true);
50
51// Fire off the shutdown event
52Event::shutdown();
Now i don't know whats the problem.. maybe you can help me...
my welcome.php is the following:class Controller_Welcome extends Template {
public function __construct() {
$this->template = Template::forge();
}
/**
* The index action.
*
* @access public
* @return void
*/
public function action_index() {
$this->response->body = $this->template->build('welcome/index');
}
Also i modified the __construct() function in /fuel/packages/template/classes/template.php
fromfinal private function __construct() {}
private function __construct() {}
$this->template = Template::forge();
I have put a working example on my github. It will be easier like this them putting lot's of code here!
https://github.com/stevemo/Fuel-Template-example
p.s. Forgot to mention that the package is intended to work with fuel 1.1 DEV It looks like you're new here. If you want to get involved, click one of these buttons!