Welcome Guest, Not a member yet? Register   Sign In
autocontrollers
#6

[eluser]pickupman[/eluser]
After reading some of the code in PyroCMS and a few other blogs, I have started putting table & field names in the constructor of my model and defining them in a config file. I have a template for my models, add the table/fields in the config, and away I go.

Check out more at this [url="http://shawnmccool.com/2009/08/28/how-to-write-a-better-model-in-code-igniter/"]blog[/url]. You can use it similar to how I need and add more to it to make it more dynamic.


Messages In This Thread
autocontrollers - by El Forum - 06-09-2010, 05:51 AM
autocontrollers - by El Forum - 06-09-2010, 03:53 PM
autocontrollers - by El Forum - 06-10-2010, 05:03 AM
autocontrollers - by El Forum - 06-10-2010, 06:09 AM
autocontrollers - by El Forum - 06-11-2010, 06:12 AM
autocontrollers - by El Forum - 06-11-2010, 08:37 AM
autocontrollers - by El Forum - 06-15-2010, 04:40 AM
autocontrollers - by El Forum - 06-15-2010, 05:31 AM
autocontrollers - by El Forum - 06-16-2010, 01:17 AM
autocontrollers - by El Forum - 06-16-2010, 06:47 AM
autocontrollers - by El Forum - 06-17-2010, 01:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB