Download Plugin (zip)

Stats

Version

0.4.1

Wheels Compatibility

0.9.4

Downloads

185

Last Updated

December 31, 2009

About Plugins

Plugins allow you to extend or modify default Wheels application behavior. To use, you just drop the zip file into your plugins directory and reload your application.

Read Using and Creating Plugins for more information.

Controller Layout

A plugin that allows you to share layouts between controllers

Author

James Gibson

Project Home

http://github.com/liferealized/controllerlayout

Description

This plugin adds a couple of methods so that you can specify a layout one time per Controller. These methods include:

  • layout()
  • layouts()
  • ajaxLayout()
  • ajaxLayouts()

Call any of these methods from within the controllers init(). If you have a complex application this can save you time since you would no longer need to specify the layout for every action and only have one layout per controller. The methods may also be called in a base controllers init() so that the layout can easily be shared across multiple controllers without it being the default.

 

Methods Overridden

Here is a listing of the methods that were overridden.

  • renderPage - render page now checks to see of the layout() method has been called and if so uses that layout instead of the default.

Uninstallation

To uninstall this plugin simply delete the /plugins/ControllerLayout-0.4.zip file.

Credits

This plugin was created by James Gibson.

Change Log

Version 0.4.1—October 3, 2009 Download

  • None recorded.
  • Wheels compatibility: 0.9.4.

Version 0.4—October 3, 2009 Download

  • Initial release.
  • Wheels compatibility: 0.9.4.