Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 7th, 2012  |  syntax: None  |  size: 0.85 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3.  
  4.         public function pitch()
  5.         {
  6.         if ($this->mojo->auth->is_editor())
  7.         {
  8. /*
  9.             // store CI's view path
  10.             $orig_view_path = $this->mojo->load->_ci_view_path;
  11.             $this->mojo->load->_ci_view_path = APPPATH.'third_party/cgfields/views/';
  12.            
  13.             return $this->mojo->load->view('editor', '', TRUE);
  14.            
  15.             // ... then return the view path to the application's original view path
  16.             $this->mojo->load->_ci_view_path = $orig_view_path;  
  17. */
  18.  
  19.             $output = '';
  20.            
  21.             $output = '
  22.                 <script type="text/javascript">
  23.                 $(document).ready(function(){
  24.                     alert("something");
  25.                 });
  26.                 </script>
  27.             ';
  28.            
  29.             return $output;
  30.  
  31.         }
  32.         }