Welcome Guest, Not a member yet? Register   Sign In
admin URL
#3

You can't have assets in the /system or /application dirs. Those aren't public dirs and are protected. Just create a new dir off your root to hold your admin assets. Here is what I typically use

/web_root
--/application
--/system (/system is usually outside of web_root)
--/assets
----/frontend
------/css
------/js
------/img
----/admin
------/css
------/js
------/img

Load a frontend asset:
<link href="<?php echo base_url('assets/frontend/css/bootstrap.css'); ?>" rel="stylesheet">

Load an admin asset:
<link href="<?php echo base_url('assets/admin/css/bootstrap.css'); ?>" rel="stylesheet">
Reply


Messages In This Thread
admin URL - by manoj_ci - 07-03-2015, 12:18 AM
RE: admin URL - by element121 - 07-03-2015, 07:43 AM
RE: admin URL - by CroNiX - 07-03-2015, 09:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB