
Untitled
By: a guest on
May 7th, 2012 | syntax:
None | size: 0.85 KB | hits: 12 | expires: Never
<?php
public function pitch()
{
if ($this->mojo->auth->is_editor())
{
/*
// store CI's view path
$orig_view_path = $this->mojo->load->_ci_view_path;
$this->mojo->load->_ci_view_path = APPPATH.'third_party/cgfields/views/';
return $this->mojo->load->view('editor', '', TRUE);
// ... then return the view path to the application's original view path
$this->mojo->load->_ci_view_path = $orig_view_path;
*/
$output = '';
$output = '
<script type="text/javascript">
$(document).ready(function(){
alert("something");
});
</script>
';
return $output;
}
}