Welcome Guest, Not a member yet? Register   Sign In
Trouble creating link from view to another view
#1

[eluser]jonyork[/eluser]
Hey guys,

im new at this, and im having some trouble loading up a view from a view (ie: creating a link)

How do we go about this?
#2

[eluser]pickupman[/eluser]
You can load at any time using:
Code:
$this->load->view('view_name'); //no parameters required when passing in a view

If you are wanting to create a link, you can do this:
Code:
$this->load->helper('url'); //you might have this loaded already
echo anchor('another/page,'Another Page');

How about you post the code you are have a problem with, and I could give a better answer.
#3

[eluser]jonyork[/eluser]
Sorry all, I fixed my own problem!

my controller is called membership.php

yet I had the opening as Class index extends Controller {}

changing index to Membership fixed it all.




Theme © iAndrew 2016 - Forum software by © MyBB