zend

why Zend Framework can't find my controller plugin

Hello. I'm trying to write controller plugin to check authentication. I created class of plugin, put in Application directory, Application.php and registered in Bootstrap.php. But there is an error: Fatal error: Class 'Authentication' not found. Where does Zend Framework look for plugins, how to tell it where it is? //Application/Authe...

Remote File Existance Problem

Hi, I am creating pdf document for downloading for e.g. someone clicked a PDF link then a pdf is generated and browser opens new window with path of that pdf file. Problem is that browser is giving 404 NOT found error for that file for about 40-50 seconds after its creation but after that when I refresh browser that file is present for v...

Launching a x86_64 Amazon EC2 instance with Zend?

I'm using Zend, a PHP library, to work with Amazon EC2. I have created my own image (AMI), it's a x84_64 machine (i.e. not the default i386 architecture). I want to launch it programmatically from PHP using Zend. Zend provides a 'run' method to run an AMI (cf. http://framework.zend.com/manual/en/zend.service.amazon.ec2.instance.html). H...

Object oriented representation of multi-table query

Hi all, Suppose we have two related tables, for example one representing a person: PERSON name age ... current_status_id and one representing a status update at a specific time for this person: STATUS_HISTORY recorded_on status_id blood_pressure length ... I have built an application in PHP using Zend Framework, and tried to r...

Zend Framework Mysql Update

I need to execute this simple mysql query in Zend; "UPDATE `table` SET `field`='field'+1 WHERE `field`>'" . $var . "'" How can I do this with Zend update; $this->update($data, $where); But we hasn't data, we have only where. ...

Zend Column not found: 1054 Unknown column '0' in 'field list'

I have a next code: $parent_priority = $data['priority']; $where = $this->getAdapter()->quoteInto('priority >= ?', $parent_priority); $columns = array ('id', 'title', 'enabled', 'description', 'pv', 'gv', ...

Zend and modrewrite not working together properly

I'm setting up a Zend application, and went through the basic steps of setting up modrewrite on my development station, and writing an .htaccess file (shown below). Now, when I go to the root of my project, Zend works properly, calling the controller and displaying the appropriate page. However, when I call any controller, I would expec...

Zend Form Checkbox checked

I have a checkbox. My script generate this checkbox and assign value of checkbox as 'yes'/'no'. How can I do with Zend next thing. If value is 'yes' checkbox is checked, and inside out. ...

How to debug PHP application using Eclipse PDT (xdebug and zend debugger)

I'm working on one application. I am using Eclipse php Helios IDE for developing php application. I wanted to know below things related to this IDE, so that i can implement PHP application instantly as well as very efficiently : 1) How to do remote debugging using Eclipse PHP Helios IDE 2) What is the pros and cons of xdebug and zend...

add custom options to magentos cms pages

is it possible to add custom options to cms pages and use them in a view? f.e. add a dropdown under site informations and use the variable in my view where i'm displaying a list of my pages? thanks for all help ...

Custom View Helper vs Action View Helper in Zend Framework

Hi I was wondering when to call from the view a Custom View Helper like this one <?php class Zend_View_Helper_MyHelper { public $view; public function setView(Zend_View_Interface $view) { $this->view = $view; } public function myHelper() { return $this->view->escape(’This is being output from the custom helper <br />’); } } ?> and an...

How to download existing file in PHP

I have a pdf file on my server. I want to create such link that, user can click on it and download that pdf file. I am using Zend frame work with Php. ...

Zend Framework correct naming convention for utilising configs from application.ini

Hi, I am using Zend_Oauth_Consumer which requires a number of config values to be passed. Currently i am passing an array into the constructor like so: $config = array( 'callbackUrl' => 'http://www.domain.com/twitter/callback', 'siteUrl' => 'http://twitter.com/oauth', 'consumerKey' => 'XXXXXXXXXXXXXXXXXX', ...

zend framework + core php integration

Hi I have to convert a site in zend framework. Site is big I can't convert the site at a time in zend It will take abt 6 months. Is it possible that I update it module by module (parts) and keep on uploading in live site so some module of my site will run on zend and some on core php. Can I do any setting for url in zend framework so ...

How fix building workspace broblem in Zend Studio?

How fix building workspace problem in Zend Studio? I'm try rename project and rename folder of project, however nothing: Errors occurred during the build. Errors running builder 'JavaScript Validator' on project 'PROJECT'. java.lang.NullPointerException ...

Problem with Zend Oauth and writing Access Token in mySQL database

Hi, I use Zend Oauth to connect my app to Twitter as described here: http://framework.zend.com/manual/en/zend.oauth.introduction.html It works perfectly saving the Twitter Request Token and the Twitter Access Token in the session using serialize and unserialize like this (abbreviated): 1: $consumer = new Zend_Oauth_Consumer($config); ...

Zend Framework Autoloading not working when deploying

Hi, My Zend based website works perfectly on my localhost (using Mac). But When I deploy it on a linux web hosting company, I get the following errors: On the index page which try to list my ads by calling a resource where the select is: Fatal error: Class 'Lintottar_Model_Resources_Ad' not found in /www/webvol8/4v/7e33wem4920cqpg/l...

How to prevent XSS attack with Zend Form using %

Hi, our company has made a website for our client. The client hired a webs security company to test the pages for security before the product launches. We've removed most of our XSS problems. We developed the website with zend. We add the StripTags, StringTrim and HtmlEntities filters to the order form elements. They ran another test a...

How do I handle symbolics links in projects under source control?

We have several php projects. The projects use the Zend Framework and we also maintain a common core library with various functions. Right now my directory structure looks like this project-1 \application \model \views \controllers \libraray \...

Zend error: The apc extension must be loaded for using this backend

Hi I am getting the above error setting up my Zend application on a public hosted server. I have another application on the same sever which works ok so I assume APC is obviously loaded. How can I diagnose this? Thanks ...