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

[eluser]Atown[/eluser]
[quote author="CroNiX" date="1349891690"]You posted everything except for what the actual problem is. What specifically isn't working?[/quote]

Thats what the link was for Sad

its error 500 and nothing operates outside of the index.php page
Quote: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.

fixed Smile
Quote: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'))

could you elaborate why that works? not that i dotn believe that it solves stuff but I'm really trying to learn this stuff and honestly curious

still returning error 500


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