[symfony-users] Re: Fatal Error in actions.class.php

2009-09-25 Thread Kieu Anh Tuan
Hi, What do you have in $current_name and $token in your debugger? To me EmployeeTablePeer::doSelectOne($c) returns null which means it could not find the employee with name = $token. I don't think that it will throw an exception when your $this-getUser()-getAttribute('allnames') return null

[symfony-users] Re: Fatal Error in actions.class.php

2009-09-25 Thread DEEPAK BHATIA
Hi, I have never used the debugger. I think we need to put the below in the tool_dev.php file in web directory ?php define('SF_ROOT_DIR',realpath(dirname(__FILE__).'/..')); define('SF_APP', 'myapp'); define('SF_ENVIRONMENT', 'dev'); define('SF_DEBUG', true);

[symfony-users] Re: Fatal Error in actions.class.php

2009-09-25 Thread Kieu Anh Tuan
I'm not used to sf1.2 yet so that I could not tell you anything about tool_dev.php :). You could try xdebug with eclipse http://devzone.zend.com/article/2930, believe me, after trying this, you should be addicted to the debugger, especially in a language likes php. Otherwise, make, for example an

[symfony-users] Re: Fatal Error in actions.class.php

2009-09-25 Thread DEEPAK BHATIA
Yes, I like getting addicted to good things like xdebug with eclipse. Thanks for the suggestion. Best Regards Deepak Bhatia On Fri, Sep 25, 2009 at 4:05 PM, Kieu Anh Tuan passkey1...@gmail.comwrote: I'm not used to sf1.2 yet so that I could not tell you anything about tool_dev.php :). You

[symfony-users] Re: Fatal Error in actions.class.php

2009-09-25 Thread Eno
On Fri, 25 Sep 2009, DEEPAK BHATIA wrote: Fatal Error: Call to a member function getEmpId() on a non-object in /opt/lampp/htdocs/crb/apps/tool/modules/book/actions/actions.class.php at line 2370 which is the highlighted pink line above. My opinion My point is that session