URL LINK HELP!! - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: URL LINK HELP!! (/showthread.php?tid=66278) |
URL LINK HELP!! - christianbautista717 - 10-02-2016 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 RE: URL LINK HELP!! - Wouter60 - 10-02-2016 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');?> |