zend-framework

Zend Framework: How to map fully dynamic route

情到浓时终转凉″ 提交于 2019-12-11 06:16:26
问题 The title of this question was hard to come up with, it might not be the best, anyway. I have a site with regions, categories and suppliers, the obvious solution is to use the default route of "/:module/:controller/:action" So that my URLs will look something like this "/region/midlands/category/fashion" "/region/midlands/supplier/ted-baker" What I want to achieve is a URL format like this however, this would need to involve a database query to check for the existence of midlands , fashion

zend framework not working after files are uploaded into a remote server

旧城冷巷雨未停 提交于 2019-12-11 05:59:54
问题 so I've been using Zend framework to develop the site locally and everything works just fine....but then after I upload everything into a remote server, zend framework did not work even though I changed none of the source code..... so here's what I know... the remote server supports PHP, MySQL, etc just fine and they are of the latest versions remote server supports .htaccess and mod rewrite just fine and they are enabled and I've tested them I did not change any of the source code and the

Zend Framework Controller File (Apple Icons)

天涯浪子 提交于 2019-12-11 05:56:32
问题 Question about including some header information in controller file in zend framework. I am wanting to include the apple icons. Going off of this here: http://gigaom.com/apple/how-to-create-ios-device-home-screen-icons-for-web-sites/ However the 'sizes' block is not showing up when I look at the actual source of page that this is on. I'm assuming rel and href are native to zend framework already. How do I get the 'sizes' to show up? $this->view->headLink(array('rel' => 'apple-touch-icon',

YouTube API: Private Video Access

♀尐吖头ヾ 提交于 2019-12-11 05:56:31
问题 I know that controlling a video's privacy setting (public, private, unlisted) is done through setting the yt:private or yt:accessControl tags. However with a YouTube video, when it is set to private the access to the video can be allowed through a list of email addresses or YouTube usernames. Is there a way to set this allowed list through the API? If there is someone who knows of a solution using the Zend Gdata libraries this would be welcomed as this is the library I am using to interact

baseURL fix in IE

狂风中的少年 提交于 2019-12-11 05:46:54
问题 I'm developing a website with following structure: click here. And I'm having some problems with the URL when trying to load stylesheets. Being more specific, in the admin module I'm using this bootstrap: <?php class Admin_Bootstrap extends Zend_Application_Module_Bootstrap { public function _initResources() { $view = new Zend_View(); $view->headScript() ->appendFile('public/js/jquery-1.4.2.min.js') ->appendFile('public/js/jquery.tools.min.js') ->appendFile('public/js/jquery-ui-1.8.4.custom

Zend Google Calendar API - How to Change DateTime Format?

☆樱花仙子☆ 提交于 2019-12-11 05:39:16
问题 I am using the Zend Framework Gdata for the Google Calendar API and the datetime outputs in RFC3339 (which looks like this: 2012-01-19T22:00:00.000-08:00). What php code do I need to add in order to convert that to UTC so that it looks like this: January 19, 2012 8pm-11pm ? I have found php code that converts RFC dates to string, but I don't know enough about php to be able to alter the code to work with the Zend Gdata formulas... as you will see in my code below, the "date" is referred to as

Zend framework - error page for PHP fatal errors

佐手、 提交于 2019-12-11 05:37:05
问题 On a PHP webapp using the Zend 1 framework, if the code throws an exception, I get a nice error page with my branding etc. If the code encounters a PHP fatal error (e.g. "method call on non-object" when an object reference is unexpectedly null), then I just get a bare Apache 500 error page. How can I get a nice error page in the latter case? Things I have tried: If the PHP ini "display_errors" is set, then I get just the fatal error message as plain text If "display_errors" is not set, then I

Zend_Form using subforms getValues() problem

独自空忆成欢 提交于 2019-12-11 05:36:57
问题 I am building a form in Zend Framework 1.9 using subforms as well as Zend_JQuery being enabled on those forms. The form itself is fine and all the error checking etc is working as normal. But the issue I am having is that when I'm trying to retrieve the values in my controller, I'm receiving just the form entry for the last subform e.g. My master form class (abbreviated for speed): Master_Form extends Zend_Form { public function init() { ZendX_JQuery::enableForm($this); $this->setAction(

how do i add a dynamiclally generating dropdown to the layout.phtml in zend framework

ε祈祈猫儿з 提交于 2019-12-11 05:36:23
问题 i want to add a dropdown menu to my layout . i have a list of hotels . i want to change the hotel from a dropdown , i need to keep that drop down in my layout.phtml . problem is hotel list is dynamic. can i do this , is this possible in zend , here is my layout,phtml i need to add a dropdown to <div class="floatright wid35 textaligncenter padtop5"> <html> <head> <?php echo $this->docType(); ?> <?php echo $this->headTitle(); ?> <?php echo $this->headScript(); ?> <?php echo $this->headLink(); ?

How do I pass variables to a layout in a multiple module / layout Zend Framework application?

夙愿已清 提交于 2019-12-11 05:36:02
问题 Before I converted my Zend Framework application to a module based structure, it had a single layout and I could pass variables to it from my controller like so: // Controller action $this->view->foo = 'Something'; // Layout <?= $this->foo ?> However, since moving everything into a default module and creating a separate "admin" module, I can no longer get this to work, most likely due to me moving my "View Settings" out of my bootstrap file and into the controller plugin where I am switching