problem of link [solved problem] |
Hello
After checking if I put the following lineĀ PHP Code: <h2 class="centrage"><?php echo anchor('curriculum','Contactez moi !');?></h2> I have URL following "127.0.0.1/Codeigniter/curriculum" (error 404) instead of "http://127.0.0.1/codeigniter/index.php/h...curriculum" thank you for your councils
If you intend to call some controller method other than index() you must include use "controller/method" like this
PHP Code: <H2 class="centrage"><?php echo anchor('homepage/curriculum', "Contactez moi !"); ?></H2>
It means CI can't find a controller named "Curriculum.php" with a method Index inside it.
Didn't you have a controller named "Homepage" and a method named "curriculum"? Then the link should be: anchor('homepage/curriculum','Contactez moi!'); But this answer has already been given more than once.... Still not working????
I have well one controller "homepage"
"in the art of " MVC but I found a solution not very logical PHP Code: <?php echo anchor ('index.php/homepage/curriculum','essai'); ?> PHP Code: href="<?php echo index_page(); ?> to turn over to my file index that does not function
French citizen (please excuse me for my english )
Having a good knowledge of the PHP but novice with CodeIgniter I use CodeIgniter 3
Thank you for your assistance
French citizen (please excuse me for my english )
Having a good knowledge of the PHP but novice with CodeIgniter I use CodeIgniter 3 |
Welcome Guest, Not a member yet? Register Sign In |