How to make CNC router in CodeIgniter?

Hi all. Please explain how it works in NC CI? I have all the documentation read. I have - I want to
As I understand it is necessary to create a separate controller and route news using to do CNC. But without a controller it's not allowed? I have in consequence from the admin creates the page - and to create on each page of a controller - does not work well.
June 14th 19 at 18:11
2 answers
June 14th 19 at 18:13
Solution - I want to

$route['news/(:any)'] = 'main/page/$1';

Controller main:
class Main extends CI_Controller
 function page($the primary objective of BCC)
 /* Here your code. */
understood. thank you. - elenor34 commented on June 14th 19 at 18:16
June 14th 19 at 18:15
We do that for each page based on the title, title_url formed
c roat gets this title_url and looked up in the database
$route['pages/(:any)'] = 'pages/index/$1';
Pages Controller
function index($title_url){
// Search for the page you want

Find more questions by tags CodeIgniter