Welcome Guest, Not a member yet? Register   Sign In
Stuck at the second hurdle
#11

[eluser]CodeIgNewbie[/eluser]
Not got there yet, but I'm wondering if you rerouted in "application/config/routes.php"

And if you did, does it need to be before, between or after the two existing elements?

It's really hazy when it tells you to "add code". Where? Inside a function, outside, which file sometimes!! Annoying.
#12

[eluser]CodeIgNewbie[/eluser]
I'm right there with you. The routing additions are typically ambiguous!! Don't really know where to go from here. Let's keep each other informed, OK?
#13

[eluser]soup7[/eluser]
here are my routes
$route['default_controller'] = "welcome";
$route['404_override'] = '';
$route['news/create'] = 'news/create';
$route['news/(:any)'] = 'news/view/$1';
$route['news'] = 'news';
$route['(:any)'] = 'pages/view/$1';
$route['default_controller'] = 'pages/view';

route just means when it sees what's in the first area, in the ['blah'] it routes to what comes next, pages/view etc...


if it's new/different route, just add it to the bottom will be fine i think

when they say 'add code', look how it changed from (where it was displayed) before, and you'll see where it changed.
#14

[eluser]CodeIgNewbie[/eluser]
Still 404!
#15

[eluser]soup7[/eluser]
at what point in the tutorial are you, where you're getting the 404?
#16

[eluser]CodeIgNewbie[/eluser]
Right at the end of the tute. The individual news articles.
#17

[eluser]soup7[/eluser]
can you view them 'all'? if so, you're having the same problem i am (as i cannot view just one either), just continue on- it will let you, get finished creating articles/etc and let me know...





Theme © iAndrew 2016 - Forum software by © MyBB