Each server in the cluster has a a search index that is synced from one of the servers every 15 minutes. This was done because appending to an index can't happen on a nfs because of flock; see documentation (or else the index would be on a shared folder that all servers access).
The issue that I'm running into is that if an action is t...
Hi I'm trying to send some emails via gmail from the Zend_Mail module.
This is my code:
$config = array(
'ssl' => 'tls',
'port' => 587,
'auth' => 'login',
'username' => '[email protected]',
'password' => 'password'
);
$smtpConnection = new Zend_Mail_Transport_Smtp('smtp.gmail.com', $config);
Error:
Warning: ...
Hi out there in Stackland! Here's my problem:
I want to use my Zend controller to load an array from a database, and then pass it to javascript. I've decided the best way to do this is to use ajax to ask the controller for it's array, encode it in json, and then pass it down. However, I don't know how to pass the variable I loaded in...
Good Morning,
i have some Trouble with the Zend Framework and Zend_DB_Select, i want to use
this (Working) SQL Statement as Zend DB Select Statement :
select
oslang
from
oslang, os
where
oslang.oslang_id = os.oslang_id and
ossubversion_id = 1
I have tryed to following but it doenst work :
try {
$select = $this->_db->...
What's an efficient way for someone who knows PHP and Ruby on Rails to quickly pick up the Zend framework?
...
I am getting the following error on my site, however, i don't know what I am to do. I know I am missing something, however, I just can't figure it out.
You can see what I am trying to achieve here: 4.6.4. Zend_Application_Resource_Session
Fatal error: Uncaught exception 'Zend_Db_Table_Exception' with message 'No adapter found for Zend...
The Zend Framework Manual says the following:
60.3.1. Escaping Output
One of the most important tasks to
perform in a view script is to make
sure that output is escaped properly;
among other things, this helps to
avoid cross-site scripting attacks.
Unless you are using a function,
method, or helper that does escaping...
I'm using the CSRF hidden hash element with Zend_Form and trying to Unit Test the login but don't know how to write a Unit Test to include that element. Looked in the docs and read as many tutorials as I could find. I even delicioused them all, but no one mentions this.
...
what are the best practices/suggestions/techniques to implement a breadcrumb for a ZendFramework application using Zend_Navigation? how and where is the best method to define the page hierarchy?
...
I'm new to Zend Framework. I would like to know how to implement zend framework on a shared hosting. Because of the zend framework folder structure
all view files are put into the "public" folder.
Suppose
"/" is the main root folder for me and public is like
"/public"
so that the url becomes "http://site/public/. .. .bla bla..."
...
hi all,
i am writing an action helper and i need to call another action helper from within that helper. but i dont know how. here in the sample code:
class Common_Controller_Action_Helper_SAMPLE extends Zend_Controller_Action_Helper_Abstract
{
protected $_view;
public function __construct(Zend_View_Interface $view = null, array ...
I ran across an interesting issue today. We have an application that utilizes Zend Frameworks caching functionality. A request to this application typically calls a factory method using the following line
$result = call_user_func_array(array("myclass", "factory"), array($id));
The idea is to return an object from the factory method...
Hi,
I am using Zend_Service_ReCaptcha in a project and wish to customize the colour scheme of the box, however I am completely stumped on which function to use to achieve this.
http://framework.zend.com/manual/en/zend.form.standardElements.html#zend.form.standardElements.captcha doesn't seem to shed any light.
Answers are appreciated, ...
Hi,
I need a little help clearing something up with Zend_Form and adding filters to an element. Now I was under the impression that when you add a filter to the form that, when the form is posted that filter was executed as part of dispatch in the controller.
However when testing my form to my horror the filter StripTags doesn't seem ...
I've been trying to get the Zend Jquery autocomplete function working, when i noticed this section in the Zend documentation.
The following UI widgets are available as form view helpers. Make sure you use the correct version of jQuery UI library to be able to use them. The Google CDN only offers jQuery UI up to version 1.5.2. Some o...
I can't seem to upload an image using Zend_Service_Nirvanix. Is it even possible?
I have a feeling that my problem has something to do with not being able to figure out how to set the UploadHost on the Transfer Service.
Any help is greatly appreciated! My deadline is July 16th!
Here is my code:
$nirvanix = new Zend_Service_Nirvanix(ar...
I’m using Zend_Filter_Input to validate form data and want to customize the error messages, if a user does not enter a value. It is important that each field gets a different error message.
With Zend Framework 1.8.0 I used the following array for the “validator” parameter of Zend_Filter_Input:
$validators = array(
'salutation' => arra...
How can I create something like: $this->layout()->sidebar, I'm trying for about 4 hours...but it doesn't work for me!Can you give me an example?
...
Is one 'better' than the other?
Doubt that since as I understand both are written by the same author, only Adobe 'officially' supports Zend.
My application is composed of 3 parts
1-an image editing tool allowing users to upload images, edit them, then post them to a server.
2-a publicly viewable gallery
3-a private 'admin' tool allowing...
I'm trying to find an open source PHP calendar that will play nicely with my zend framework application. Ideally, I should be able to display the events on the public site, and add/edit/delete events in the admin section.
Anything that would keep me from re-inventing the wheel so I can get a head start would be great.
Update: At the mo...