Welcome Guest, Not a member yet? Register   Sign In
News tutorial help needed
#2

[eluser]CroNiX[/eluser]
You posted everything except for what the actual problem is. What specifically isn't working?

Your routes shouldn't start with a /. It should just be "controller/method/params"
Code:
$route['news/(:any)'] = '/news/view/$1';  //'news/view/$1'
Probably not the problem but thought I'd mention it.

Also, if your /application dir isn't in its default location (same level as index.php), this line will need to be changed:
Code:
if ( ! file_exists('application/views/pages/'.$page.'.php'))
to something more dynamic like
Code:
if ( ! file_exists(APPPATH . 'views/pages/'.$page.'.php'))


Messages In This Thread
News tutorial help needed - by El Forum - 10-10-2012, 10:19 AM
News tutorial help needed - by El Forum - 10-10-2012, 10:54 AM
News tutorial help needed - by El Forum - 10-10-2012, 11:00 AM
News tutorial help needed - by El Forum - 10-10-2012, 11:11 AM
News tutorial help needed - by El Forum - 10-10-2012, 11:19 AM
News tutorial help needed - by El Forum - 10-10-2012, 11:26 AM
News tutorial help needed - by El Forum - 10-10-2012, 01:37 PM
News tutorial help needed - by El Forum - 10-11-2012, 08:40 AM
News tutorial help needed - by El Forum - 10-11-2012, 08:52 PM
News tutorial help needed - by El Forum - 10-16-2012, 06:40 AM
News tutorial help needed - by El Forum - 02-12-2013, 07:17 AM
News tutorial help needed - by El Forum - 08-06-2014, 06:15 AM
News tutorial help needed - by El Forum - 08-06-2014, 01:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB