Welcome Guest, Not a member yet? Register   Sign In
extend Model class
#4

[eluser]FrankieShakes[/eluser]
[quote author="wiredesignz" date="1210319610"]MY_ is a reserved name in CI used for core extensions, in fact MY_Model would be the base model and will be automatically loaded by CI if it is placed in application/libraries, this is the class where you should place your global Model extensions.

MY_Model extends Model

All_other_models extend MY_Model[/quote]

Hehehe... I totally forgot about the "MY" prefix. As I was writing my response, I was thinking of a quick and easy name for a model. For some reason "My_Model" came to mind, although it wasn't intended to imply the overriding of the default Model class.

1) Base_Model extends Model
2) Custom_Model extends Base_Model


Messages In This Thread
extend Model class - by El Forum - 05-08-2008, 06:55 PM
extend Model class - by El Forum - 05-08-2008, 08:46 PM
extend Model class - by El Forum - 05-08-2008, 08:53 PM
extend Model class - by El Forum - 05-08-2008, 08:59 PM
extend Model class - by El Forum - 05-08-2008, 09:04 PM
extend Model class - by El Forum - 05-08-2008, 09:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB