|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Strange Bootstrapping ErrorI'm using Doctrine as ORM, so I partially wrote a Doctrine bootstrap resource (I also received a part from someone else). This resources adds the Doctrine autoloader, makes a connection etc. It actually works pretty good. In my application I have a login system, and in my bootstrap I want to check if a user is logged in, and if so, fetch some user data. I need the doctrine user table for that, so I load it with Doctrine::getTable('User'). Of course doctrine has to be loaded for this, so I add $this -> bootstrap('doctrine') to make sure the doctrine resource is loaded. And here starts the problem, when I add that line (bootstrap() call), I get the following exception:
For some reason, it looks like it's dispatching too early, without any controller/action information. Wtf am I doing wrong? To browse the source code (it's not that much yet) go to the google code page: http://code.google.com/p/wmc3/source/browse/ Most important files: application/Bootstrap.php library/WMC/Application/Resource/Doctrine.php Thanks in advance -- Lucas |
|
|
Re: Strange Bootstrapping ErrorMy guess: http://code.google.com/p/wmc3/source/browse/application/Bootstrap.php line 74. The user_style field is null in the user row you're testing.
-- Mon On Tue, Jun 30, 2009 at 3:33 PM, Lucas van Dijk <luckyluke56@...> wrote: Hi, |
|
|
Re: Strange Bootstrapping ErrorThat could indeed be the problem, will check tonight. Thanks :)
-- Lucas On Tue, Jun 30, 2009 at 1:21 PM, Mon Zafra <monzee@...> wrote: My guess: http://code.google.com/p/wmc3/source/browse/application/Bootstrap.php line 74. The user_style field is null in the user row you're testing. |
| Free embeddable forum powered by Nabble | Forum Help |