<?php echo \Template::forge()->build('view_file'); ?>--- EDIT - 20.10.2011
ErrorException [ 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 from
final private function __construct() {}
private function __construct() {}
$this->template = Template::forge();
It looks like you're new here. If you want to get involved, click one of these buttons!