Zend Framework 2 is a PHP 5.3+ MVC framework and component library.
-4
votes
0answers
21 views
Does Zend framework2 and symfony2 have any resemblance? [closed]
I have started with ZF2, its structure looks like symfony2. what is the difference b/w both ?
0
votes
3answers
13 views
Failed to open - Zend Framework
Warning: require_once(Zend/Application.php) [function.require-once]:
failed to open stream: No such file or directory in
D:\xampp\htdocs\obsessa\public\index.php on line 17
Fatal error: ...
0
votes
0answers
4 views
ZF2 populate form collections element with child objects
Based on the Zend Framework 2 manual (here) I made a form like this:
class ParentForm extends Form
{
public function init()
{
$this->setName('parent_form')
...
1
vote
0answers
12 views
Zend framework 2 recommended way for error handling
I noticed that the Skeleton Application that Zend provides does not handle error 500. I know that in ZF1 there was an ErrorController that took care of that. I have done some research online, but did ...
0
votes
1answer
31 views
How to customize checkbox group in Zend framework-2 form?
Actually I can not understand, how zend framework 2 generate HTML for a form element. For example,
$others = new Element\MultiCheckbox('others');
$others->setLabel('Others')
...
0
votes
0answers
11 views
ZF2 catch all domain exception
How can I catch an exception which was thrown from any where in the application and redirect user to, say to an error page.
For example I am implementing an ACL module which checks if resource exists ...
0
votes
0answers
9 views
zf2 Fieldset ignores naming
I have the following problem:
I created a fieldset and included it to the form using the following add statement:
// get dynamic additionals fields
$this->add(array(
'type' => ...
0
votes
0answers
20 views
ZendFRamework 2 modules
I have been programing with ZF1 and there is a feature I can't found or I'am confused about it. For example one of my current app in ZF1 has this directory structure:
libray
app
-Bootstrap.php
...
1
vote
0answers
23 views
Unit Testing Controllers in PHP - Should I mock everything?
Basically, i have an application written in Zend Framework 2.
My Controllers are pretty good tested, and while i made this experience i asked my self:
"Should i mock everything i can possibly mock?"
...
2
votes
0answers
28 views
ZF2: configuring new abstract factories
In Zend Framework 2.2.0, a bunch of new abstract factories have been added. I want to configure a database logger, but I am not sure how to do this. The link gives the following example of configuring ...
0
votes
0answers
17 views
Redirection from ZEND framework 2 Controller's Contructor
I want to check for user id in the the constructor of my ZF2 Controller and if it is not defined then want to redirect to any external URL or to other controller i have tried
...
-1
votes
2answers
42 views
where to start a new web project [closed]
I am about to start my first web project and I will use zend framework 2 for that.
the project consist in creating a website with an application embeded. The application will be handling user access. ...
0
votes
1answer
23 views
Zend Framework 2 remove hard coded path from unit test
I'm just going through the Zend Framework 2 unit test tutorial. During the process of setting up the unit test they insert a hard coded path to the application config in the setUp method:
namespace ...
0
votes
1answer
28 views
ZF2 : paramaters coming from route are cleared after submitting a form
I'm using AbstractTableGateway and HydratingResultset to do db operations. (with BjyProfiler)
when i post my form data with add action it works, but edit action doesn't work. when i make a bind it ...
0
votes
2answers
33 views
Getting the service locator anywhere in ZF2
According to this article: http://www.maltblue.com/tutorial/zend-framework-2-servicemanager
The ServiceManager is "in short a simple application registry that provides objects". So, I would think ...