CodeIgniter Forums
Problem with anchor - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problem with anchor (/showthread.php?tid=45610)



Problem with anchor - El Forum - 09-28-2011

[eluser]caperquy[/eluser]
I have a codeigniter application with a controller built as follows :

Code:
class Recherche_photos extends CI_Controller {
function __construct()
{
  parent::__construct();

  $this->load->helper('url');
  $this->load->helper('text');
  $this->load->helper('form');
  $this->load->model('albums_models','',TRUE);

  session_start();
}

function index()
{
  Some code
}

function creation_ld()
{
  Some code
}

function trouver_photos()
{
  Some code
}
On one of my views I have an anchor which shows as :

Code:
<a href="http://127.0.0.1/Albums/index.php/recherche_photos/trouver_photos" class="back">Back to list of persons</a>

When I click onto that link I am sent to the construct function then creation_ld function instead of trouver_photos as expected. Is there a reason for that ?
Many thanks to whoever can give me a clue.

CapErquy