php - Integrating bootstrap to codeigniter -
i have on $route on ci
$route['(:any)'] = 'main/index/$1'; $route['default_controller'] = 'main/index'; $route['404_override'] = ''; $route['translate_uri_dashes'] = false;
i downloaded bootstrap theme startbootstrap , moved
css, fonts, images, js
into root,where application folder resides
so problem codeigniter reads 'css' controller views can't access css.
i watching tutorial on how integrate it. [integrate bootstrap template code igniter learning basics of mvc frameworks][1]
from point added htaccess on root keep having error,
internal server error
the server encountered internal error or misconfiguration , unable complete request.
please contact server administrator @ admin@example.com inform them of time error occurred, , actions performed before error.
more information error may available in server error log.
internal server error
the server encountered internal error or misconfiguration , unable complete request.
please contact server administrator @ admin@example.com inform them of time error occurred, , actions performed before error.
more information error may available in server error log.
i searching through comment section of video , trying remedy don't wanna drastic since may ruin set or unwanted errors.
or perhaps there other way can access css view?
it's simple.
in root directory, create /assets
folder can put /css', '/js', '/images
folders structure:
|- application |- system |- assets |- bootstrap |- css |- images |- js |- fonts
and in view template can call assets this:
css
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
js scripts
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
and you're done.
btw, said that:
i downloaded bootstrap theme startbootstrap , moved css, fonts, images, js root, application folder resides
i advise better if put on 1 folder, in case /assets
folder, more organized.
Comments
Post a Comment