Welcome Guest, Not a member yet? Register   Sign In
Multiple database connections in stensi's Datamapper
#5

[eluser]WanWizard[/eluser]
First of all, I would suggest using the latest version of Datamapper (currently v1.8.0). Stensi's version is ancient, and hasn't been maintained for years.

Since v1.6.0 you can control database behaviour using the configuration setting 'db_params'. When specified in the datamapper config file, you can set a default behaviour for all models. You can override this on a per-model basis by defining the class property 'db_params' in your model, and assigning the required value to it. Any value other then "", TRUE or FALSE, will be passed on to $this->load->database() as first parameter.

I suggest you start by going through the manual first, as this is all documented. The manual is included in the download, or online at http://datamapper.wanwizard.eu.


Messages In This Thread
Multiple database connections in stensi's Datamapper - by El Forum - 01-17-2011, 11:53 AM
Multiple database connections in stensi's Datamapper - by El Forum - 01-17-2011, 01:39 PM
Multiple database connections in stensi's Datamapper - by El Forum - 01-17-2011, 04:38 PM
Multiple database connections in stensi's Datamapper - by El Forum - 01-17-2011, 05:24 PM
Multiple database connections in stensi's Datamapper - by El Forum - 01-18-2011, 04:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB