[eluser]Unknown[/eluser]
Hi guys, I'm new to CI and I'm having a problem with using anchors in my viewers. I don't really know how to look for a solution on the web because I don't know what to look for specifically.
Here's what I have so far: I created subfolders in my controllers folder namely:
1. index folder
2. user folder
In the index folder, I created a controller named 'welcome.php', and I set it as the default controller. I have no problems displaying welcome_view.php using the welcome controller. Here's the content of the welcome_view.php
Code:
<body>
<h1>Hello World!</h1>
<ul>
<li><?php echo anchor('user/login', 'Login') ?></li>
<li><?php ?>Register</li>
</ul>
</body>
In my 'user' folder, I created 2 controllers: 'register.php' and 'login.php'. What I wanted to do is when I click the "Login" link in my welcome_view.php, the login_view should be displayed, but with my present code it is not working. Am I using the anchor correctly?
I'm so confused. :/
Thanks for any help.