Tagged Questions

Zend Framework is an open source, object-oriented web application framework implemented in PHP 5 and licensed under the New BSD License.

learn more… | top users | synonyms

1
vote
1answer
66 views

Mongodb Post/Comment use case

I am trying to learn mongodb and decided to build a simple blog application using Zend Framework and Mongodb (using Shanty for ZF https://github.com/coen-hyde/Shanty-Mongo I have the following ...
1
vote
1answer
106 views

Help with Zend Framework getAction method

I am new to MVC and Zend, so I have little idea what I am doing at the moment, but here is my question. The following code is my get method for an API I am attempting to build in order to learn both. ...
1
vote
0answers
310 views

Cubique - datagrid for Zend Framework and jQuery

Some time ago I have started a new open source project "Cubique". It's a datagrid for Zend Framework and jQuery. Currently this project has 120 commits (unfortunately all from me). Can my code and ...
2
votes
1answer
71 views

How to shorten long code but still keep in the philosphy of Zend framework

I have been wondering this for a while. Take this example: <?= Zend_Registry::get('translate')->_('translate me!'); I have my views cluttured with such code. My coworkers also complain often ...
2
votes
1answer
258 views

Zend form parameters - how to change after instanciated

I have a form that I need to resubmit to the action if a checkbox is TRUE. This is to facilitate chained select boxes with javascript turned off. Ideally I would instanciate the form object at the ...
0
votes
0answers
46 views

Showing number of comments for a given post [closed]

This is not specific to ZF but this is what I am using at the moment. Let's take CodeReview page as an example. if you go to here, you will see the list of the questions with their vote numbers and ...
1
vote
1answer
127 views

Browser freeze - How to handle or optimize 50,000 rows in one HTML select element more than several times?

I have an increasing table which already has records of 50,000+. So in a combo box I have to load it, so that it shows which one is selected and its a main record which need to be selected and based ...
3
votes
0answers
485 views

Using ZF2 Event manager to save a model

I have been reading about ZF2 EventManager for some time now and I wonder what you'd think about this approach. class Model_Member extends App_Model_Model { protected $_data = array( 'ID' ...
2
votes
3answers
134 views

How can I improve this code by reducing foreach?

I have a piece of code that get errors from form and display to view: $errors = $form->getMessages(); $msg = ''; foreach ($errors as $error) { foreach ($error as $err) { $msg .= ...
0
votes
0answers
91 views

Where Do I start? [closed]

OK Im studying programming and I know the basics. Now I want to try to develop my own web based CRM (customer relationship manager). My mission is to do this the right way by following the best SDLC ...
3
votes
1answer
462 views

Zend Bootstrap code review

I've been working on putting a new app up against Zend. In my admin section, I want the nav links to only show if the user has rights to see the page. So I set up some Acls. But this doesn't seem like ...
3
votes
1answer
170 views

Zend_Application: Should all this logic be in the boostrapper?

Consider the following bootstrapper: <?php /** * Zend_Application Bootstrapper * * @copyright 2011 Case Western Reserve University, College of Arts and Sciences * @author Billy O'Neal III ...
5
votes
0answers
276 views

Large Zend_Db query

Is there a better way to accomplish the following? /** * Performs an access check given a user. * * @param Cas_Acl_Sid $user The user or SID being checked. * @param Cas_Acl_Privilege $privilege ...