zend-framework

subforms in Zend

How subforms created in zend? Please explain with an example. ...

zend-framework navigation

i have this xml file for Creating a container , if i want create a db for save this items and and create container from db how should i do ? <?xml version="1.0" encoding="utf-8"?> <config> <nav> <logout> <label>logout</label> <controller>authentication</controller> <action>logout</actio...

using zend form decorators

<div class="field50Pct"> <div class="fieldItemLabel"> <label for='First Name'>First Name:</label> </div> <div class="fieldItemValue"> <input type="text" id="firstname" name="firstname" value="" /> </div> </div> <div class="clear"></div> I want the code to appear like this in source code . how do i write the same thing in zend ...

blue pay implementation

hi I want to implement blue pay payment method in my project. Is there is any tutorial to do this? I am new to the blue pay method; my project is in Zend framework ...

I18n of Zend_Form values and errors

Hello, assume this situation $form->addElement('select', 'companies', array( 'disableTranslator' => true, 'label' => Zend_Registry::get('Zend_Translate')->_('companies'), 'filters' => array('Int'), 'required' => true, 'multiOptions' => array(1 => 'Company 1', 2 => 'Company 2') )); if($_POST...

Zend Form Validator : Element A or Element B

I have two fields in my Zend Form, and i want to apply the validation rule that ensures the user enters either one of the these two fields. $companyname = new Zend_Form_Element_Text('companyname'); $companyname->setLabel('Company Name'); $companyname->setDecorators($decors); $this->addElement($companyname); $company...

Zend_Date and setting timezone on instation

I have a ZF app and am saving times as UTC in MySQL db. When I retrieve, them I'd like to tell Zend_Ddate that they are UTC rather than the timezone set in php.ini of 'America/Los Angeles'. Currently, I'm instantiating like this: $date=new Zend_Date($item['created_on_utc'],Zend_Date::ISO_8601,'en_US'); but feel like there should be a...

Determine browser language(s) in Zend Framework?

I am dissolving a rather big old library with various PHP helper functions that have amassed over time. I'm looking for Zend Framework based replacements for as many of these functions as possible. My first candidate is a function that returns the users's most preferred browser language from the huge list that can be http_accept_languag...

Is there a datetime control for the Zend framework?

Here I have a password field: /*********************PASSWORD**********************/ $password = new Zend_Form_Element_Password('password'); $alnumValidator = new Zend_Validate_Alnum(); $password ->setRequired(true) ->setLabel('Password:') ->addFilter('StringToLower') ...

Not all fields are being saved in my MySQL Database.

My form class: <?php require_once ('Zend\Form.php'); class Sergio_Form_registrationform extends Zend_Form { public function init(){ /*********************USERNAME**********************/ $username = new Zend_Form_Element_Text('username'); $alnumValidator = new Zend_Validate_Alnum(); $username ...

Zend_Form: Add Link before submit-element

I have a little problem, I want to have the link inside the DIV instead before. I want to have it look like: <div class="clear"> <a href="somelink">A link</a> <input type="submit" name="submit" id="submit" value="submit" /> </div> But at the moment it looks like that: <a href="somelink">A link</a> <div class="clear"> <input typ...

Displaying locale percentage number with Zend Framework

Does anyone know how to display a percentage format based on the locale using the zend framework? I've tried this below and it doesn't work for some reason: $xx = Zend_Locale::getTranslation(null, 'PercentNumber'); // This outputs: "#,##0%" for locale 'en_us' $percentage = Zend_Locale_Format::getNumber(133.3678, array('number_format' =...

Problem With Zend_Controller_Router Static Route

SOLVED! Here is my route definition in the bootstrap file: $router = $this->frontController->getRouter(); $route = new Zend_Controller_Router_Route_Static( 'tipovanie', array('module' => 'default', 'controller' => 'index', 'action' => 'contest') ); $router->addRoute('contest',...

Zend Pdf generation from an action

Hi all, I have a controller Employee , in that i have the action detail . The detail action prints like the attached image. Suppose there is a save pdf button, i need to print this page as .pdf.. How can i do this ? Pls help me Thanks in advance Nisanth ...

Where to put plugins in a Zend Framework website

Hi all, The question is quite simple : I have a controller plugin for Zend Framework. Should I put it in the "library/Plugin" folder, or in "application/plugins". (btw for now it is in library/Plugin but this works on Linux and Mac Os X, but not Windows so i figured maybe that is not the right place) Thank you ...

Bug with audio reCaptcha in safari

Hi all, Can other Safari users please test http://recaptcha.net/learnmore.html for me, to see if the audio reCaptcha plays properly? On my machine, I can only hear the audio if I click the Download sound as MP3 link. I also don't get the spoken introduction at all. It works OK in Firefox and Chrome. I was alerted to this bug on my own...

Use view helpers in controllers in Zend Framework

Hi all, I have a controller that is called with AJAX (sends JSON data), so I don't use a view. I need to use a personnal view helper to format my data, but in my controller. Is that possible ? Or maybe I am doing it wrong (maybe I should have a view, but how with JSON) ? ...

Zend Framework : Subdirectories in controllers directory

Hi all, I'm using the Zend Framework for my website, and just created a special module "api" to create... Well, an API. Now, I have a lot of controllers in my module and I'd like to create subdirectories in this controllers directory in order to "tidy" it. My new structure would be something like this : - controllers/ - controllers...

Context Sensitive Help - PHP Class

All, I have a PHP Web application built using Zend Framework and MVC with MySQL database. I plan to implement Context-Sensitive Help for the application.. I did my research but I didn't find any good pointers on how to achieve this. Can someone point me to a book or a nice reference with example that does this? I see this implemented ...

Getting event start times using Zend_Gdata for Google Calendars

I've been trying to retreive the start times of Google Calendar events with the following code: $query = $service->newEventQuery(); $query->setUser($calUser); $query->setVisibility('private'); $query->setProjection('full'); $query->setOrderby('starttime'); $query->setSortOrder('ascending'); $query->setFutureevents('true'); try { $e...