<?php
class Controller_Hello extends Controller {
public function action_index() {
echo 'Hello World!';
}
public function action_buddy( $name = 'buddy' ) {
$this->response->body = View::factory( 'hello', array( 'name' => $name, ) );
}
}
blog/fuel/app/classes/view/hello.php
<h1>Hello!</h1> <p>Hey <?php $name; ?>, how's it going?</p>/blog/fuel/app/config/routes.php
<?php return array( '_root_' => 'hello', // The default route );Directory structure
/ -blog --fuel ---app ----classes -----controller ------hello.php -----view ------hello.php ----config -----routes.php --public ---index.phpThe Actual Error
Fuel\Core\FuelException [ Error ]: The requested view could not be found: hello
COREPATH/classes/view.php @ line 389
It looks like you're new here. If you want to get involved, click one of these buttons!