Welcome Guest, Not a member yet? Register   Sign In
Base_url() code not working

I'm creating a CRUD basic application using CodeIgniter. I have created a link for "Insert New User", and within the href of the anchor tag I specified the base url along with the controller name and function name. The code is as below.
PHP Code:
<a href="<?php echo base_url();?>index.php/user/add_form">Insert New User</a

config.php code

$config['base_url']    = 'http://localhost/crudcodeig/';

my controller- users.php

PHP Code:
class Users extends CI_Controller
         public function 

The problem is I can't view the link specified within the a href. Help is appreciated. Thanks!

Messages In This Thread
Base_url() code not working - by Jiji - 12-09-2014, 09:35 PM
RE: Base_url() code not working - by Dracula - 12-10-2014, 10:06 AM
RE: Base_url() code not working - by bw.balazs - 12-10-2014, 04:22 PM

Theme © iAndrew 2016 - Forum software by © MyBB