Welcome Guest, Not a member yet? Register   Sign In
Default routing setup
#11

Index is always the default method in a controller.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#12

Does the controller file name begin with an uppercase "B", i.e. Blog.php?
Reply
#13

(02-22-2019, 04:09 AM)InsiteFX Wrote: There should be a trailing slash / on the end of the base url in config.php

Route:
PHP Code:
/**
 * controller/method/parameters
 *    blog    index     pram
 */
$route['blog/index/(.+)'] = 'blog/index/$1'

Something like.

A route is not needed if following the CodeIgniter default URL pattern

PHP Code:
http://example.com/index.php/[controller]/[method]/[args] 
Reply
#14

Thank's Dave, I know that it was an old example I had laying around.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB