Create a gist now

Instantly share code, notes, and snippets.

@cj /view.php
Created Jan 4, 2011

<?
/**
* 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