Warning: Can't synchronize with the repository (Unsupported version control system "svn": "/usr/lib64/python2.5/site-packages/libsvn/_fs.so: undefined symbol: svn_swig_get_application_pool" ). Look in the Trac log for more information.

Ticket #43 (new defect)

Opened 2 years ago

Provide mechanism to override default view

Reported by: james Owned by: james
Priority: minor Milestone:
Component: System Version: Beta
Keywords: Cc:
Blocking: Blocked By:

Description

A render() function, or a way to call output() to override the default (views/controller/action.php) view.

Basically, in an action:

  • If render() (or whatever) is called, display the output of render() immediately.
  • If render() was called by the end of the action, the default Controller::output() method is not called.
  • If render() was not called, fall back to the default method now in place.

May need to make it easier to render the default header/footer templates, eg: render_(header|footer)(). Though render('application/header.php') should work.

Note: See TracTickets for help on using tickets.