dancrew32 / marcel

The PHP 5.4 MVC with Shoes On: ActiveRecord, User/Session, Generators, SCSS, (Twitter Bootstrap) Integration, Workers, Cron Management, Image Manipulation, Caching, Git Management, Mail & Mail Parsing, OCR, Scraping, Selenium, Mustache, Markdown, Phone & Text Messaging, WebSockets, BitTorrent and much more!
5 stars 0 forks source link

controller view override #131

Open dancrew32 opened 11 years ago

dancrew32 commented 11 years ago

$this->set_view('view.name', 'optionalextension?')

class controller_foo {
  function bar() {
  }
}

foo::bar is normally married to view/foo.bar.php, so allow for $this->set_view() to override, similar to $this->skip() skips..

class controller_foo {
  function bar() {
    $this->set_view('foo.lols'); # use view/foo.lols.php or view/foo.lols.mustache etc...
  }
}