Welcome Guest, Not a member yet? Register   Sign In
how to pass data from view to model in codeigniter
#1

[eluser]rangana[/eluser]
Hi guys,

I'm developing a system with codeigniter, in my situation i have to press a link in one user interface and get it's ID and pass it to the model and get the data relevant to that ID and go to the other interface and display the data in the relevant fields, i know how to pass data from model to view, but i don't know how to pass to model from the view, can you guys please help me?

(this is my first CI project)

regards,
Rangana
#2

[eluser]pickupman[/eluser]
Generally speaking you would need to create links like:
Code:
<a href="http://example.com/controller/method/ID">ID</a>

//You can access the ID by using
$id = $this->uri->segment(3);




Theme © iAndrew 2016 - Forum software by © MyBB