Using Former functionality with new project - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Using Former functionality with new project (/showthread.php?tid=50631) Pages:
1
2
|
Using Former functionality with new project - El Forum - 04-02-2012 [eluser]xtremer360[/eluser] This was from a former project that I'm not trying to add to my new project and I'm trying to figure out what I should do to still be able to keep its functionality with a combination of my controller, library, and model. Code: <?php Using Former functionality with new project - El Forum - 04-02-2012 [eluser]CroNiX[/eluser] Whats the point of using a framework like CI if you are just going to manually access the database via traditional php/mysql and not use CI's functionality? You don't even use anything CI related at all in any of that code. Using Former functionality with new project - El Forum - 04-02-2012 [eluser]xtremer360[/eluser] It was an old script on a NON CI page. I'm wanting to import the functionality into a CI functionality script. That's what I meant by transfering it to it. Using Former functionality with new project - El Forum - 04-02-2012 [eluser]Mauricio de Abreu Antunes[/eluser] Queries -> Models (don't validate data here, please) Check and manipulate data -> Controllers Display data -> Views Using Former functionality with new project - El Forum - 04-02-2012 [eluser]xtremer360[/eluser] Theres just so much and the amount of if statements Using Former functionality with new project - El Forum - 04-03-2012 [eluser]xtremer360[/eluser] I have 7 different possible queries and all are basically the same except for a few different things at different points. So I'm trying to figure out how I can make one query with all of all this. Using Former functionality with new project - El Forum - 04-03-2012 [eluser]Mauricio de Abreu Antunes[/eluser] Put this query in your model. You can use if statements for build other queries into these methods. Don't worry, it's more simple than your original code. Using Former functionality with new project - El Forum - 04-03-2012 [eluser]xtremer360[/eluser] Put what query in my model I have 7 of them and I trout I shouldn't put f statements fr that in a model. Using Former functionality with new project - El Forum - 04-03-2012 [eluser]xtremer360[/eluser] Any ideas? Using Former functionality with new project - El Forum - 04-04-2012 [eluser]xtremer360[/eluser] *bump* |