Welcome Guest, Not a member yet? Register   Sign In
¿scaffolding Error?

Hi everybody ,i'm newbie in this forum and also in codeigniter framework, sorry if my ask is stupid, but, to day i create my first page with the last version CodeIgniter_1.5.4, but when access to scaffolding for my table "typeplayer" to url:


The page is ok, but to try add a record to my table, the links create is the same url more index.php/player/scaffolding/add


and throws error: 404 Page Not Found

but I try with http://localhost/soccer/index.php/player...olding/add

I see the form to my table but the error continue with the others actions.

My class here:

class Player extends Controller{

function Player(){
parent :: Controller();

sorry my english, Tnks!,

this double index.php problem happens when you specify your system folder absolutly in your index.php...
the path should be relative: "../this/that/system"

I guess thats the problem...

which means:
modify config.php
and put:
$config['index_page'] = "../";

However my solution (on ubuntu) is the following:

$config['base_url'] = "http://localhost/CodeIgniter/index.php/";
$config['index_page'] = "";

Consider that I have unpacked CodeIgniter in /var/www/CodeIgniter/ so that I have:

These fixes did not work for me. Using the second fix I was able to get to create a new record, however after that I would be redirected to a different page and the record would not be inserted. To fix this I did the following:

$config['base_url'] = "http://www.your-web-site.com/";

$config['index_page'] = "index.php";

this is also in your config.php

That fixed it for me. Hopefully you will meet success as well.

Tnks to everybody! I did my base_url in the config.php and scaffolding is ok.

Theme © iAndrew 2016 - Forum software by © MyBB