Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Upload extends Private_Controller {
- public $book_file_number = mt_rand(1000000,9999999);
- public function constructor() {
- parent::__constructor();
- $this->load->model('tags');
- }
- public function index() {
- if ($this->ion_auth->logged_in()) {
- $this->load->helper(array('form', 'url'));
- $this->load->library('form_validation');
- $this->form_validation->set_rules('title', 'Title', 'required');
- $this->form_validation->set_rules('tags', 'Tag', 'required');
- $this->form_validation->set_rules('summary', 'Summary', 'required');
- $this->form_validation->set_rules('price', 'Price', 'required');
- $this->load->view('topspace');
- if ($this->form_validation->run())
- {
Add Comment
Please, Sign In to add comment