Annoyed with Zend
Posted: Mon Nov 01, 2010 4:53 pm
I've been trying to get my head round Zend Framework for some time now and I'm finding the massive ambiguity and total lack of answers really frustrating now.
I completed the quickstart tutorial a while ago, and using that as a basis for how things should be done I've tried to start doing my own project, a simple blogging platform. I find learning about the components I need to use to build my application very easy (the documentation works really well and is very simple to follow), but there seems to be no best practice, or no basic standard way of implementing things. This may well be for flexibility, but doesn't help people starting out, and neither does the over simplified and non-real-world examples in the documentation.
My current issue is in regards to Zend_Auth and Zend_ACL. It seems this is a common sticking point, as I have read lots of ways of how to implement this on forums, such as this and, and in tutorials, but all the proposed solutions don't really seem to fit with the layout and bootstrap provided with zf.sh.
Another field for utter confusion is the use of a Zend_Db adapter when using Zend_Auth_Adapter_DbTable. OK the basic idea is obvious, but I was plaining to use Zend_Db_Table_Abstract and mappers for the connection to the database in the same way the quickstart tutorial does, so why do I need to create/re-create a connection to the database (and probably store it in the registry) just for use with authenticating when the rest of my application won't use it. It seems I'm writing redundant code when I really shouldn't have too.
Does anyone know a blog/forum/tutorial that introduces these basic features of a web application and gives an example of how they should be implemented with an up-to-date version of the Zend Framework. I am actually running out of ideas on how to learn the bloody thing!
I completed the quickstart tutorial a while ago, and using that as a basis for how things should be done I've tried to start doing my own project, a simple blogging platform. I find learning about the components I need to use to build my application very easy (the documentation works really well and is very simple to follow), but there seems to be no best practice, or no basic standard way of implementing things. This may well be for flexibility, but doesn't help people starting out, and neither does the over simplified and non-real-world examples in the documentation.
My current issue is in regards to Zend_Auth and Zend_ACL. It seems this is a common sticking point, as I have read lots of ways of how to implement this on forums, such as this and, and in tutorials, but all the proposed solutions don't really seem to fit with the layout and bootstrap provided with zf.sh.
Another field for utter confusion is the use of a Zend_Db adapter when using Zend_Auth_Adapter_DbTable. OK the basic idea is obvious, but I was plaining to use Zend_Db_Table_Abstract and mappers for the connection to the database in the same way the quickstart tutorial does, so why do I need to create/re-create a connection to the database (and probably store it in the registry) just for use with authenticating when the rest of my application won't use it. It seems I'm writing redundant code when I really shouldn't have too.
Does anyone know a blog/forum/tutorial that introduces these basic features of a web application and gives an example of how they should be implemented with an up-to-date version of the Zend Framework. I am actually running out of ideas on how to learn the bloody thing!