Welcome Guest, Not a member yet? Register   Sign In
CRUD Tutorial
#7

[eluser]bretticus[/eluser]
[quote author="vecima" date="1253172970"]That CRUD video cast on net+ seems like a pretty poor tutorial.

the guy hard codes the update ID and the content it would be updated to, rather than just passing one in and explaining how to select one because it would be "too much work" (what, another 2 or 3 lines of code? you already have a form!!) and uses the URI string in the model to select a record... do it that way and you have to remember to never change the uri to get to that point. why not just pass it in as a variable from the controller method? also why just go ahead and turn on global_xss_filtering? I thought that was a performance hit as opposed to doing it with input->post and escaping your data before DB entry...

has he gone mad, or am I missing something?[/quote]

I think the point was to show a simple CRUD example. Perhaps there should have been a disclaimer saying he wasn't using best practices. On the other hand, where else do you find a screencast example of doing CRUD in CI? Perhaps you could make a better screencast that is more complex and show best practices?


Messages In This Thread
CRUD Tutorial - by El Forum - 09-16-2009, 01:44 PM
CRUD Tutorial - by El Forum - 09-16-2009, 01:51 PM
CRUD Tutorial - by El Forum - 09-16-2009, 02:17 PM
CRUD Tutorial - by El Forum - 09-16-2009, 04:10 PM
CRUD Tutorial - by El Forum - 09-16-2009, 08:36 PM
CRUD Tutorial - by El Forum - 09-20-2009, 08:45 PM
CRUD Tutorial - by El Forum - 09-20-2009, 09:32 PM
CRUD Tutorial - by El Forum - 09-21-2009, 09:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB