Questions tagged [zend-framework]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

Multiple object instantiation prevention

I have a class with a private variable used to store an object. I have a function that checks first if that variable already contains an object or not; if not, it instantiates the needed object and ...
herondale's user avatar
  • 145
1 vote
0 answers
2k views

Zend Framework 3 Ajax Form Validation - contact form

I would like to present to you my code vision of Ajax form validation in Zend Framework 3. I am a beginner in Zend Framework and jQuery too, so I don't know that my solution is good and acceptable. ...
bielu000's user avatar
  • 241
2 votes
0 answers
673 views

Zend Framework Form Validation Example

I am a beginner in Zend Framework 3 and I want to hear your opinions about the code that I wrote. I don't know how exactly I can connect forms, and validators together that the code will be quite nice ...
bielu000's user avatar
  • 241
0 votes
1 answer
2k views

Use header application/x-download

Zend framework 1. Physically, the file does not exist, it is created based on database. Okay so use header? ...
Sergynyo's user avatar
2 votes
0 answers
380 views

ZF1 with Monolog

I am currently working in a Zend Framework 1 project. In the project we needed a sort of logging module, and Monolog was requested. Now since I'm quite a beginner with PHP, I'd like to know if I'm ...
MHakvoort's user avatar
  • 121
2 votes
0 answers
50 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 ...
nathanjosiah's user avatar
4 votes
0 answers
199 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 ...
kitensei's user avatar
  • 141
2 votes
1 answer
159 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 ...
Sharikov Vladislav's user avatar
2 votes
1 answer
5k 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 ...
user1578653's user avatar
3 votes
2 answers
274 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 ...
Orangepill's user avatar
4 votes
1 answer
354 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 (...
Eddie Jaoude's user avatar
3 votes
0 answers
106 views

Getting a list of manufacturers from a database

I'm new to Zend Framework. Can you help me optimize this function, which gets a list of Manufactures with some conditions from a database? ...
RDK's user avatar
  • 131
1 vote
1 answer
386 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 ...
Optimus's user avatar
  • 163
3 votes
1 answer
947 views

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. ...
SuperMykEl's user avatar
0 votes
1 answer
104 views

Fetching translated strings, keeping in the philosophy of Zend framework [closed]

I have been wondering this for a while. Take this example: <?= Zend_Registry::get('translate')->_('translate me!'); I have my views cluttured with such ...
Iznogood's user avatar
  • 117
3 votes
1 answer
1k 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 ...
user avatar
1 vote
1 answer
1k 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 ...
YumYumYum's user avatar
  • 141
5 votes
1 answer
2k 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. ...
Optimus's user avatar
  • 163
2 votes
3 answers
385 views

Collecting form errors to be displayed

I have a piece of code that get errors from form and display to view: ...
hungneox's user avatar
  • 171
7 votes
1 answer
2k views

Gmail contacts API connection

I created this class that connects to Gmail contacts, and enables you to add/edit/delete the contact. I'm curious to see what others think of my code. If you see any areas for improvement, that ...
Justin's user avatar
  • 171
3 votes
1 answer
1k 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 ...
Glen Solsberry's user avatar
3 votes
2 answers
210 views

Zend_Application bootstrapper

This seems a bit wrong because there's a lot of business logic going on inside the bootstrapper. Is there a better way to accomplish what's going on here? ...
Billy ONeal's user avatar
  • 1,470
8 votes
1 answer
436 views

Large Zend_Db query

Is there a better way to accomplish the following? ...
Billy ONeal's user avatar
  • 1,470