anchor |
[eluser]davy_yg[/eluser]
Hello, I am trying to make this anchor link works, how? Currently, the image does not appears (the image should link to views/connection.php). views/homepage.php Code: <!DOCTYPE html> controllers/page.php Code: <?php
[eluser]jairoh_[/eluser]
try changing Code: <?php echo anchor('page/connection', '<img src="<?php echo $connection; ?>">') ?>; Code: <?php echo anchor('page/connection', '<img src="$connection">') ?>;
[eluser]CroNiX[/eluser]
@jairoh_, what would that do exactly? @davy_yg - You can't access anything within /system or /application from the URL. Like, you can't go directly to www.yoursite.com/application/views/some_file.php You should have something like: /application /assets --/css --/js --/images /system index.php Then your $data['connection'] = base_url().'assets/images/connection.jpg'; will work properly |
Welcome Guest, Not a member yet? Register Sign In |