Do you need access to a service from the ServiceManager in a custom Controller Plugin you&rsquo;re creating? Today&rsquo;s tutorial shows you just how to do it, in a testable and documentable way.
Controller Plugins Articles
During the recent development of the new PHP cloud development casts site, which has been developed with the Zend Framework, so much development time has been saved by using one of the simplest and arguably best features of the framework: Controller Plugins. So today I want to introduce you to them and walk you through a working plugin so you can see just how effective and efficient they can make your development workflow.
Like any profession or trade, you can spend years refining your craft; always looking for the path of least resistance; the path of greatest simplicity, which leads to your goals in the shortest time and the least amount of effort. Especially in software development, you try to simplify and automate as much as you can. Not only do you save unnecessary time, but you get to devote your energies to the most meaningful aspects; the areas that bring greatest productivity and satisfaction to you and your client or employer.
So you&rsquo;re up with the RESTful buzz but you&rsquo;re concerned about security; as you should be! So what do you do? Well, like all good OOP practitioners, you don&rsquo;t reinvent the wheel. As Steve Jobs said, &ldquo;Good artists create, Great artists Steal&rdquo;, or borrow in our case. So let&rsquo;s look at the Amazon S3 model and implement that with our framework of choice - Zend Framework to protect your RESTful services.