Welcome Guest, Not a member yet? Register   Sign In
Can't find table in datamapper 1.8.1 [solved]
#3

[eluser]phranx[/eluser]
[quote author="WanWizard" date="1310225300"]When you don't specify a table name in the

Maybe check what inflector helper you've got installed, and what the result of plural('TEST') is (should be 'tests')?[/quote]

Thank you Wan. You solved the problem.
I didn't use the inflector helper provided with the datamapper. I don't use any inflector at all... or at least not explicitly.

The native CI inflector (version 2.0.2) doesn't strtolower the input string.

Code:
echo plural('TEST'); //outputs TESTs.

However it's strange the different behaviour between the 2 environments.
The code is essentially the same: the differences are limited to the db connection parameters and the base_url.... :-S


Messages In This Thread
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-09-2011, 01:53 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-09-2011, 04:28 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-09-2011, 09:55 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-10-2011, 03:46 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-11-2011, 01:32 AM
Can't find table in datamapper 1.8.1 [solved] - by El Forum - 07-11-2011, 02:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB