CodeIgniter Forums
Datamapper Call to undefined method Error - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Datamapper Call to undefined method Error (/showthread.php?tid=51729)



Datamapper Call to undefined method Error - El Forum - 05-15-2012

[eluser]s1nc4pp[/eluser]
Hi, i installed ci 2.0.3 and download datamapper v1.8.When i go to my page i will error

Fatal error: Call to undefined method CI_DB_mysql_driver::dm_call_method() in C:\wamp\www\data\application\libraries\datamapper.php on line 1024

how can i solve it ?


Datamapper Call to undefined method Error - El Forum - 05-15-2012

[eluser]WanWizard[/eluser]
Have you installed the bootstrap in your index.php file?


Datamapper Call to undefined method Error - El Forum - 05-16-2012

[eluser]s1nc4pp[/eluser]
yea i read to installin user guide and make of all .But i will that error


Datamapper Call to undefined method Error - El Forum - 05-16-2012

[eluser]WanWizard[/eluser]
If you get that error, the bootstrap isn't loaded or isn't loaded properly.

In your case $this->db points to CI's DB class, not to Datamappers.

And which version are you using exactly? Because v1.8 is quite old. I have the latest version (1.8.2.1) running on CI 2.0.2 without problems.


Datamapper Call to undefined method Error - El Forum - 05-16-2012

[eluser]s1nc4pp[/eluser]
I used to datamapper 1.8.2 on http://datamapper.wanwizard.eu/pages/download.html
I download to codeigniter latest version 2.0.3 i try that in my localhost.Maybe the problem lacolhost ?
And how can i load bootstrap my page ?


Datamapper Call to undefined method Error - El Forum - 05-16-2012

[eluser]pbflash[/eluser]
[quote author="s1nc4pp" date="1337165167"]I used to datamapper 1.8.2 on http://datamapper.wanwizard.eu/pages/download.html
I download to codeigniter latest version 2.0.3 i try that in my localhost.Maybe the problem lacolhost ?
And how can i load bootstrap my page ?[/quote]
Bootstrap instructions are step 9 of the installation instructions.

http://datamapper.wanwizard.eu/pages/installation.html