zend

Zend_Form - loadDefaultDecorators :: How to remove decorators label + HtmlTag with loadDefaultDecorators function?

Hi, How to remove decorators label + HtmlTag with loadDefaultDecorators function? My solution - please tell me if my implementation working well or need modifications class MyForm extend Zend_Form{ function init(){ //create form elements ...................................... } public function loadDefaultDecorator...

How to build an inline translation system similar to Magento's

Hi, I am working on a Zend Framework, MVC, enterprise website project. I would like to develop a friendly translation system with the ability to translate each word according its context (sometimes same word have different translation). Zend Framework uses Zend_Translate for i18n and localization. We have also seen Magento's (which use...

Validate with Zend_Validate_Date on a time string.

Hey all I'm trying to validate a 'time' field using Zend Framework. The docs seem to be pointing out that the following: $tstarttime = $form->createElement('text','t_start_time'); $tstarttime->setRequired(true) ->setLabel('Start Time') ->addValidator(new Zend_Validate_Date('H:i')); I've tried this but no luck. Any ideas or a...

Zend Framework choose controller from Plugin

Is it possible to choose controller from Plugin? For example I have table of departments and categories in database. I'm fetching them and want to make certain actions(picking controller and action). The reason - I don't want to create sepparate controller for each department and action for each category. ...

Zend_Tool & Zend_Forms inside a module

Hi everyone. Here's my problem. I'm developping an application using ZF 1.10.0, and I have a module called Backend. I need to create a Form for that module. But the damn Zend_Tool won't let me make it inside the modules/Backend/forms folder. Is it necessary to put it there (meaning I'll create it manually), ou should I let Zend_Tool cre...

Zend php 5 certification

Possible Duplicate: Zend PHP5 Certification, does it matter? Who passed this exam and how it helped employment? Is it difficult to test? Duplicate questions from The Zend PHP Certification Practice Test? ...

Can't get Zend pdf show in browser

Hi, I've got a strange problem with zend pdf, I just can't get the pdf to show in my action i've got this code: $this->_helper->layout->disableLayout(); $this->_helper->viewRenderer->setNoRender(); $pdf = new Zend_Pdf('path/to/file.pdf'); $this->getResponse()->setHeader('Content-type', 'application/x-pdf', true); $this->getResponse(...

How can I get the description of a select multioptions tag in ZF?

How can I get the description of a select multioptions tag in ZF? If I do this, then I recieve the value, but a want the description $subjectTitle = $feedbackForm->getValue('subjecttitle'); ...

Zend Join Models

I have models of my tables and would like to do a join using a model as opposed to to a table. For example, instead of: $select = $this->select() ->from(array('p' => 'products'), array('product_id', 'product_name')) ->join(array('l' => 'line_items'), 'p.product_id = l.product_id', ->limit(20, 10); where I specify the table na...

Prevent zend framework tool from adding new models to module

Hello, How can i prevent zf-tool from creating models in module directories? When i add a model using The Zend Framework Tool (1.10.6) as follows: zf create model test zf creates my test model in the application/modules/admin folder. can someone tell me how to create a model in the default models map? As far as i know, the admin m...

Doctrine Record Listener

I have a listener which contains a preSave() method. Is there a way for me to halt doctrine from calling the save method if a condition fails. Unfortunately I am not allowed to throw an exception. Is there any other way? ...

Zend Framework: Difference between View Partials & Helpers

partials and helpers seem to do similar things to me. only the way u use it, syntax, is different, so my question is whats the difference and when do u use one over the other ...

Zend Framework: Check if Zend View Placeholder isset

how can i check if a Zend View Placeholder isset before echo-ing it out? as i am wanting to prepend " - " to it before outputting it. i tried echo isset($this->placeholder("title")) ? " - " . $this->placeholder("title") : ""; but i got Fatal error: Can't use method return value in write context in D:\Projects\Websites\php\...

Zend_Form: Duplicate decorator IDs on subforms

I'm using Zend_Form from Zend Framework 1.10.6 to render a html form. In this form 'z', there's a subform with a field 'a'. The subform is added to the main form twice, once with the name 'x' and once as 'y'. Below is the html rendered by the Zend_Form-object. <form id="z" enctype="application/x-www-form-urlencoded" method="post" actio...

Creating Zend_Form elements from row html

Hi there, I am having an issue with Zend_Form and your help will be appreciated. in fact I have a class to generate categories as options $categories = My_Util_Category::toHtmlSelect();//for simplicity I removed other lines this code generates <select> <option > root</option> <option> root / children</option> </select> On ...

zend framework with spatial

Hello All, Im using zend framework with mysql, im using Zend_Db_Table_Abstract to run queries. i have spatial field in a table : country; +------------+---------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +------------+---------+------+-----+---------+----------------+ | id...

How do I bootstrap for unit testing with Zend MVC and Zend_Test?

I have read many posts about setting up unit testing in Zend Framework and I simply have not been able to get even one simple unit test to run. The issue is with setting up and testing the bootstrap environment. I tried the simplest of ways using the ZFW docs, but I always get this error: Zend_Config_Exception: parse_ini_file(/usr/l...

Zend View Helper strange issue

Hello everyone, I have been working on a zend framework project on localhost (OS: Snow Leopard) and when I uploaded the files on the hosting server (shared hosting) I got some errors about a view helper i was using there. More specifically: The project structure is like this: ( i ommited some irrelevant subfolders and the numbers in th...

Zend Framework and MSSQL database

Hi, Is it possible to take advantege of MSSQL in Zend Framework? I tried run my zend server with pdo_mssql, sqlserver and odbc and failed each time. Did you menage to use Microsoft database in your project? Kind Regards, ...

How do I set the mime type in zend framework?

I would like to set the repsonse mime type to application/xhtml+xml How and where do I set that in Zend Framework? Thanks for your help. ...