zend-framework

ActionScript 3 AMF Zend fails silently

て烟熏妆下的殇ゞ 提交于 2019-12-12 05:49:54
问题 I'm trying to connect to a Zend-PHP service within a pure ActionScript program. I've managed to use the service successfully using Flex. (But Flex mobile apps are bloated, and typically 10x bigger than pure ActionScript apps - which is why I'm trying to write it in Pure Actionscript). I'm trying to access the PHP/Zend service that I downloaded, and used in the following tutorial:- http://www.adobe.com/devnet/flex/testdrivemobile/articles/mtd_1_1.html The PHP code that I'm connecting to is

Zend Framework 1.10 custom Class inside library folder not found

♀尐吖头ヾ 提交于 2019-12-12 05:37:41
问题 I'm learning zend framework from zendCast and can't find the problem I'm using: -Zend Server CE -Zend Studio 7.2 -Zend Framework 1.10 (created with zend studio) In my library folder I have a folder App and in that folder a php file Countries.php which corresponds to App_Countries class but when I try to create a new App_Countries object it says that class could not be loaded any ideas on how to get rid of the error? Fatal error: Class 'App_Countries' not found in /usr/local/zend/apache2

Zend Select with self join overwriting fields

你说的曾经没有我的故事 提交于 2019-12-12 05:29:34
问题 Posts and comments are stored in the same table. So to get each post and its comments we do this: $posts = $this->select()->setIntegrityCheck(false) ->from(array('post' => 'Posts'), array('*')) ->where('post.idGroup = ' . $idGroup) ->where('post.idTopic IS NULL') ->order('post.date DESC') ->limit($resultsPerPage, $resultsPerPage * ($page - 1)) ->joinLeft(array('user' => 'Users'), 'post.idUser = user.idUser', array('idUser', 'fname', 'lname', 'profileUrl', 'photoUrl')) ->joinLeft(array(

htaccess causing server error 500

[亡魂溺海] 提交于 2019-12-12 05:26:04
问题 I have a Zend Framework application with a .htaccess file in the root directory, directing all traffic to the /public directory, where index.php resides. This is the contents of the .htaccess : RewriteEngine On RewriteRule ^\.htaccess$ - [F] RewriteCond %{REQUEST_URI} ="" RewriteRule ^.*$ /public/index.php [NC,L] RewriteCond %{REQUEST_URI} !^/(upload|img|js|css|less)/.*$ RewriteCond %{DOCUMENT_ROOT}/public/upload%{REQUEST_URI} -f RewriteRule ^(.+\.(jpg|png|mp3))$ /public/upload%{REQUEST_URI}

Zend Framework forward request with post http method

◇◆丶佛笑我妖孽 提交于 2019-12-12 04:58:21
问题 Using Zend Framework 1.7. Is possible to forward a request with POST method? Something like this: $this->_forward('action','controller','module',array('method'=>'POST')); 回答1: Yes this is possible, Try using following: $this->_request->setPost(array('param_name' => $paramValue)); $this->_forward('actionName', 'controller', 'module'); 来源: https://stackoverflow.com/questions/24954155/zend-framework-forward-request-with-post-http-method

Can we create custom logs files in Sugar CRM through its own methods?

跟風遠走 提交于 2019-12-12 04:54:01
问题 Actually I work on a Sugar CRM package which is for Sugar On Demand. In this package Sugar CRM On Demand does not allow file handling PHP functions But I want to create separate log files for my package. Is there a way in Sugar CRM to create our separate Custom log files through Sugar CRM internal libraries without disturbing Sugar CRM default logs. 回答1: You can use the great proposition from Jason, however if you want to stay on your idea to have your own logger you can try that : https:/

Having trouble with URI routing for modules in Zend Framework

故事扮演 提交于 2019-12-12 04:54:00
问题 I'm just starting off with Zend Framework, and I'm not quite sure what I'm doing wrong with the URI routing. I'm starting with an initial Zend Framework project in Zend Studio based in my htdocs folder (I'm using Zend Server as well on Windows 7). Everything up to there seems to be working fine getting the index page up (it's running out of the /public/ subdirectory). But when I try to add a module though, in this case called Users with a controller called Index, and following the

FB not defined and prompts error

倾然丶 夕夏残阳落幕 提交于 2019-12-12 04:51:17
问题 I am a newbie in writing the facebook apps. I would like to use the fb.ui to post the message in the users wall on an apps. But when I call the following method, it prompts the error the fb not defined. I really need some help. My code is as below. (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/zh_HK/sdk.js#xfbml=1&appId=<?=$app_id?>&version=v2.0"; fjs.parentNode

Zend Gdata Calendar Bad Request Error

旧巷老猫 提交于 2019-12-12 04:47:35
问题 I've been trying to work wit the ZEND GData API in CakePHP and have it setup and retreiving a list of calendars. All of that works, however when I try to retrieve calendar events, I get a bad request error and I am not sure how to solve it. Here is the code followed by the error message received when the script is run. * NOTE: I AM TESTING THIS FROM MY MACHINE USING XAMPP //GET LIST OF EVENTS $index = 0; foreach($listFeed as $list) { $query = $service->newEventQuery($list->link[0]->href); //

How do I access flashmessenger in my layout file, in zend framework?

半城伤御伤魂 提交于 2019-12-12 04:39:35
问题 I want to display my flash messages in my application's layout file - not sure how to access it though. I set the value in my action. 回答1: Try my view helper - https://github.com/philBrown/Tolerable/blob/master/library/Tolerable/View/Helper/FlashMessenger.php This even includes translations if you have them configured. To display messages from the default namespace, simply use <?php echo $this->flashMessenger() ?> To set a namespace, provide it as the first argument <?php echo $this-