Welcome Guest, Not a member yet? Register   Sign In
Conflicting Libraries and Helpers?
#1

[eluser]whobutsb[/eluser]
I have been noticing some weird behavior with using libraries, behaviors and datebases that are not the default.

I'm working on building a Intranet site for my company. I have setup a couple of libraries:
One requests the business units and builds a drop down menu with their names and business unit IDs, I can call it by using
Code:
$this->businessunit->businessunit_dropdown('dropdown_name');
. I have setup helpers for some of the library functions to make calling some of the functions quicker like:
Code:
businessunit_dropdown('dropdown_name');


I also have a library that turns a users username into their full displayname. I can use something like this to get the displayname
Code:
displayname(username());

The Business Units Library queries a MSSQL Database that is not the default and the Users library calls Active Directory. I have some Memcaching so I don't hit the database all the time.

Today I wanted to use a business unit dropdown on a page. So when I called it I received this error:
Code:
Error Number: 208
SELECT * FROM tblBusinessUnit ORDER BY longBU

Its strange because that query is perfectly acceptable and works on other pages. But it seems like when there are other libraries on the page it fails. I can't profile the page because it never finishes. But if I remove the businessunit_dropdown method and profile, no queries are being run, everything is cached.

I think there might be some sort of conflicts happening.


Messages In This Thread
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 08:14 AM
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 09:02 AM
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 09:08 AM
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 09:16 AM
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 09:22 AM
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 09:35 AM
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 12:41 PM
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 12:58 PM
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 01:08 PM
Conflicting Libraries and Helpers? - by El Forum - 09-01-2009, 01:23 PM
Conflicting Libraries and Helpers? - by El Forum - 09-24-2009, 09:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB