CodeIgniter Forums

Full Version: Invalid URL display
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

My code

It's show on localhost like this

But It's show on external server (cPanel)

Any suggestion?

El Forum

How do you populate this variable? If you make a var_dump of it previously what it shows?

El Forum

$link is your own variable that you created. There is no way for us to know without you showing more code, like how you created the variable.

El Forum

You can do something like below or use CodeIgniters anchor method.

$data = array();

$data['link']      = '';
$data['link_name'] = 'Click someone';

$this->load->view('your_view', $data);

<a href="&lt;?php echo $link; ?&gt;">&lt;?php echo $link_name; ?&gt;</a>