• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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/homepage/curriculum"

thank you for your councils

Reply

#13
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
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.