define base_url() |
How to define base_url();
I am trying to define base_url ( ) ; Any idea how to? Instead of www.website.com I would like localhost/website/ for example - any clue? Thanks in advance.
" If I looks more intelligence please increase my reputation."
04-07-2016, 01:39 AM
(This post was last modified: 04-07-2016, 01:40 AM by davy_yg. Edit Reason: clear clue )
Okay looks good! Now, I am trying to post this:
views/cms/index.php PHP Code: <link href= "<?php echo base_url();?>style.css" rel="stylesheet" type="text/css" media="screen"> I am trying to make style.css works! I wonder why my style.css does not work.
" If I looks more intelligence please increase my reputation."
(04-07-2016, 01:39 AM)davy_yg Wrote: Okay looks good! Now, I am trying to post this:If your css files are in de folder /css then try: PHP Code: echo base_url().'css/style.css';
echo base_url('css/style.css');
love codeigniter
Learning best practices Rate my post if you found it helpfull |
Welcome Guest, Not a member yet? Register Sign In |