Codeigniter_Blog_App/application/config/routes.php

24 lines
678 B
PHP
Executable File

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
//routes of the Post Controller
$route['posts/index'] = 'Posts/index';
$route['posts/create'] = 'Posts/create';
$route['posts/update'] = 'Posts/update';
$route['posts/(:any)'] = 'Posts/view/$1';
$route['posts'] = 'Posts/index';
//routes of the Categories Controller
$route['categories'] = 'Categories/index';
$route['categories/create'] = 'Categories/create';
$route['categories/posts/(:any)'] = 'Categories/posts/$1';
//routes of the Pages Controller
$route['default_controller'] = 'Pages/view';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['(:any)'] = 'Pages/view/$1';