Welcome Guest, Not a member yet? Register   Sign In
Loading a view when clicking a link
#1

[eluser]selman555[/eluser]
Hi again,

I'm so new to this, I could use your help.

Basically, what i'm trying to do is load a view when a user clicks a link.
In this case, it should be a register key.

Here's my situation, I've got a controller names user which loads a user model User_model in the constructor.
It has an index function which loads the view homepage in my views.

On the homepage is a link named register for which I have a view named view_register.

How do I load the register view when I click on it?

I've tried typing
Code:
<a href="&lt;?php echo base_url().'/views/view_register'?&gt;">Register</a>
I know this doesn't work already, but it's just to give you an idea Smile

Please help...




Theme © iAndrew 2016 - Forum software by © MyBB