Welcome Guest, Not a member yet? Register   Sign In
Problem with anchor
#1

[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




Theme © iAndrew 2016 - Forum software by © MyBB