Skip to content

Instantly share code, notes, and snippets.

@cj
Created January 4, 2011 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cj/764207 to your computer and use it in GitHub Desktop.
Save cj/764207 to your computer and use it in GitHub Desktop.
<?
/**
* view_data
*
* Enables you to set data that is persistent in all views
*
* @author CJ Lazell
* @param array $data
* @access public
* @return void
*/
if ( ! function_exists('view_data'))
{
function view_data($data = array())
{
$vi = Ssc::instance();
$vi->_ew->view_data = $data;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment