Specific link from view |
[eluser]Unknown[/eluser]
Quote:Hey guys, So in a nutshell, Im wondering how to pass data from a view to another controller when a link within that view is clicked Hi guys, This is a great forum and thank you all in advance for any input you might have for me. I am creating a professor course tracking website where professors can create a course that they offer (engineering 101 for example) and for each course they can create and view the lectures (lecture 1, introduction for example). I am using doctrine with codeigniter based on a tutorial I saw online and I am stuck at a point where one a professor logs in, they can see the courses that they have created which is called upon by looking at all the courses logged by that professor. Similarly I want to have it so that the professor can click on a course and then is redirected to a page that shows all the lectures that are part of that course. As of now, only the courses are displayed in my view file as shown below. Is there a good way I can do this? I have a table called courses which has course information (courseid, coursename, coursesemester, etc) and a lecture table which has lecture information and relationship with course (lecture name, lectureid, courseid) Code: <br><h3><strong>My Courses:</strong></h3> Click on a course to view lectures <br><br> Thanks again!
[eluser]Jan_1[/eluser]
??? How could I help you? echo anchor('controller/function/value', 'title="pass data to another controller"'); or http://ellislab.com/codeigniter/user-gui...elper.html |
Welcome Guest, Not a member yet? Register Sign In |