I have been fighting with zend framework for quite some time now. The issue is not PHP itself but these myriad of classes and the relationships between them. for example: i started reading this :http://framework.zend.com/manual/en/learning.layout.usage.html Well everything is fine until the author mentioned the following: To initialize Zend_Layout, add the following to your configuration file
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
resources.layout.layout = "layout"
Now the question is why doing it this way?. I feel like i am just copying an pasting without any real explanation. Then he started using :
$this->layout()->content
I am like wow!!! wait a minute where is this layout() method located and i kept chasing these methods and classes until i get dizzy and give up.
I have a feeling that i am approaching it (the zend framework ) the wrong way. can anybody give me an idea on the best way to approach Zend framework? Again it is not really about the PHP, it is more about the relationship between the objects.
I feel that i am delving into a spaghetti of classes PLEASE HELP???