convert to CI |
Hello,
I have this html file that I would like to change to CI so that it function well. Can anyone help me comment what I should change so that the file works well in CI? So far The style does not work. Original: backend-template/index.php PHP Code: <!DOCTYPE html> After transfer to views/index.php I cannot copy the same file exactly as it does not work as good. Please help. Thanks.
" If I looks more intelligence please increase my reputation."
views/index.php
PHP Code: <head> A PHP Error was encountered Severity: Error Message: Call to undefined function base_url() Filename: views/index.php Line Number: 7 Backtrace: Line 7: <link rel="stylesheet/less" type="text/css" href="<?php echo base_url(); ?>themes/less/bootstrap.less"> Why this error still appears?
" If I looks more intelligence please increase my reputation."
http://localhost/backend_CI/applications.../index.php
I build this code and already load the url helper but the view stilll does not seems to load the style sheet I wonder why? views/index.php PHP Code: <!DOCTYPE html> Code: <script src="http://127.0.0.1/backend_CI/themes/js/excanvas.min.js"></script>
" If I looks more intelligence please increase my reputation."
I even already replace with:
views/index.php PHP Code: <head> and I still cannot access the style css. I wonder why?
" If I looks more intelligence please increase my reputation."
I already try typing: http://localhost/backend_CI/index.php/vi...le/add.css
it cannot shows anything. 404 Page Not Found The page you requested was not found. I wonder why?
" If I looks more intelligence please increase my reputation."
MOVE IT OUTSIDE THE APPLICATION MODEL(eg :assets)
then access it <link rel="stylesheet" href="<?php echo base_url(); ?>assets/themes/style/add.css"/>
views/index.php
PHP Code: <div id="sidebar"> Hello, I trying to find a way so that when people click the navigation link it directly carries me to the intended address: <li><a href="<?php echo base_url(); ?>index.php/views/pages.php"><i class="icon icon-tint"></i> <span>Pages</span></a></li> but this is not the case, http://127.0.0.1/backend_CI/index.php/views/pages.php 404 Page Not Found The page you requested was not found. I wonder why?
" If I looks more intelligence please increase my reputation."
PHP Code: <a href="<?php echo base_url(); ?>index.php/views/pages.php"> Read the documentation - Please. http://www.codeigniter.com/user_guide/he...l#site_url
I try clicking the navigation but it does not work out well.
views/index.php PHP Code: <div id="sidebar"> controllers/Welcome.php PHP Code: public function pages()
" If I looks more intelligence please increase my reputation."
|
Welcome Guest, Not a member yet? Register Sign In |