Images Library - intercept "/images/" |
[eluser]Innovatics[/eluser]
Hey guys, I'm currently developing an Images Library. I want to resize Images dynamically on calling http://localhost/<b>images</b>/image.jpg I don't want to use a controller, I would like to use a Library by intercepting the "/images" path - simply because I only want to copy this file from project to project. That works fine if I include the library into autoload, but if there is no controller or function, I get 404, without calling the Images constructor. Do have an idea without changing other files? Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Regards, Christian
[eluser]Ian Jones[/eluser]
Have you investigated using routes? You can intercept any uri call and direct it to a custom controller |
Welcome Guest, Not a member yet? Register Sign In |