zend-framework

Zend ViewScript Decorator the big picture, overall use.how to?

Hello! It's true I've seen a lot of examples on stackoverflow and many from Google search but apparently nobody showed the big picture of how things falls under one another, even from the manual itself. I've just picked Zend Framework(1.10.8) and when creating forms I've finally found that the ViewScript for now is much easier for me...

Is Zend Framework inspired in other frameworks or ideas?

There are a lot of PHP frameworks inspired by Ruby on Rails (CakePHP, Akelos, symfony). Is Zend Framework inspired in other frameworks or ideas? Do you have references (websites, books, etc) talking about it? Thank you. ...

How to Zend Framework with Propel ORM

I'd like to integrate Propel with Zend framework. I've seen the integration of doctrine in the past but this post says it seems propel is done a bit differently. Propel has two things going for it already: the first is that Propel includes its own autoloader, meaning that I didn’t have to try and force Propel into Zend Framew...

Zend Form Decorators Error in Table

I am using the next decorators for my input. I want to make this as table. $this->setDecorators(array('ViewHelper','Errors', array(array('data'=>'HtmlTag'), array('tag' => 'td')), array('Label', array('tag' => 'td')), array(array('row'=>'HtmlTag'),array('tag'=>'tr')) )); But after form validation Er...

Zend Navigation - Url config problem

Hi, I store my navigation content in a navigation.xml file in the configs folder of my project. Basically I have two modules, the default module that deals with e.g. authentication and basic page usage and the admin module to admininstrate the website. When I sign in as admin a special admin navigation appears according to my acl and...

Submit button falling out of fieldset when using displayGroup in Zend Framework 1.10.8

I have tried all the combinations I can think off but this form: class Form_Login Extends Zend_Form{ public function init(){ $this->setMethod('post'); $email = new Zend_Form_Element_Text('email'); $emailValidator = new Zend_Validate_EmailAddress(); $emailValidator->setMessage('Please use a valid em...

Syntax for rendeing a zend form in a non zend project

I'm using zend form in a non-zend project and I'm able to access Zend_Form fine from my custom class Custom_Form. Then in the file where I want to render my form, I create an instance of my form, but then I'm not sure how to render it. $form = new Custom_Form(); //how to render the form here var_dump($form); //var_dump looks busy so cou...

color coding of .phtml Zend framework files in Dreamweaver 8 win7

Hi, I am using Dreaweaver 8 in windows 7. Problem is that i cannot see color syntex coding of phtml files. How can i ??????? Thanks in Advance. ...

Installing the Zend framework

Based on recommendations on SO for the Zend framework, I'm planning to use it for a client's project. However, my client requires that the project should run on both Yahoo! Small Business and GoDaddy hosting. Can the Zend framework be installed on these types of hosting, which are neither VPS nor dedicated? ...

Is it possible to load all Zend_Form_Element_* with one statement?

I'd like to load several form elements like Zend_Form_Element_Text with one statement. Is there a way to do this with a * wild card? ...

Scaling a PHP website

Hi, Is there a standard solution to scale up a website which runs on PHP + Apache web server ? As in I get a traffic of about 100,000 requests/day as of now. 6 months down the line I expect it to grow to 200,000 requests/day. The first cut solution which comes to my mind is deploying more Apache web servers with mod_php, but something s...

zend code hinting in a non-zend project?

I'm trying to get code hinting in eclipse for zend in a non-Zend project. The code works fine, but all I'm getting for code hinting is Zend_5250_. Is there something I need to do to get those code hints? ...

Zend form multiselect repopulate after validation error

Hello, I have a Zend form multiselect element which I am creating like this $this->addElement('multiselect','somedates',array( 'filters'=>array('StringTrim'), 'required'=>true, 'label'=>'Dates', 'style' => 'width:14em', 'size'=>'4', 'RegisterInArrayValidator' => false, //otherwise it gives an error ));...

how to develop module based application in zend?

Hi all, I am new to zend, i need help in creating zend application using modules. please help thanks ...

Zend framework, gettext, poedit and human language in which key strings are written

I'm writing a website using ZendFramework and decided to use the gettext system to internationalize its content. In my views I write string in french and provide a this moment only one file "en.mo" to translate sentences to english. I would like to avoid to maintain a file "fr.mo" which would only translate a sentence to the exact same s...

PHP mvc vs layered design

Hi, I have some questions regarding MVC that I would like to clarify. At our company we use two in-house developed frameworks for building PHP applications. One is an MVC framework while the other uses a 3-tier design with a presentation layer, a logic layer an a data access layer. We find the 3-tier design more "object oriented friendly...

Zend Framework paginator force $_GET params usage

Is it possible to use paginator with $_GET parameters? For example i have a route like this: $router->addRoute('ajax_gallery', new Routes_Categories( '/:lang/:category/age/:dep/:cat/:towns', array( "page" => 1, "dep" => 0, "cat" => 0, "towns" => 0 ), array( "dep" => "[0-9]+", "cat" => "[0-9]+" ) )); And i'm making request like this ...

Zend Paginator - Page Links

Hi, I have a working paginator. I combine Zend Paginator and jQuery to switch between pages. My problem is that the page links only have a range from 1 to 10 but it should be e.g. from 1 to 13. I can get to page 13 by clicking the forward button but the page link 13 is not displayed. Paginator setup: $paginator = new Zend_Paginator (...

How to configure Ant in netbeans 6.9 for my zend framework project

Hello, I switched to net-beans 6.9.1 to develop my php zend framwork projects. Now I want it to work with ANT. I have already an build directory with an build.xml. Can someone tell me how to configure and run my ant scripts from within netbeans? ...

How to capture a Zend view output instead of actually outputting it

Problem: sometimes in our zend controller we don't want the script to be output directly, but rather want the content of that script. One example: when we need the result html output of a view script be included in another structure like JSON or XML for processing in the client side. I found the result here at stack overflow, but not so...