zend-framework

Apache Virtual Host Setup on Centos for Zend Framework 3

风流意气都作罢 提交于 2019-12-13 20:39:50
问题 I am newbie to zf3 and have extracted the ZF3 Skeleton Application from GitHub into location /var/www/html/zf2-tutorial and had installed successfully to get the zf3 home page from URL https://xxx.xxx.xx.xx/zf2-tutorial/public While going through the tutorial i found i have to set up a virtual host to access the site like zf2-tutorial.localhost so i followed the steps and making a zf2-tutorial.conf file under /etc/httpd/conf.d folder . zf2-tutorial.conf <VirtualHost *:80> ServerName https:/

Do you think Zend framework misses the Symfony's Bundle principle ?

北城以北 提交于 2019-12-13 20:25:32
问题 I have been working in ZF since it was v1.6 and i am pretty happy with it , but reading about symfony and its bundle principle : to make sumfony Bundle more clear : http://docs.symfony-reloaded.org/quick_tour/the_big_picture.html But what is a bundle? All the code you write in a Symfony2 project is organized in bundles. In Symfony2 speak, a bundle is a structured set of files (PHP files, stylesheets, JavaScripts, images, ...) that implements a single feature (a blog, a forum, ...) and which

unable to open spreadsheets with Zend_Gdata?

本小妞迷上赌 提交于 2019-12-13 20:14:57
问题 <?php include('Zend/Gdata.php'); include('Zend/Gdata/Spreadsheets.php'); include('Zend/Gdata/ClientLogin.php'); $service = Zend_Gdata_Spreadsheets::AUTH_SERVICE_NAME; $client = Zend_Gdata_ClientLogin::getHttpClient('myemail@gmail.com', 'password', $service); $spreadsheetService = new Zend_Gdata_Spreadsheets($client); $sheets = $spreadsheetService->getSpreadsheetFeed(); foreach ($sheets as $sheet) { //echo get_class($sheet) . '<br>'; exit; echo $sheet->getContent() . '<br>'; echo $sheet->getId

Download pdf file from a string using Jquery

谁都会走 提交于 2019-12-13 20:05:48
问题 All, I have a PHP5 application written with Zend Framework and MVC. On my home page, I want to incorporate the functionality to download a dynamically generated pdf file. The way this is done is: User clicks "download file" link. On Click, an AJAX call occurs to a PHP controller, which takes the form data, generates the pdf and returns it as a string. My javascript function now has the pdf string. How can I display the user an "Open/Save" dialog to download the pdf file from javascript? I

IMAP Message UID

余生颓废 提交于 2019-12-13 19:11:37
问题 In RFC3501 there is 2.3.1.1. Unique Identifier (UID) section: A 32-bit value assigned to each message, which when used with the unique identifier validity value (see below) forms a 64-bit value that MUST NOT refer to any other message in the mailbox or any subsequent mailbox with the same name forever. Most tools like Zend\Mail in PHP use the microtime, process id and uname to generate an UID for an email. So I get something like 1400603156.789.5617.imac.home,S=129:2,S . This is not conform

Zend Framework addMultiOption adding custom parameters like “rel” for options

放肆的年华 提交于 2019-12-13 18:34:52
问题 Im using Zend, and we have a form thats put together through a series of functions. One in particular addMultiOption, of which is being pulled in from a DB (from where I dunno, cause if I could alter the query, that'd be much easier and better all around. Anyway that said I need to add a "rel" attribute to every option /option so I can preform a task on the option via jquery when that option is selected, its not all options but some, options that don't have extra functionality would have a

Get Netbeans to Auto-suggest Zend Framework components

一笑奈何 提交于 2019-12-13 17:55:01
问题 I've recently installed ZF, and haven't had any issues using it, however when I'm working in Netbeans, I'd like for it to recognize and suggest ZF components. For example, when I type: $config = new Zend_ I want it to auto-complete or suggest: Zend_Registry Or when I try to use: Zend_Registry::getInstance(); I'd like for Netbeans to auto-suggest getInstance and recognize documentation for it. I figure it has something to do with including the library inside the application, but I'm not sure

lucene encoding problem in zend framework

不羁的心 提交于 2019-12-13 17:43:09
问题 i use of lucene search indexer . it work nice for english language, but i use of persian in my site and it can`t index for this language for example "سلام" i use of this code for create document: public function __construct($class, $key, $title,$contents, $summary, $createdBy, $dateCreated) { $this->addField(Zend_Search_Lucene_Field::Keyword('docRef', "$class:$key")); $this->addField(Zend_Search_Lucene_Field::UnIndexed('class', $class)); $this->addField(Zend_Search_Lucene_Field::UnIndexed(

how to get role from Zend_Auth/Zend_ACL when using a Doctrine adapter? getting all work together

拜拜、爱过 提交于 2019-12-13 17:33:15
问题 I'm using Zend_Auth with a project using doctrine.I believe every bootstrapping is done correctly and i can log in. my adapter looks like this: class Abra_Auth_Adapter_Doctrine implements Zend_Auth_Adapter_Interface { protected $_resultArray; private $username; private $password; public function __construct($username, $password) { $this->username = $username; $this->password = $password; } //based on feedbacks as response authenticate has changed to this public function authenticate() { $q =

Benefits of Composer if already using a PHP framework

岁酱吖の 提交于 2019-12-13 17:21:32
问题 Dropbox's PHP SDK heavy-handedly suggests that one should use Composer to install and load their SDK. Also, version 2 of AWS's PHP SDK also offers Composer as a installation/loader (fortunately without the bias). I'm using the Codeigniter (CI) framework which has several simple mechanisms to load modules. It has 1) a built in "vendor" folder (called "third_party" by CI, "vendor" by Composer). 2) "helper" and "library" folders to control modules I've created, e.g., $this->load->library("blah