Error on Installation
- Single Page
Posted 07 February 2012 - 07:00 AM
[img]http://www.pixentral.com/pics/1KzO6jB5y81C9vIkPJDQJbu1gIWkC1.png[/img]
Posted 07 February 2012 - 07:05 AM
Posted 07 February 2012 - 07:31 AM
And I get this page when I visit the main.php file. It seems like the installation files are all there & configured.
[img]http://www.pixentral.com/pics/1phBykVxIpeQuOIPoNTwe9aSy9HWe0.png[/img]
Posted 07 February 2012 - 08:02 AM
Please try it from the beginning by downloading by new the codeigniter project and try again to install grocery CRUD in a brand new project.
Posted 07 February 2012 - 08:03 AM
Posted 09 February 2012 - 19:13 PM
The problem is in the main.php code on this page:
http://www.grocerycrud.com/crud/view/create-crud-codeigniter-tutorial
main.php is displayed 3 times.
1) basic setup: welcome ...
2) database setup: look at function __construct():
[color=#000000][b]function[/b][/color] __construct[color=#009900]([/color][color=#009900])[/color]
[color=#009900]{[/color]
parent[color=#339933]::[/color]__construct[color=#009900]([/color][color=#009900])[/color][color=#339933];[/color]
[color=#666666][i]/* Standard Libraries of codeigniter are required */[/i][/color]
[color=#000088]$this[/color][color=#339933]->[/color][color=#004000]load[/color][color=#339933]->[/color][color=#004000]database[/color][color=#009900]([/color][color=#009900])[/color][color=#339933];[/color]
[color=#000088]$this[/color][color=#339933]->[/color][color=#004000]load[/color][color=#339933]->[/color][color=#004000]helper[/color][color=#009900]([/color][color=#0000ff]'url'[/color][color=#009900])[/color][color=#339933];[/color]
[color=#666666][i]/* ------------------ */[/i][/color]
[color=#000088]$this[/color][color=#339933]->[/color][color=#004000]load[/color][color=#339933]->[/color][color=#004000]library[/color][color=#009900]([/color][color=#0000ff]'grocery_crud'[/color][color=#009900])[/color][color=#339933];[/color]
[color=#009900]}[/color]
3) ...go to our controller and add some more stuff. THE LINE:
[color=#000088]$this[/color][color=#339933]->[/color][color=#004000]load[/color][color=#339933]->[/color][color=#004000]library[/color][color=#009900]([/color][color=#0000ff]'grocery_crud'[/color][color=#009900])[/color][color=#339933];[/color]
IS NOT IN THE 3rd VERSION!--and the code won't run w/o the above line added back in.
I got the same error myself.
:-)
regards,
MichaelH