Welcome Guest, Not a member yet? Register   Sign In
problem of link [solved problem]
#11

Try changing RewriteBase to

Code:
RewriteBase /codeigniter/
Reply
#12

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

Reply
#13

(This post was last modified: 11-14-2016, 12:33 PM by dave friend.)

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> 
Reply
#14

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????
Reply
#15

(This post was last modified: 11-14-2016, 02:23 PM by alf78fr.)

I have well one controller "homepage"
"in the art of " MVC
but I found a solution not very logical Confused

PHP Code:
<?php echo anchor ('index.php/homepage/curriculum','essai'); ?>
but if I employ in my file view curriculum.php
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 Confused )
Having a good knowledge of the PHP but novice with CodeIgniter
I use CodeIgniter 3



Reply
#16

Thank you for your assistance
French citizen (please excuse me for my english Confused )
Having a good knowledge of the PHP but novice with CodeIgniter
I use CodeIgniter 3



Reply




Theme © iAndrew 2016 - Forum software by © MyBB