Fandom

Wikia Developers Wiki

Nirvana/WikiaView

< Nirvana

909pages on
this wiki
Add New Page
Talk0 Share

WikiaView is a simple object that represents the template. Generally you would not need to access it directly but it does have a few features that the developer can use.


Important WikiaView class features

setTemplate(controller, method)

You can use a different template than the default by calling this method.

setTemplatePath()

If you want to explicitly change the path to a template, you can use this but there better be a good reason.

render()

If you want the HTML output from a view you can use the render() function, but the recommended way to do this is the $app->renderView(controller, method, data) helper method which goes through the proper dispatch mechanism.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.