zend-framework

Zend form input name with same name

旧街凉风 提交于 2019-12-13 11:01:44
问题 Using Zend 1.9 I am trying to generate a form using Zend Form module . My form should be like this: <form method="post" action="myaction"> <input type="text" name="editors[]" /> <input type="text" name="editors[]" /> <input type="text" name="editors[]" /> <input type="text" name="editors[]" /> <button type="submit" >Go</button> </form> When I submit the form in my controller I want to see something like this: Zend_Debug::dump($this->getAllParams()); //I expect this output: array (size=4)

Set up zend project in live server [closed]

ⅰ亾dé卋堺 提交于 2019-12-13 10:08:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . Actually, I have created account in 000webhost.com free hosting, I uploaded system successfully. But I am able to run it only through this link aubergeikaze.netne.net/public/. The server is based on Apache: //////////////////////.htaccess file \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ # Do not remove this line, otherwise

ABOVE 70 kb IMAGE NOT UPLOAD in Temp Directory [closed]

旧巷老猫 提交于 2019-12-13 09:54:50
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have upload below 70 kb image upload perfectly on server. manage server cpanel view already set php.ini file max_upload =2000mb max-exe-time = 300 max input time =600 php.ini file is everything ok. My problem

how to configure htaccess in zend framework

不羁岁月 提交于 2019-12-13 09:14:30
问题 I cannot access other modules(pages). I can access only public directory http://localhost:88/hotelrwanda/public. I put the project into development mode and enable error display but nothing. Here is what message I get if I want to access to for the following url http://localhost:88/hotelrwanda/public/users/list Not Found The requested URL /hotelrwanda/public/users/list was not found on this server. Here is my htaccess file; SetEnv APPLICATION_ENV development RewriteEngine On RewriteCond %

ZFDebug Toolbar How to log custom messages?

柔情痞子 提交于 2019-12-13 08:50:50
问题 How will I log custom messages or log output in ZFDebug toolbar? I have googled and unable to find an example. I came to know that there is something called Text plugin. But i don't know how to use it. Can any one give me an example? 回答1: Adding for example and error message is simple as: ZFDebug_Controller_Plugin_Debug_Plugin_Exception::errorHandler($level, $message, $file, $line); When you want to add a new tab to ZFDebug just write your own plugin to it. And then include written class to

How to add JS or CSS files to the end of the queue from the controller action in Zend Framework?

試著忘記壹切 提交于 2019-12-13 07:29:06
问题 I have read a lot of topics about this (list at the end of the post) but I can't make my code to work. First I am using old Zend Framework 1.11 . I have the following layout (just an example): <?php $this->headScript('file','/js/jquery/jquery-1.12.4.min.js'); $this->headScript('file','/js/jquery/jquery-migrate-1.4.1.min.js'); // more CSS & JS files goes here // some PHP code goes here ?> <html> <head> <?php echo $this->headLink(); echo $this->headStyle(); echo $this->headScript(); echo $this-

Zend Framework 2 - Submitting a form

允我心安 提交于 2019-12-13 07:25:19
问题 I suppose title says everything. The form is rendered as it should, but everything begun when i decided to write an InputFilter for it. The form is still rendered, but of course i had to adapt something around it. Now, however POST request is sent (Firebug agrees), the getPost() method returns false now. Action (in the controller): public function contactAction () { $form = new ContactForm(); $request = $this->getRequest(); if ($request->isPost()) { $vm = new ViewModel(); $vm->setTerminal

Google Calendar Zend_Loader errors

落爺英雄遲暮 提交于 2019-12-13 07:15:09
问题 I'm running into some errors with Zend_Loader (1.10.8) when I initialize the Google Calendar API in PHP. Here is my code: \Zend_Loader::loadClass('Zend_Gdata'); \Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); \Zend_Loader::loadClass('Zend_Gdata_Calendar'); $this->_service = \Zend_Gdata_Calendar::AUTH_SERVICE_NAME; $this->_client = \Zend_Gdata_ClientLogin::getHttpClient(USER, PASS, $this->_service); $this->_client->setConfig(array('keepalive' => true)); $this->_service = new \Zend_Gdata

Trying to use Zend Escaper from ZF 2.1 in Zend Framework 1.11.11

三世轮回 提交于 2019-12-13 07:02:01
问题 I am trying to use the Zend Escaper class from Zend Framework 2.2 in Zend Framework 1.11.11 by copying the Escaper folder from the ZF 2.2 into ZF 1.11.11. I am trying to do this becuase in the Zend Escaper class documentation it says that the class is a stand-alone class and is not dependent on any of the other Zend classes/interfaces. But once I added the folder into our ZF 1.11.11 library and tried instantiating the Zend Escaper class and load the web page all I am seeing is an empty page.

need help for the zend unit test

為{幸葍}努か 提交于 2019-12-13 06:58:58
问题 I am using unit test to test zend project, this is application.ini [production] phpSettings.display_startup_errors = 0 phpSettings.display_errors = 0 resources.frontController.params.displayExceptions = 0 includePaths.library = APPLICATION_PATH "/../library" bootstrap.path = APPLICATION_PATH "/Bootstrap.php" bootstrap.class = "Bootstrap" appnamespace = "Application" ; modules resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers" resources.frontController