Welcome Guest, Not a member yet? Register   Sign In
Simple Page link error
#1

[eluser]Unknown[/eluser]
Hi,
I'm newbie to codeigniter. i just created a home page and it works fine. now i tried to creat about us page. i created a simple page and put in view folder.
and in my controller i created a new function to show up that page. like this

class maincontrollerbysani extends CI_Controller
{
public function index()
{
$this->data["page_title"] = "my title";
$this->data["page_meta_keywords"] = "My Keywords";
$this->load->view('homepage', $this->data);
}

public function aboutus()
{
$this->data["page_title"] = "my about us title";
$this->data["page_meta_keywords"] = "My about us Keywords";
$this->load->view('about_us', $this->data);
}
}

on link i write like this :
< a href="&lt;?php echo base_url();?&gt;maincontrollerbysani/aboutus" >About Us< /a >
but page didn't show up.
It gives following error:
Object not found!

The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.

If you think this is a server error, please contact the webmaster.
Error 404
localhost
12/05/11 16:09:33
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6

please help???





Theme © iAndrew 2016 - Forum software by © MyBB