Skip to content

Implement flexible generation of path #5

@ilatif

Description

@ilatif

Presently for CSS and JavaScript tags, path is generated like <script src='/assets/js/application.js'></script>. This path restrict browsers to fetch resources from root. Many a times during local development most developers don't create virtual-host and prefer to run web-apps under some directory in web-root which creates path like http://localhost/my_web_app. Inserting / before paths makes it difficult for those developers to use this library.

A clean way to achieve abstraction is to use CodeIgniter's built-in site_url method to generate path for assets. This will create correct path in every case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions