Welcome Guest, Not a member yet? Register   Sign In
Is Scaffolding Suitable or not...........
#1

[eluser]crimsun[/eluser]
Hi All,

I am the new user of codeignitter....and my work experiance is near about 6 Months....And i want to implement the scaffolding concept in my project.There are so many table in my database i use one source code it will display my all tables but while i am going to make any changes like Add,Edit,Delete Then it gives me error

I submit here ny code please check that is it correct? And give me suggestion

In class
if(!$this->uri->segment(3) == '')
{
$this->load->scaffolding($this->uri->segment(3));
}

In index
$result = mysql_list_tables('demo');
while ($row = mysql_fetch_row($result))
{
echo '<a href="'.site_url('class/secretkey').'/'.$row[0].'">'.$row[0].'</a><br />';
}


it display all table properly but while i make any operation on that it gives error

A Database Error Occurred

Error Number: 1146

Table 'demo.edit' doesn't exist

SHOW COLUMNS FROM `edit`

Please suggest me any suggession
Thanks & Regards
Sanju...
#2

[eluser]WanWizard[/eluser]
Scaffolding is deprecated, and removed in CI 2.0. So it's not wise to start using it, it will block your upgrade path.
#3

[eluser]crimsun[/eluser]
Hello Lab Technician

But i am currentlu using CI 1.7.2 So please if you have any solution suggest me....
#4

[eluser]WanWizard[/eluser]
No, I've never used it, and all my projects already run 2.0, so I can't test anything.

If I need direct database access I use PHPMyAdmin, I have never used scaffolding.
#5

[eluser]crimsun[/eluser]
Is anyone suggest me that..... scaffolding is possible and secure or not.....because while i use this for one perticular table it working very nice...but while we use for the more table (the syntax i already provide in this topic)..so it gives me error...
#6

[eluser]nuwanda[/eluser]
Frankly, I think it's wise that CI does not now support scaffolding.

The idea is to have a lightweight framework. Symfony and Yii support scaffolding, in fact it's integral for them.




Theme © iAndrew 2016 - Forum software by © MyBB