Welcome Guest, Not a member yet? Register   Sign In
A tutorial question: What am I doing wrong?
#1

[eluser]Unknown[/eluser]
Hi! My first post here Smile

I've just discovered CodeIgniter and a tutorial that can be found here:

http://ie.mirror.twsweb-int.com/codeigni...pages.html

I can't make it work, not even when I copy paste the code from the page into php pages at localhost.

Nothing happens when I do as the author says here, I just see blank pages:

"The controller is now functioning! Point your browser to [your-site-url]index.php/pages/view to see your page."

However, when I replace the routing code with this (as the tutorial says)...

$route['default_controller'] = 'pages';
$route['(:any)'] = 'pages/view/$1';

...I get the following error message:

"A PHP Error was encountered

Severity: Notice

Message: Undefined index: scaffolding_trigger

Filename: libraries/Router.php

Line Number: 164"

As I wrote before, I've copy pasted the code, so there are no typos from my side in it.
Also, I've double checked to ensure that I've placed the files where I'm supposed to.

I don't understand what I've done wrong here.

I'm using Ubuntu 10.04, but I doubt that's the problem.

I've tested with both 1.7.3 and 2.0.3.

Finally, if the tutorial doesn't work, could someone give me links to tutorials that work? I really need to learn CodeIgniter.
#2

[eluser]Unknown[/eluser]
add following line to routes.php

$route['scaffolding_trigger'] = "";




Theme © iAndrew 2016 - Forum software by © MyBB