zend-framework

How to work around Twitter OAuth?

时光总嘲笑我的痴心妄想 提交于 2020-01-04 06:11:37
问题 I've been pushing stuff from our website to our company twitter account automatically. Like some news updates, updates to some sections of our site, etc ... It's all been happening automatically using the Zend Framekwork Twitter service, or other very simple php code that uses a username/password hardcoded. Now, Twitter killed the old fashion authentication. Which is the right thing to do when offering twitter integration to customers (which use OAuth for user-centric stuff), but for internal

Zend Framework library best practices?

北城以北 提交于 2020-01-04 05:45:13
问题 Is it best to have each application with its own copy of the ZF library code, or have the code in one area on the drive and just make sure it's on the include path? Having each app with its own copy seems like the best way to avoid any deployment issues (for instance, developing on Windows and deploying on Linux). I am using Netbeans as my IDE and I notice that it does NOT copy the files over (library folder is empty when it should have the Zend folder with all the subfolders under that) when

Set indent on view in Zend Framework

流过昼夜 提交于 2020-01-04 05:45:10
问题 In Zend Framework, it is possible to set indentation for headMeta(), headLink(), etc: <?= $this->headLink()->setIndent("\t\t") ?> I like this. I like things tidy. So, now I would want to indent my entire view as well in the layout.phtml file, causing every new line in the view script to be indented with X tabs. <?= $this->layout()->setIndent("\t\t")->content ?> This does not work. Is there any way to do this within Zend Framework without having to intercept the output with ob_start? 回答1: Zend

zend_loader_autoloader does not seem to load abstract class

你。 提交于 2020-01-04 04:05:10
问题 I am getting a grip on Zend_Autoload but a non-zend class I have is not loading when extended. The autoloader is initialized like so: // Initialise Autoloader $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->suppressNotFoundWarnings(true); $autoloader->setFallbackAutoloader(true); $autoloader->registerNamespace('lib_'); } It all works fine with other classes. Is it required to load abstract class files and implemented interfaces manually beforehand? 回答1: Zend_loader

Can't run zend framework MVC application on WAMP

≯℡__Kan透↙ 提交于 2020-01-04 03:17:50
问题 I am new to zend framework application. I got a book online with it's source code example and I'm trying to work on in to learn about zend framework mvc. I extracted the example folder in www in wamp. When I try to reach the application localhost/exampleMVC/ I get a page with all folders in that directory except for the public, the one should be available for the server and when I try to access it localhost/exampleMVC/public I get an error page Error 500; internal server error. what do I miss

Can't run zend framework MVC application on WAMP

孤者浪人 提交于 2020-01-04 03:17:09
问题 I am new to zend framework application. I got a book online with it's source code example and I'm trying to work on in to learn about zend framework mvc. I extracted the example folder in www in wamp. When I try to reach the application localhost/exampleMVC/ I get a page with all folders in that directory except for the public, the one should be available for the server and when I try to access it localhost/exampleMVC/public I get an error page Error 500; internal server error. what do I miss

Trouble setting up php Zend include path

落爺英雄遲暮 提交于 2020-01-03 17:24:48
问题 I am trying to set up a PHP path to my Zend Framework. I am very confused on how to do this. My Zend Framework is located at the following location on my server: amazon/ZendFramework-1.10.3-minimal I am going to be creating a couple of php files in the amazon/ directory that will require the Zend Framework. My include path is: include("ZendFramework-1.10.3-minimal/library/Zend/Service/Amazon.php"); However inside of Amazon.php is the line require_once 'Zend/Rest/Client.php'; ...and then

Trouble setting up php Zend include path

一世执手 提交于 2020-01-03 17:24:27
问题 I am trying to set up a PHP path to my Zend Framework. I am very confused on how to do this. My Zend Framework is located at the following location on my server: amazon/ZendFramework-1.10.3-minimal I am going to be creating a couple of php files in the amazon/ directory that will require the Zend Framework. My include path is: include("ZendFramework-1.10.3-minimal/library/Zend/Service/Amazon.php"); However inside of Amazon.php is the line require_once 'Zend/Rest/Client.php'; ...and then

PHP_CodeCoverage_Filter::getInstance() Error running phpunit

爱⌒轻易说出口 提交于 2020-01-03 16:51:06
问题 I have installed phpunit in my ubuntu 11.10 having php version 5.2.14. But when I run my test module it is throwing error, PHP Fatal error: Call to undefined method PHP_CodeCoverage_Filter::getInstance() in /usr/share/php/PHPUnit/Autoload.php on line 64 I followed the steps mention in this stack question but still no luck. Call to undefined method PHP_CodeCoverage_Filter::getInstance() 回答1: Following steps solved my problem. sudo apt-get remove phpunit sudo pear channel-discover pear.phpunit

What's the best way to handle something like a login page on top of Zend Framework? (And why does my implementation explode?)

倾然丶 夕夏残阳落幕 提交于 2020-01-03 16:44:15
问题 EDIT: Sorry for the large amount of code here; I'm not sure exactly what's going on so I included more to be safe. I've currently got a login page which farms out to a central authentication service. I'd like to do a permissions check on the user. If the user is not logged in, I'd like to redirect them to the login page, and have the login page redirect them to do whatever action it was they were originally doing, running the access check again. If they don't have permission, I want to