zend-framework

Using Zend Framework and Doctrine with independend modular structures

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 ...

zend-framework versus Kohana versus Symfony

Which one of this frameworks would you recommend to someone who knows the basics of PHP? What are the advantages and disadvantages? ...

How to remove Zend Form error messages?

I have changed decorator: private function _addErrorDecorator($form) { $form->setDecorators(array( 'FormElements', new Zend_Form_Decorator_FormErrors(array ( 'ignoreSubForms' => true, 'markupElementLabelEnd' => '</b>', 'markupElementLabelStart' => '<b>', ...

How to convince fellow developers that the in-house framework is no good

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...

Zend Pdf. Writing Text into a cell. Any MultiCell() function in Zend?

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? ...

Zend Routes conflict

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...

Zend_Form filters rewrite or route - I want a readable URL

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/...

ZendFramework cuts strings from first non a-z char when inserting to mysql

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...

Zend AMF implementation and AMF protocol security

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...

Zend Date is giving me fatal error msg...

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...

Zend Framework with PHP, changing class labels

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...

Zend Framework routes with Zend_Config_XML

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...

Zend Framework controller load failure puzzle

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...

How to reencode url parameters with Zend Framework

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...

HTML snippet within Zend_Form

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...

How to create PDFs using zend framework ?

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 ...

Zend Framework: How to include an OR statement in an SQL fetchAll()

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...

How to SAFELY include a file for use with use with Zend_Reflection?

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...

Zend tool include path

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...

which one is easier in in learnning curve Zend Framework or CodeIgniter?

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. ...