Zend Framework is an open source, object-oriented web application framework implemented in PHP 5 and licensed under the New BSD License.
1
vote
0answers
139 views
Zend Framework and Doctrine 2 - are my unit tests sufficient?
I'm quite new to Zend and unit testing in general. I have come up with a small application that uses Zend Framework 2 and Doctrine. It has only one model and controller and I want to run some unit ...
2
votes
0answers
38 views
Is my controller for editing information about videos doing too much?
My project uses Zend Framework 2.
I'm trying to determine if I am doing too much in my controller as a rule for my development. I have built my controllers like this for a while and haven't run into ...
4
votes
0answers
76 views
Zf2 and doctrine model implementation
I've implemented for the first time Doctrine-ORM on my SOAP server application; can you tell me if I could optimize some of the written ORM-related code?
More specifically, is it a good practice to ...
1
vote
1answer
214 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).
I have the following document for Post
...
3
votes
0answers
88 views
Getting a list of manufacturers from a database
I'm new to Zend Framework. Can you help me optimize this Model function, which gets a list of Manufactures with some conditions from a database?
...
2
votes
1answer
102 views
Does my controller code look good?
I read many times about controller code mustn't be too complicated and so on. I was developing new features in my simple project. I added a function, which allow users to get access to news only in ...
4
votes
1answer
248 views
ZF2 Model Mapper
In the ZF2 model mapper, mappings are quite often duplicated in the original mapping class & other mapping classes.
I am using a static mapping methods (...
5
votes
1answer
1k 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.
...
3
votes
1answer
881 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 ...
2
votes
1answer
3k views
Advice on Zend Framework 2 and Doctrine
I've just started looking at Zend Framework 2 and Doctrine ORM, with a view to possibly using it in one of my future products. So far I have a very simple application which allows the user to select ...
3
votes
2answers
175 views
Potential Problems with this templating technique
I like the way Zend Framework works it's views and I make extensive use of partials but every partial include results in it's own file system hit. As I'm building my own framework I thought I could do ...
3
votes
2answers
198 views
Zend_Application: Should all this logic be in the boostrapper?
Consider the following bootstrapper:
...
8
votes
1answer
398 views
1
vote
1answer
355 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 ...
2
votes
1answer
533 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. ...
2
votes
1answer
86 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 ...
3
votes
1answer
888 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 ...
2
votes
3answers
264 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:
...