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

[eluser]WanWizard[/eluser]
I think the 'smartest' thing to to at the moment is to create an extension, put your methods in there. Autoload the extension through the config, and all your models can access the methods.

No need to change both Datamapper and your models, also no need to extend the class.


Messages In This Thread
Extending Datamapper - by El Forum - 08-03-2011, 10:52 AM
Extending Datamapper - by El Forum - 08-03-2011, 11:11 AM
Extending Datamapper - by El Forum - 08-03-2011, 11:26 AM
Extending Datamapper - by El Forum - 08-03-2011, 12:30 PM
Extending Datamapper - by El Forum - 08-03-2011, 10:43 PM
Extending Datamapper - by El Forum - 08-04-2011, 02:29 AM



Theme © iAndrew 2016 - Forum software by © MyBB