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.
   -- Mon


On Tue, Jun 30, 2009 at 3:33 PM, Lucas van Dijk <[email protected]>wrote:

> Hi,
>
> I'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:
> Code: <http://forums.zend.com/viewtopic.php?f=69&t=1293#> Fatal error:
> Uncaught exception 'Zend_View_Exception' with message 'script '.phtml' not
> found in path
> (/var/www/wmc3/application/modules/default/views/layouts/:/var/www/wmc3/application/modules/default/views/layouts/:./views/scripts/)'
> in /usr/share/php5/zend/library/Zend/View/Abstract.php:925 Stack trace:
> #0 /usr/share/php5/zend/library/Zend/View/Abstract.php(828):
> Zend_View_Abstract->_script('.phtml')
> #1 /usr/share/php5/zend/library/Zend/Layout.php(791):
> Zend_View_Abstract->render('.phtml')
> #2
> /usr/share/php5/zend/library/Zend/Layout/Controller/Plugin/Layout.php(142):
> Zend_Layout->render()
> #3 /usr/share/php5/zend/library/Zend/Controller/Plugin/Broker.php(330):
> Zend_Layout_Controller_Plugin_Layout->postDispatch(Object(Zend_Controller_Request_Http))
>
> #4 /usr/share/php5/zend/library/Zend/Controller/Front.php(956):
> Zend_Controller_Plugin_Broker->postDispatch(Object(Zend_Controller_Request_Http))
>
> #5
> /usr/share/php5/zend/library/Zend/Application/Bootstrap/Bootstrap.php(77):
> Zend_Controller_Front->dispatch()
> #6 /usr/share/php5/ in /usr/share/php5/zend/library/Zend/View/Abstract.php
> on line 925
>
>
> 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
>

Reply via email to