i'm trying mix static , dynamic content in codeigniter 3.1 tailored website. i'm using tutorial example given static content:
$route['default_controller'] = 'pages/view'; $route['(:any)'] = 'pages/view/$1';
i'm afraid quite messy purpose, since (:any) generic , don't want use "/static/(:any)"
route.
any suggestions on how achieve solution let me have static , controller named friendly url?
every idea welcome , appreciated.
as question seems difficult understand, i'll try ask once again:
is there way combine static content above code (from codeigniter tutorial) , usual approach http://example.com/controller/index_named_method
dynamic content handling?
can give example?
should change $route['(:any)']
every static webpage's name i.e.: $route['(home|contact|links)']
?
thanks in advance
well, must got answer myself; said in previous post editing, mixing static , dynamic content using index()
method in controller taking advantage of tutorial example can accomplished adding route controllers name this:
$route['(books|flowers|links)'] = '$1';
thanks helped.
Comments
Post a Comment