I just tried creating the follwoing:
php oil g api_discover
...and got the folder structure correctly but the views in the controller where wrong. It generated:
class Controller_Api_Discover extends Controller_Template {
public function action_index()
{
$this->template->title = 'Api discover » Index';
$this->template->content = View::factory('api_discover/index');
}
}
Instead of
class Controller_Api_Discover extends Controller_Template {
public function action_index()
{
$this->template->title = 'Api discover » Index';
$this->template->content = View::factory('api/discover/index');
}
}
Is this a bug?
Hey come on guys, you can't just imagine new features then call it a bug when it doesn't work.
I have been doing some work on sub-folder scaffolding so oil g scaffold foo/bar name:string should be fine.