zend

Zend Element File with multifile option

I´m using the Zend_Form_Element_File to upload some files that works just fine, but only if I fill all fields. $this->addElement( 'file', 'moh_file', array( 'label' => 'Datei', 'destination' => '/tmp', 'ValueDisabled' => true, 'MultiFile' => 3, 'validators' => array( arra...

Lucene - how to make multiple words within query AND instead of OR together

I am using Zend Search Lucene and if the user types in Vibrant Bouquet into the search box, results with the word "Vibrant" or the word "bouquet" (or both obviously) are returned. What I want is only to return those results with both words. Obviously I can do this by typing AND between the words, but as far as I can tell Lucene implicit...

Zend Framework 1.10.7 telephone validator

Please See Correct Answer for solution to the requested question. Hi, Recently I have been searching for telephone validation in zend framework which I think is a missing component of their Validator framework. Therefore I created custom telephone validator which I would like to share with you. Put code below in a file accessible by...

Zend Framework where is version 1.8?

Hello, I'm currently trying to improve my PHP by moving towards an MVC framework architecture. I've looked around a lot and have decided to go with the Zend Framework. However all the tutorials I can find talk about version 1.8, the problem is I can only find version 1.1 on the Zend Framework site. I'm probably missing some key concep...

Zend Framework: Conditional validation

I need to set up some validation for a form field based on a value of another field. For instance if profession is Doctor, then require specialty not to be blank ('') or none ('none'). $professionOptions = array( '' => 'Choose Profession', 'Dr.' => 'Dr.', 'zzz' => 'zzz', 'None' => 'None'); $th...

zend newbie question - "No adapter found for "

Working through a zend tutorial & get this message, & not sure where to look. thanks, An error occurred Application error Exception information: Message: No adapter found for Model_DbTable_Books Stack trace: #0 C:\xampp\php\PEAR\Zend\Db\Table\Abstract.php(739): Zend_Db_Table_Abstract->_setupDatabaseAdapter() #1 C:\xampp\php\PEAR\Zend...

zend newbie - Message: Action "xxxxxxxxxxxxx" does not exist and was not trapped in __call()

I was doing some clean up on a test project in Zend, and now main index page works, but every active link gives this error. An error occurred Page not found Exception information: Message: Action "xxxxx" does not exist and was not trapped in __call() Stack trace: #0 C:\xampp\php\PEAR\Zend\Controller\Action.php(515): Zend_Controller_...

Can someone tell me how to obtain the theumbnail from a Blogger post using PHP/Zend?

Can someone tell me how to obtain the theumbnail from a Blogger post using PHP/Zend? ...

php eclipse debuging

I am runing a php script using eclipse. when a set breakpoint and run the script it throws me this error. form the error it is apparent that i have change something the php.ini file. but i dont know what i have to change to make either zend or xdebug. even i dont know what the differnce b/w them. following the error The session could ...

zend newbie - pushing values back to form in a view

Using a regular HTML form (not Zend form), how do I push the value of a posted variable back to the form on re-display. Is there a zend way of doing this? controller: $name = $f->filter($this->_request->getPost('your_name')); $this->view->your_name = $name; view: <form action="" method="post"> Name:<br><input type="text" value="<?val...

How make Zend_Form submission without reload a page - with Ajax?

Hi, How make Zend_Form submission without reload a page - with Ajax? This is code for create form that reload a page when submitted, what should be change or add that this form will submit with ajax (1.regular solution 2.jquery solution): Form: class Application_Form_Login extends Zend_Form { public function init() { $...

Zend_Soap_Client call not working bu service works in plain php

Hi I am trying to use SOAP for the first time. I have searched for and found tutorials that explain it well and I was able to make it work in plain PHP. However building this into my Zend Project brings a problem. Here is a snippet that call the login service. Can anyone help me spot where the error may be? I am running this against...

Why doesn't my SSI work ?

I am having problems with passing query params into SSI include from within my zend framework application. I am trying to include a PHP file inside another PHP: <!--#include virtual='/ssi/test.php?x=hello' --> This executes properly, if my hellotest.php (which contains the above line) resides in my document root. If, however I do th...

Why is ZendX Autocomplete not working??

Hey, I'm setting up my first ZendX_JQuery_Form. In my controller, I've got the following code: $form = new ZendX_JQuery_Form (); $date1 = new ZendX_JQuery_Form_Element_DatePicker ( 'date1', array ('label' => 'Date:' ) ); $form->addElement ( $date1 ); $elem = new ZendX_JQuery_Form_Element_AutoComplete( 'ac1', array('label' => 'Autocom...

Zend_Captcha_Image generates empty captcha :(

Hi, i have strange problem when using Zend_Captcha_Image. Sometimes it generate empty captcha, only with lines and dots, but with no text :( EDIT: It happens for every 4-10 pageview/image refresh. Look here for registration form here This only happens on one server. At another with same OS it is without any problem. Anybody with sam...

Zend Validate - How do you pass context values from a different subform?

I've split up a Form into 3 SubForms and for one of the elements, in the last SubForm, I am creating a Validator that extends Zend_Validator_Abstract. This validator needs to check that a value, on the second SubForm, is not empty. However this value will not be in the $context array for the element in the Third SubForm. What is a sens...

Zend_Dojo_Data from SQL View (primary key not available, can it be done?)

Well, i'm trying to achieve something but i think it is not possible. Here's where i am. SQL Table T with columns colID , colA, colB. colID is the primary key I needed to retrieve all the values specified in colA "unioned" with colB, so I created a view CREATE OR REPLACE VIEW vw_MyView (col_Common) AS (SELECT col_A AS col_Common FROM ...

ZEND Framework with Flickr

I'm referencing this page http://zendframework.com/manual/1.9/en/zend.service.flickr.html In order to pull all albums off a flickr page. But it only lists 6 'methods' tagSearch() userSearch() getIdByUsername() getIdByEmail() groupPoolGetPhotos() getImageDetails() Where do I get a list of all the methods? ...

re-catcha / zend / javascript question

I generate a recaptcha box on a form like this. <?php $recaptcha = new Zend_Service_ReCaptcha("key", "key"); echo $recaptcha->getHTML(); ?> and perform form validation using javascript. I would like to change the captcha phrase each time user unsuccessfully submits form. Can this be done using javascript? thanks ...

Zend-framework: Post data problem

Hi, I have strange problem. When I submit form, the whole web site redirects to index. Form method is post. When I change it to get, everything goes right. So what is the problem ? Form code: <form action="<?php echo $this->baseUrl('/search/general'); ?>" method="post"> <table class="wf"> <tr> <td> <a href="#" oncl...