Welcome Guest, Not a member yet? Register   Sign In
URL LINK HELP!!
#1
Exclamation 

hi guys how can change this link <a href="<?php echo base_url(); ?>index.php?admin/student_add"> to this <a href="<?php echo base_url(); ?>index.php?admin/add_citizen">?? 

Im currently working on an existing codeigniter php file that my client gave me..my main problem is i don't have the knowledge to rearrange the url links he left on the existing project.

I already add a screenshok of my error

PLEASE HELP ME GUYS!! ASAP!!

THANK YOU IN ADVANCE GUYS

Attached Files Thumbnail(s)
   
Reply
#2

Which version of CodeIgniter?
If it's 3.x, make sure you have at least a controller called "Admin.php", with a method (public function) named "add_citizen".
Never use the format from your example within CodeIgniter.
Autoload the url helper.
Apply hyperlinks like this:
PHP Code:
<?php echo anchor('admin/add_citizen');?>
There is no need to include the base_url() or index.php.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB