Welcome Guest, Not a member yet? Register   Sign In
page does not exist..please help me
#1

[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>

&lt;input type="text" id="company_name" name="company_name" class="required" value="&lt;?php echo set_value('company_name'); ?&gt;" /&gt;

</p>

<p><label>Location</label>

&lt;input type="text" id="location" name="location" class="required" value="&lt;?php echo set_value('location'); ?&gt;" /&gt;
</p>

<p><label>Position</label>

&lt;input type="text" id="job_title" name="job_title" class="required" value="&lt;?php echo set_value('job_title'); ?&gt;" /&gt;
</p>


<p><label>Eligibility</label>

&lt;input type="text" id="qualification" name="qualification" class="required" value="&lt;?php echo set_value('qualification'); ?&gt;" /&gt;
</p>

<p>
<label>Last Date</label>

&lt;input type="text" id="last_date" name="last_date" class="required" value="&lt;?php echo set_value('last_date'); ?&gt;" /&gt;
</p>

<p class="right-button">

<button class="btn btn-primary" href="#" name="submit" value="submit">Submit</button>

</p>

&lt;?php echo form_close(); ?&gt;

</div>
&lt;!------my controller method---&gt;
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);
}
&lt;!----my model method---&gt;
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:iConfused"));
$this->db->insert('jobs',$data);
}
#2

[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.
// for load view files
$this->load->view('view file', $data);
#3

[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
#4

[eluser]Sanjay Sarvaiya[/eluser]
Please read user guide.

http://ellislab.com/codeigniter/user-guide

good luck Smile
#5

[eluser]Noah_Igniter[/eluser]
thank you....let me know the best tutorial site for CI..
#6

[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!
#7

[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
#8

[eluser]jojo777[/eluser]
Anyway if you have troubles ask, we all started from nothing!! I hope those videos will be helpful for you
#9

[eluser]Noah_Igniter[/eluser]
thank you .....




Theme © iAndrew 2016 - Forum software by © MyBB