Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Kohana module for CFS public files.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 classes
Octocat-spinner-32 README.markdown
Octocat-spinner-32 init.php
README.markdown

Publicize for Kohana

Ever wanted to include static files within a Kohana module but don't want to run them through a Controller everytime they are required? Publicize is a tiny module that enables your modules to contain static content such as .css and .js files inside a folder called public.

Requires

  • PHP 5.3 +
  • Kohana 3.2 +

Environment

Dependant on your Kohana::$environment, Publicize will act in different ways.

Development

The file will be found and served via Controller_Publicize. This will affect the performance of your application however it will mean all assets shared by modules will be up to date.

Testing and Staging

The first load of the file will go via Controller_Publicize which will copy the file into DOCROOT, and send the file inline. Thereafter it will be served as a static file.

Production

The route will not be set by default in the production environment for performance reasons.

History

This module started as a gist.

Author

Luke Morton a.k.a. DrPheltRight

and contributors ^__^ Thank you!!

License

Licensed under MIT.

Something went wrong with that request. Please try again.