Skip to content

Simple model to generate cache of URL from database for faster performance.

Notifications You must be signed in to change notification settings

ahsankhatri/Codeigniter-Database-Driven-Route

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Codeigniter-Database-Driven-Route

Simple model to generate cache of URL from database for faster performance.

Insert this code in your application/config/routes.php

# Static Pages Route dynamicly generated
if ( file_exists( APPPATH . 'cache/routes.php' ) )
    include_once APPPATH . 'cache/routes.php';

Trigger method where you're dealing with slug edit e.g Blog Post, Product Edit, Add etc.

$this->load->model('RouteModel');
$this->RouteModel->rewriteURIs();

Any suggestion/query will be appreciated!

Thanks.

About

Simple model to generate cache of URL from database for faster performance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages