CodeIgniter and PHP |
[eluser]Blues Clues[/eluser]
Hello I am exploring CI and PHP and wondering if I could include PHP code snippets in <head> tag of HTML code... for example, I have the following code in <head>. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html > <head> <?php echo base_url(); ?> </head> <body> <ul> <li><a href="#">Home</a></li> </ul> </body> Any thoughts as to why I would not get any results. My page is blank. -BC
[eluser]danmontgomery[/eluser]
You have to load the URL helper in order to use it's functions. http://ellislab.com/codeigniter/user-gui...elper.html
[eluser]Blues Clues[/eluser]
Hi I already have the following stmt in my autoload.php $autoload['helper'] = array('url'); Should I have something more added in addition to this?
[eluser]InsiteFX[/eluser]
Code: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> Also this I hope you are displaying in a view file. InsiteFX |
Welcome Guest, Not a member yet? Register Sign In |