Welcome Guest, Not a member yet? Register   Sign In
Built in public assets mangment & URLs

(This post was last modified: 11-09-2016, 08:12 AM by prezire.)

Structure it like: {project}/public/images/some-asset.png.

Access it like:
PHP Code:
<?php echo base_url('images/some-asset.png'); ?>

There's soon going to be
PHP Code:
<?php echo img('images/some-asset.png'); ?>
once I push the HTML helper.

Note: File listing is disabled. Accessing only via folder name thru browser will throw an error. So you should access the file directly using its filename.
Long live CodeIgniter!

Messages In This Thread
RE: Built in public assets mangment & URLs - by prezire - 11-07-2016, 04:06 AM

Theme © iAndrew 2016 - Forum software by © MyBB