Long story short:
I'm building a skeleton application for Zend Framework and I got to the part where I need to setup the api
module. I'm using Zend_Rest_Controller
for this job. All is ok up to this part where I need to get the HTTP headers in a controller to verify the api key.
Ben web üzerinde okudum çeşitli öğreticiler şey bir ön denetleyicisi eklentisi ile yapılır, ama ben api hangi modülü karar, her süresi uygulamanın yapılandırma denetimi (daha daha "tak ve çalıştır" olması gerekir ve böylece) üzerinde.
I $this->getRequest()->getHeaders()
en bariz görünüyordu ne denedim ama en azından benim api anahtarını seding olacak HTTP başlıkları, çalışmak için görünmüyor. Ne reponse
nesnesi.
Herkes bu konuda bana yardımcı olabilir misiniz?