zend-framework

Exception while setting up the wurfl in zend

◇◆丶佛笑我妖孽 提交于 2019-12-22 01:30:39
问题 I have includes all the parameters using the article at http://framework.zend.com/manual/en/zend.http.user-agent.html#zend.http.user-agent.quick-start but it shows me an exception Unable to resolve plugin "useragent"; no corresponding plugin with that name. My code is : all configuration in application.ini resources.useragent.storage.adapter = "Session" resources.useragent.wurflapi.wurfl_api_version = "1.3.1" resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl-php

Zend Framework Modules with common resources

允我心安 提交于 2019-12-22 01:22:28
问题 I'm having a lot of trouble figuring out how we can have a modular directory structure, with the ability to load resources that are to be shared across modules. I.e., application --- /forms --- /models --- /modules ------/module1/ ---------/models ------/module2/ ---------/models Now, what I'm trying to do is load forms in /application/forms from within the modules. Everything I've tried results in these classes to not being loaded. I've tried: 1) Letting Zend try and figure it out

Zend Validate Email Address and Deep MX Checking

流过昼夜 提交于 2019-12-22 00:32:58
问题 I have started using Zend_Validate_EmailAddress with the mx and deep options set to true. I think I am getting some false negatives when it comes to MX records that have IP addresses in the reserved IP ranges. A good example is the MX records for harn.ufl.edu. It appear that it's failing because of IP addresses in the 128.0.0.0/16 range. It does however have one record that uses 8.6.245.30, which is not in the reserved range. Another example is the MX record for martinhealth.org. It's MX

Override Separator on Zend_Form Radio Elements When Using a ViewScript Decorator

安稳与你 提交于 2019-12-21 23:57:25
问题 I am using ViewScripts to decorate my form elements. With radio elements, the separator can normally be overridden, but the override is being ignored when I use the ViewScript. When I use the below call and ViewScript, the radio elements are separated by a '<br />' rather than the space I've specified. If leave the default decorators, the override works. $this->addElement('radio', 'active', array( 'disableLoadDefaultDecorators' => true, 'decorators' => array(array('ViewScript', array(

Virtual host not working in zend framework

狂风中的少年 提交于 2019-12-21 21:40:56
问题 Following is my virtual host in /etc/apache2/sites-available: <VirtualHost *:80> DocumentRoot "/var/www/roomstays/public" ServerName roomstays #This should be omitted in the production environment SetEnv APPLICATION_ENV development <Directory "/var/www/roomstays/public"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> Also it enabled on /etc/apache2/sites-enabled folder And following is my host file: 127.0.0.1 localhost

Make a local Git repo from master based with Zend Repo as Origin

余生长醉 提交于 2019-12-21 21:39:05
问题 I would like to make a clone of a master branch on the test server where we have the master branch and the test site running. This repo is a Zend PHP Framework Application. In the config file @ /home/me/public_html/domain.com/ZendSkeletonApplication/.git/config I have now: [core] repositoryformatversion = 0 filemode = true bare = false logallrefupdates = true [remote "origin"] fetch = +refs/heads/*:refs/remotes/origin/* url = git://github.com/zendframework/ZendSkeletonApplication.git [branch

Want to show “loading…” in PHP page

元气小坏坏 提交于 2019-12-21 21:35:34
问题 I am developing a web-page in PHP that needs following functionality: 1. When User click on "Say Thanks" it should be changed with "Done!". 2. At the same time I want to call an action in indexController. 3. At this time I want to show "loading...." 4. The current page has a lot of dynamic contents that should also not change. Please suggest me what should I do to complete above tasks...... 回答1: I figure you need an AJAX call. I usually do that for loading comments and such when you press

Zend - How to enable cache(MetaData) on session table?

只愿长相守 提交于 2019-12-21 21:33:42
问题 i am using Zend_Session_SaveHandler_DbTable to store the session in a table my profiler tells me that on each page request zend does: # Query Time (1) connect 0.0032038688659668 (2) DESCRIBE session 0.0041539669036865 (3) SELECT session .* FROM session WHERE ((( session . session_id = '7nnan8ltd6h64sigs6dlkicvh0' AND session . save_path = '' AND session . name = 'PHPSESSID'))) 0.00057697296142578 Total time : 0.008 sec when i do queries on other tables, zend DESCRIBEs them once(the first time

Zend Form - How to set values on sub form elements?

青春壹個敷衍的年華 提交于 2019-12-21 21:10:44
问题 array 'subQuantity' => array 'quantity_6' => string '23' (length=2) 'quantity_16' => string '23' (length=2) 'quantity_18' => string '23' (length=2) 'update' => string 'Update' (length=6) Good day! I just created a subform from my existing zend form and procures this data when form submits. Based on posted data (the quantity_ elements), I would like to set the values to subform elements. Is it possible? Thanks in advance. cheers and happy coding! 回答1: Not sure whether you want to set values of

Zend Framework: How to POST data to some external page (e.g. external payment gate) without using form?

浪子不回头ぞ 提交于 2019-12-21 20:42:59
问题 I would like to have a user redirected to an external credit card gate. Of course I have to POST some user info to that gate, but I don't know how exactly can I do this. I know that I could do this by generating a html form with hidden or read-only fields and have a user click "Submit" button. But this solution is not perfect, because all the form data could be easily changed using e.g. Firebug. I think you cannot do this using $this->_redirect(...). But maybe there is some other solution?