![]() |
Hellp CSS and JS - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Hellp CSS and JS (/showthread.php?tid=66739) |
Hellp CSS and JS - snup - 11-26-2016 On the main page of http://127.0.0.1/ styles work but if I passto other page of http://127.0.0.1/pages/login styles disappear application\views\view_index.php PHP Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> PHP Code: <div class="col1"> application\controllers\Pages.php PHP Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); PHP Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); RE: Hellp CSS and JS - pdthinh - 11-26-2016 Change this line Code: <link href="<?php base_url(); ?>theme/css/style.css" rel="stylesheet" type="text/css" /> Code: <link href="<?php echo base_url(); ?>theme/css/style.css" rel="stylesheet" type="text/css" /> Apply the same to <script ...> tags RE: Hellp CSS and JS - snup - 11-26-2016 (11-26-2016, 05:52 PM)pdthinh Wrote: Change this line thank you to you and successes helped |