Welcome Guest, Not a member yet? Register   Sign In
The view file is not working i mean <?=anchor('/home/index','Home');?>
#1

[eluser]Anjith Kumar Garapati[/eluser]
The view file is not working i mean <?=anchor('/home/index','Home');?>



My xampp supports php 5.3..
#2

[eluser]victorche[/eluser]
Is your helper loaded? Like:
Code:
$this->load->helper('url');
#3

[eluser]Anjith Kumar Garapati[/eluser]
yess.........problem is it is not accepting <?= format
#4

[eluser]victorche[/eluser]
So you solved the problem by yourself :]
Anyway you can change this setting in the config, you know ...
#5

[eluser]Anjith Kumar Garapati[/eluser]
how i am blindly using <?php echo instead of <?=....
one more help where i have to keep css files and images how to call from view file.
#6

[eluser]Anjith Kumar Garapati[/eluser]
i have been watching videos in the codeigniter i didnot come across those file placings and calling.
#7

[eluser]victorche[/eluser]
There is a simple html syntax in your view files. So you are adding css files like usual in the <head></head> section of your file:
Code:
<link rel="stylesheet" href="http://yourdomain.com/yourstyle.css" type="text/css" media="screen, projection" charset="utf-8" />
If you are loading the URL helper like this:
Code:
$this->load->helper('url');
Then you can call the css files like this:
Code:
<link rel="stylesheet" href="<?php echo base_url();?>/yourstyle.css" type="text/css" media="screen, projection" charset="utf-8" />




Theme © iAndrew 2016 - Forum software by © MyBB