Welcome Guest, Not a member yet? Register   Sign In
Scaffolding problem on local machine
#1

[eluser]Unknown[/eluser]
Hi,
I am new to codeigniter and am trying to follow the blog video. When I get to the part where you load scaffolding and then create entries, I get an error:

Code:
Not Found

The requested URL /CodeIgniter/index.php/blog/scaffolding/add was not found on this server.

when I try to add an entry. I thought scaffolding was supposed to create the add page for me. If not, how can I create it manually? thanks.

By the way, I am using PHP 5.2.6 and MySql 5.0.51b on my local machine.
#2

[eluser]orokusaki[/eluser]
I have a problem with the scaffolding as well:

I'm using all the correct methods (primary key in DB table, with and without scaffolding trigger, DB connection, etc), but when I visit my function with:

Code:
$this->load->scaffolding('topics');

I get no output whatsoever, If I put:

Code:
echo "Hello World"; above

I get Hello World, so my .htaccess and all that is config'd OK.

One thing to note, I'm using INNODB as my DB engine. I don't know if that matters.
#3

[eluser]orokusaki[/eluser]
Wow, been working for an hour at this, and just posted, but just solved my problem.

I'm a complete fool. For anyone else who has the results I mentioned above, be sure to
Only put Scaffolding in your constructor function - for those who use the default PHP4 compatible constructors of codeigniter thats the function that has the same name as the controller.




Theme © iAndrew 2016 - Forum software by © MyBB