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

[eluser]Unknown[/eluser]
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:

http://localhost/soccer/index.php/player/scaffolding

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

http://localhost/soccer/index.php/player...olding/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();
$this->load->scaffolding('typeplayer');
}
}

sorry my english, Tnks!,
#2

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

I guess thats the problem...
#3

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

However my solution (on ubuntu) is the following:
config.php:

$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:
/var/www/CodeIgniter/system/
/var/www/CodeIgniter/index.php
#4

[eluser]Unknown[/eluser]
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.
#5

[eluser]Unknown[/eluser]
Tnks to everybody! I did my base_url in the config.php and scaffolding is ok.




Theme © iAndrew 2016 - Forum software by © MyBB