CodeIgniter Forums
Is Scaffolding Suitable or not........... - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Is Scaffolding Suitable or not........... (/showthread.php?tid=36070)



Is Scaffolding Suitable or not........... - El Forum - 11-20-2010

[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...


Is Scaffolding Suitable or not........... - El Forum - 11-20-2010

[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.


Is Scaffolding Suitable or not........... - El Forum - 11-20-2010

[eluser]crimsun[/eluser]
Hello Lab Technician

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


Is Scaffolding Suitable or not........... - El Forum - 11-20-2010

[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.


Is Scaffolding Suitable or not........... - El Forum - 11-23-2010

[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...


Is Scaffolding Suitable or not........... - El Forum - 11-25-2010

[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.