Skip to content

Commit

Permalink
Dev: App support to render global view from plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jul 26, 2016
1 parent 595fe35 commit b39d7c6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions application/controllers/admin/PluginHelper.php
Expand Up @@ -36,6 +36,20 @@ public function sidebody($surveyId, $plugin, $method)

}

/**
* Helper function to let a plugin put content
* into the full page wrapper easily.
*/
public function fullpagewrapper($plugin, $method)
{
$aData = array();

$content = $this->getContent(null, $plugin, $method);

$aData['content'] = $content;
$this->_renderWrappedTemplate(null, array(), $aData);
}

/**
* Get HTML content for side-body
*
Expand Down

2 comments on commit b39d7c6

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you mean about full page wrapper ?

@olleharstedt
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

full-page-wrapper is the class name of the div in full-page view, e.g. plugin management.

Please sign in to comment.