pedrorvidal

CONTROLLER upload

Jun 14th, 2011
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2. class Upload extends CI_Controller {
  3.     function __construct()
  4.     {
  5.         parent::__construct();
  6.     }
  7.  
  8.     function index()
  9.     {
  10.        
  11.         $this->load->view('upload_form_v');
  12.     }
  13.    
  14.     function lista_enviados() {
  15.        
  16.         //Decode JSON returned by /js/uploadify/upload.php
  17.         $file = $this->input->post('filearray');
  18.         $data['json'] = json_decode($file);
  19.         $this->load->view('lista_enviados_v',$data);
  20.        
  21.     }
  22.    
  23.    
  24.    
  25. }
Advertisement
Add Comment
Please, Sign In to add comment