Got problems on link the page or classes - 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: Got problems on link the page or classes (/showthread.php?tid=9105) |
Got problems on link the page or classes - El Forum - 06-12-2008 [eluser]ebot[/eluser] i am building a blog using CI, and i tried linking the home page to other but everytime i click on an anchor there is also a message that the page i am looking for is not found on the server, and also for my graphics, i can't display the iamge on the view, always got a message of appliaction model, i don't understand, please need help. Thanks Got problems on link the page or classes - El Forum - 06-12-2008 [eluser]xwero[/eluser] can you show the code? Got problems on link the page or classes - El Forum - 06-12-2008 [eluser]ebot[/eluser] to get back to the home page <?php echo anchor('home','Home');?> and same for the other linking the contact , blog and photo gallery. Got problems on link the page or classes - El Forum - 06-12-2008 [eluser]Nikhil Vijayan[/eluser] When using ci always load url helper . so specify it in auto loader ( inside application/config/autoload.php ) inside the head tags of views add this Code: <head> make sure u have entered correct base url in config.php now try . it will work :coolsmile: and also use the following ways when you link to another pages Code: <?= anchor('home','home') ?> or Code: <a href="<?= site_url('home') ?>">home</a> whichever makes sense to you |