I've seen a lot of articles about integrating ZF and Doctrine. There is also a proposal for ZF here but they have always two possible structures. Either they put all models into one top level model directory or they put it into a module related model directory.
application
|-- Bootstrap.php
|-- configs
|-- controllers
|-- models ...
Which one of this frameworks would you recommend to someone who knows the basics of PHP?
What are the advantages and disadvantages?
...
I have changed decorator:
private function _addErrorDecorator($form)
{
$form->setDecorators(array(
'FormElements',
new Zend_Form_Decorator_FormErrors(array
(
'ignoreSubForms' => true,
'markupElementLabelEnd' => '</b>',
'markupElementLabelStart' => '<b>',
...
Here's the story:
I have moved to a new job 3 months ago. The development team consists of 5-6 people, with one lead developer.
All of the projects here are "one-man-jobs", there are no tasks requiring teamwork, everyone works on their own.
Management wants us to use an in-house framework, so that the projects where there will be more t...
I'm trying to write text to a pdf. But if the text is long enough it overflows from the page. Is there any way to write text into a text box.For fPdf there is a MultiCell() function. Is there any such function in Zend?
...
I have defined 2 custom routes. One for threads/:id/:name and the other for threads/tags/:tagName however the second one conflicts with the first because if I enable both then the first breaks and treats :id literally as an action, not obeying the \d+ requirement ( I also tried using pure regex routes, see bottom ).
Action "1" does n...
I have a form created with Zend_Form and I would like to setup a Route for the submission, so that instead of the user NOT seeing his URL change OR seeing the URL change to a complicated GET string, it will change to reflect the filters.
BAD:
/products
BAD:
/products?color=white&size=large
GOOD:
/products/white/large
GOOD:
/products/...
Hello !
When I insert some data with Zend_Form to database with non a-z characters like chrząszcz it cuts me this string and in database I have saved only chrz.
Everyting in MySql is set as utf8_general_ci, when connecting with MySql I call SET CHARACTER SET 'utf8', files are also UTF-8.
I have no idea what to do with that.
I wrote a...
I have a Flex frontend connecting via RemoteObject to Zend Framework's Zend Amf. This is my only means to transport data between client layer (Flex) and the application and persistence layers (LAMP with Zend Framework).
Some ways I can address security are as follows:
I can address TLS by using mx.messaging.channels.SecureAMFChannel in...
I just want to use a few classes Zend offers, Zend Date, Zend Mail, and a few others, but I can't get the date one to even do anything. I've included it this way:
include_once '../classes/zend/library/zend/date/DateObject.php';
$date = new Zend_Date(time());
Here's the error: Fatal error: Class 'Zend_Date' not found
Do I have to go t...
I am using Zend Framework with Dojo to make tab containers. I need for the dt tags to be createEventForm-waiverDetail-addElement-label instead of addElement-label. However I cannot figure it out. You can see them as the id in the following code snippet
http://pastie.org/780362
I have looked and looked for this. I think it may be so...
Hello,
I need to convert my existing routes.ini file to an XML file (my host disabled parse_ini of PHP). Anyway, I couldn't find proper examples so I tried my luck using the conventional Zend_Config_XML structure. See below:
<?xml version="1.0"?>
<configdata>
<routes>
<Home route=":locale/">
<defaults controller="index" action="i...
Hello, all :)
I have a .htaccess file that looks like this:
SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
If I browse to my site I'm testing with, say ht...
I use the following code with my Zend Framework application:
controller:
$paramsOtherAction = $this->getRequest()->getParams();
$paramsOtherAction['action'] = 'otheraction'
$this->view->paramsOtherAction = $paramsOtherAction;
view:
<a href="<?php echo $this->url($this->paramsOtherAction)?>"> Do other action with same params </a>
T...
I'm using Zend_Form as part of a simple signup process. In part 1 of 2 the user is able to upload a number of images. In part 2 - for each one of these images - I ask the user to add further details - an additional 4 text fields grouped together using addDisplayGroup. Within each display group I want to display a thumbnail of the uploade...
I have some data in a text area and there is a link 'create PDF'. When a user click 'create PDF' link, the data should be printed on an PDF and download window of browser should appear to download that PDF. Any Idea ?
Thanks
...
I am trying to build the following SQL statement:
SELECT users_table.*, users_data.first_name, users_data.last_name
FROM users_table
INNER JOIN users_data ON users_table.id = user_id
WHERE (users_table.username LIKE '%sc%')
OR (users_data.first_name LIKE '%sc%')
OR (users_data.last_name LIKE '%sc%')
I have the following c...
I'm using Zend_Reflection to generate an extended format set of ctags for use with my text editor. The problem is that you have to include any files that you wish to process.
The constructor for Zend_Reflection_File checks to see if the file you wish to reflect has been included, and if not it throws an exception:
// From Zend/Refecti...
Hello,
Is it possible to install and use ZF (+ its console tool) without access to include_path direcotory? I've tried adding the ...Zend/library direcotry into include_path but without success.
I did it this way:
php -r 'set_include_path(get_include_path() . PATH_SEPARATOR . "/var/www/.../Zend/library")';
After var_dumping result o...
I am attended to develop with framework.
so, I'm Very confused, about which easier in learning curve to start develop with..
that I need to develop a project using a framework as soon as possible.
...