Dougy Mak's Blog

MY BLOG!

Archive for November, 2011

Zend_Auth returns results and identity

This actually help me realized that my login wasn’t logging in properly to begin with. I needed to check if a person was logged on or not, and I found out you can see if the visitor has an identity and you can even get it with the following commands:

Zend_Auth::getInstance()->getIdentity()

Zend_Auth::getInstance()->hasIdentity()

More information here:
http://framework.zend.com/manual/en/zend.auth.introduction.html

No comments

Show your stack trace

I kept getting the following error:

An error occurred
Application error

And that means nothing to me. I don’t know what is going on, so I found out you can set the following in your .htaccess under your public folder and then you will be able to see the stack trace which gives you a better idea of what is wrong.

SetEnv APPLICATION_ENV “development”

No comments

Completed my first milestone

Taking baby steps towards my goal! I just took my first step and completed the first milestone, taking action.

No comments

I love you DD-WRT

Recently, my one of my tenants has been hogging the internet bandwidth, so I slapped on a p2p filter the tenants MAC address and viola! my internet is fast again!

No comments