zend-framework

How to get code completion for variables into zend_view using netbeans 6.9.1?

家住魔仙堡 提交于 2019-12-09 23:55:53
问题 i'm evaluating to switch to netbeans ide for managing my zend_framework project; i'd like to have autocompletion for variable's name into my view, for variables defined in actions as i see in this screencast, http://netbeans.org/kb/docs/php/zend-framework-screencast.html , but i can't figure out. When i digit $this-> in any view i can't see none variable's name. I'd like a lot to use this feature. Thank you, Mirco. 回答1: You need to have Zend Framework either in the include path for the

How to create an empty spreadsheet using Zend GData

橙三吉。 提交于 2019-12-09 23:50:43
问题 How to create a new, empty spreadsheet using Zends GData Library? 回答1: According to the Google Documents List API, to create a new, empty spreadsheet: follow the instructions in Creating a new document or file with metadata only. When doing so, use a category term of http://schemas.google.com/docs/2007#spreadsheet. With Zend GData library, it may look like this: // Load Zend library require_once('Zend/Loader.php'); Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata

Zend Form: onchange select load another view content

孤人 提交于 2019-12-09 23:43:00
问题 In my application I have a form in controller/index that consists out of 3 select boxes. When all three boxes have a value selected I need to show additional html and extra form options in the same view based on those select values. The obvious solution seems to make an ajax call to another action that handles the database operation and creates a view and loading that view into the controller/index.phtml I have been able to load a view of another action in the index.phtml by using: $('#select

move_uploaded_file() with Zend doens't work

江枫思渺然 提交于 2019-12-09 23:23:47
问题 We're building an application within Zend framework and are having trouble moving an uploaded file. We get the file by $filePath = $form->image->getFileName(); but when we're trying to run move_uploaded_file on it, it just returns false. The image is successfully being uploaded to the temp directory, but we can't move it into a folder. $formData = $request->getPost(); if ($form->isValid($formData)) { $form->image->receive(); $filePath = $form->image->getFileName(); move_uploaded_file(

Zend Authentication Problem with subdomain

删除回忆录丶 提交于 2019-12-09 23:20:17
问题 I am working on a project using zend framework, php, mysql on ubuntu. I have created hostname test.dev on my local machine and using zend authentication. When an user is authenticated using zend authentication, I set session variable for logged in user id. I use this session variable(userid) on different pages to sure authentication. Question: Now I have to create a subdomain. I have created a new hostname mypage.test.dev on my local machine. Both hostnames are pointing to same directory, for

GitHub does not let me access Subfolders

佐手、 提交于 2019-12-09 22:09:24
问题 Short: GitHub has grayed out folders in my repo that I cannot access. This worries me, as my code changes are in those folders! Long: I am developing a ZF2 web application and using git for source control. ZF2 is modular, so somewhere somehow (most likely with composer.phar or possibly with git clone) I have downloaded some ZF2 modules into project subfolders. One such ZF2 module is vendor/coolcsn/csn-user . I have made changes in that ZF2 module. Problem 1: when I run git status, I get this:

zend view helper configure path(works in bootstrap but does not work in application.ini)?

本秂侑毒 提交于 2019-12-09 19:47:17
问题 This problem really making me crazy. When I add my view Helper path in bootstrap file. $view->addHelperPath(APPLICATION_PATH.'/../library/SiteLib/View/Helper/'); It works perfectly alright. But when I shift this to APPLICATION.INI file (where it should be). It simple don't work resources.view[] = resources.view.helperPath.SiteLib_View_Helper_CssHelper = APPLICATION_PATH "/../library/SiteLib/View/Helper/" I don't know what I am doing wrong. Can anyone help me please. here is my view helper

Zend Framework Bootstrap Issue

不问归期 提交于 2019-12-09 19:39:41
问题 I have been working on a new installation of a Zend Framework application for a while now, and I cannot figure out what's going on. I have two custom action helpers I would like to use and I would like to initialize those in the bootstrap. But it seems as though my _init functions are not being called at all. In the index.php that starts the application I have: require('Zend/Application.php'); $app = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH .'/configs/application.ini'); $app-

Zend_Framework- Where to Place $_GET and $_POST (HTTP Request) handling?

扶醉桌前 提交于 2019-12-09 19:13:46
问题 I recently read this post which led to a series of other posts that all seem to suggest the same idea: Models do everything, the View should be able to communicate directly with the model and vice versa all while the Controller stays out of the way. However, all of the examples shown are fairly simplistic and none really show an example of how anyone has tried to implement full handling of of a request / response cycle, which got me to wondering "should the model be responsible for handling

how to have php get the __LINE__ or __FILE__ value where a function is called

*爱你&永不变心* 提交于 2019-12-09 18:33:51
问题 I have a ZF debug function like this: function fs_d($d, $at){ if($_REQUEST['debug']=='123'){ Zend_Debug::dump($d,'at: ' . $at); }else{ return true; } } and will call like this: fs_d($var, $at) what I'd like $at to represent where $at was called in the function. In other words, something like __FILE__ at __LINE__ that is evaluated at point of function call and NOT at point of output. But I don't want to write __FILE__ at __LINE__ at every call. Is there some way to wrap as a macro, wrap in