page does not exist..please help me |
[eluser]Noah_Igniter[/eluser]
hi all, iam new to codeIgniter, i just created a view of multi-tab form job registration, i wrote controller and model, but i failed to get my result, shows an error " page does not exist"... please help me. <!-------my view---------------> <?php $this->load->helper('form'); $attributes = array('name'=>'savedata','id'=>'savedata'); echo form_open('jobs/add_jobs' , $attributes); ?> <p><label>Company Name</label> <input type="text" id="company_name" name="company_name" class="required" value="<?php echo set_value('company_name'); ?>" /> </p> <p><label>Location</label> <input type="text" id="location" name="location" class="required" value="<?php echo set_value('location'); ?>" /> </p> <p><label>Position</label> <input type="text" id="job_title" name="job_title" class="required" value="<?php echo set_value('job_title'); ?>" /> </p> <p><label>Eligibility</label> <input type="text" id="qualification" name="qualification" class="required" value="<?php echo set_value('qualification'); ?>" /> </p> <p> <label>Last Date</label> <input type="text" id="last_date" name="last_date" class="required" value="<?php echo set_value('last_date'); ?>" /> </p> <p class="right-button"> <button class="btn btn-primary" href="#" name="submit" value="submit">Submit</button> </p> <?php echo form_close(); ?> </div> <!------my controller method---> public function add() { $this->load->helper('form'); $this->load->model('Jobs_Model'); $data['headline'] = "Add Jobs"; $data['content'] = 'jobs/add_jobs.php'; if($this->input->post('submit')) { $this->Jobs_Model->process(); } $this->view($data); } <!----my model method---> public function process() { $data=array( 'company_name'=>$this->input->post('company_name'), 'location'=>$this->input->post('location'), 'job_title'=>$this->input->post('job_title'), 'qualification'=>$this->input->post('qualification'), 'last_date'=>$this->date("Y-m-d H:i")); $this->db->insert('jobs',$data); }
[eluser]Sanjay Sarvaiya[/eluser]
use code tags for code. please read userguide http://ellislab.com/codeigniter/user-gui...views.html Code: // u are using for load view just $this->view($data); I didn't find your view function on controller.
[eluser]Noah_Igniter[/eluser]
hi....iam new to CI, please send me simple registration for script, so that i may able to analyse the view, model, controller. thank you
[eluser]Sanjay Sarvaiya[/eluser]
Please read user guide. http://ellislab.com/codeigniter/user-guide good luck
[eluser]Noah_Igniter[/eluser]
thank you....let me know the best tutorial site for CI..
[eluser]jojo777[/eluser]
[quote author="Noah_Igniter" date="1351162919"]hi....iam new to CI, please send me simple registration for script, so that i may able to analyse the view, model, controller. thank you[/quote] Dude!! asking for full code¿?¿ Really? you´ve to practice first, one thing is asking for tips or corrections but asking full code...? Anyway take a look here: Introduction to CI Registration & Login Use Google & youtube, there is lot of stuff out there ready for learning. Good luck!
[eluser]Noah_Igniter[/eluser]
may be...its strange senior coders, but u guys consider junior coders problems..... i will look unto the stuff in google thank you
[eluser]jojo777[/eluser]
Anyway if you have troubles ask, we all started from nothing!! I hope those videos will be helpful for you
|
Welcome Guest, Not a member yet? Register Sign In |