zend-framework

Email decoding doesn't work in zend mail

…衆ロ難τιáo~ 提交于 2019-12-12 02:35:28
问题 I have a script that access the specified email and fetches mail. $temp->getContent() echos the following.. ----boundary_2710_edfb8b44-71c8-49ff-a8cb-88c83382c4ee Content-Type: multipart/alternative; boundary=--boundary_2709_dde0dd0e-ba35-4469-949d-5392aec65750 --boundary_2709_dde0dd0e-ba35-4469-949d-5392aec65750 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: base64 PGZvcm0gbWV0aG9k.........this part is base64 encoded and it works fine if i copy and decode it separately....

Redirecting https to http ISPConfig & Apache

旧街凉风 提交于 2019-12-12 02:34:43
问题 some time ago I managed to find a way to redirect all my https to http (and not the opposite) with Apache. I wanted to do that because I don't have any SSL certificate but all the browser I use force https, therefore leading to SSL error, or timeout depending on if I listen to the 443's port or not. But because I'm stupid, I forgot to save the vhost files for Apache containing that solution and I can't make it work again. I tried everything on the internet but nothing worked. If that changes

Could not open input file: zf.php [duplicate]

南楼画角 提交于 2019-12-12 02:34:27
问题 This question already has answers here : How to install Zend Framework 2 Tool with composer (2 answers) Closed 5 years ago . I am new in zend, so i installed zfTool from here I use the composer for installing the tool, the command is : composer require zendframework/zftool:dev-master But when i run the command : php zf.php version For example i got this error : Could not open input file: zf.php so please if someone has any idea i will be very appreciative. 回答1: If you downloaded using

Find source of BOM in Zend Framework 2

跟風遠走 提交于 2019-12-12 02:22:42
问题 I realized that all response that returns my Zend Framework 2 application contains weird characters at the beginning. For example, when I copy the source code of any page returned by ZF2, I see these characters at the beginning of the file when I paste it in Notepad++ :  . These seem to be 6 Byte Order Mark characters following each other. I checked the encoding of my files, and every file I opened in Notepad++ were said to be in UTF-8 w/o BOM . Also, I checked other pages

how to set develop environment for zend framework 1.11.11 in netbeans 7.1.1 using wamp?

独自空忆成欢 提交于 2019-12-12 02:21:31
问题 hey guys I need your help for setting environment for zendframe work ? I have installed my netbeans in D: drive under D:/program files/netbeans. and the zend framework is under D: drive. and my wamp package is installed under c:/wamp. now what i need is to configure these all for my development? I searched google, stackoverflow and every blog i could for the whole day. but all that I got is a error given below. '"php.exe"' is not recognized as an internal or external command, operable program

Using zftool in a more efficient manner

大城市里の小女人 提交于 2019-12-12 02:07:22
问题 I'm new to Zend and noticed there's something called ZFtool. So I installed it via this tutorial: http://framework.zend.com/manual/2.1/en/modules/zendtool.introduction.html. With some hassle and editting I finally got it to work in my htdocs folder of xampp. Whenever I now run php vendor/zendframework/zftool/zf.php create project testproject it actually creates a project in my htdocs called testproject. But whenever I now want to add a module I'd have to do php vendor/zendframework/zftool/zf

ZF2 - Iterating over a HydratingResultSet

时光怂恿深爱的人放手 提交于 2019-12-12 02:06:30
问题 I'm using TableGateway's selectWith function to return a HydratingResultSet of entities. I need to iterate through each of the entities of the result set - not sure how I'm to do it, but using a foreach gives the error "This result is a forward only result set, calling rewind() after moving forward is not supported". What I was trying to do is basically: $res = $this->tableGateway->selectWith($query); foreach($res as $r) {...} What am I doing wrong? We're using Zend Framework 2.3. Thanks in

Zend Search Lucene Matches

早过忘川 提交于 2019-12-12 02:05:34
问题 OK so let's say I have a search query giving me back some Zend_Search_Lucene_Search_QueryHit objects containing the Zend_Search_Lucene_Document object matching the query. I have a small question about how to retrieve simply the name of the field from the document matching the query str in order to highlight it?? I hope everything's clear and not to obvious to resolve :)... Thanks a lot Alex 回答1: Assuming "name", "address", "phone" are your fields of type Zend_Search_Lucene_Field::Text and you

Install multiple version of PHPUnit via composer

懵懂的女人 提交于 2019-12-12 01:59:49
问题 I am working with ZendFramework 1.x & 2.x , unfortunately ZendFramework 1.x supports only PHPUnit 3.x & Zend Framework 2.x requires PHPUnit 4.x For this i want to install 2 versions of PHPUnit, here is the composer.json file i tried. { "repositories": [{ "type": "pear", "url": "http://pear.symfony-project.com" },{ "type": "pear", "url": "http://pear.phpunit.de" }], "require-dev": { "pear-pear.phpunit.de/PHPUnit": "3.4.*", "phpunit/phpunit": "*" } } I am getting following message. Skipped

324 No response error in Ubuntu 10.04, but works in Windows

ぐ巨炮叔叔 提交于 2019-12-12 01:56:38
问题 I am using Zend Framework (1.11.11) with Doctrine (1.2.4) and two operating systems (Ubuntu 10.04 and Windows XP) and there is a strange behaviour in my application. I try do do 2 basic things (This is the part of my IndexController): $this->view->items = Doctrine::getTable('Prelekcje')->findAll(); // 1 line $this->view->item = Doctrine::getTable('Prelekcje')->find(2); // 2 line On Windows it works properly and I don't have any troubles. In Linux (Ubuntu) first line works - I get the data