zend-framework

Why won't Zend_Dojo enable/import properly?

I'm having a strange issue: I've used Zend Dojo and Zend Form to great effect in the past, but on my most recent project Zend_Dojo refuses to enable unless forced to in the view, and even then won't import the appropriate libraries for the dijits I'm using. Here is the applicable code: Bootstrap.php: protected function _initViewHelper...

Does CakePHP play nice with Oracle? How about other frameworks?

I'm just investigating some frameworks (CakePHP particularly) for a PHP project I'm about to start, and it must run on Oracle. A quick googling found that Cake doesn't come packaged with Oracle support, and that there is a driver someone wrote, but that was back in April 2007, so I don't know how valid the information still is. Has any...

Zend_Form and decorators : how to insert html tags on a multi options radioform ?

I'm currently trying to use Zend_Form, and it's decorators mechanism, in order to output some well formated HTML, but I don't manage to have the wanted output. Concretely, I have a radio button form element (Zend_Form_Element_Radio), with a multiple option registred in it, like this: $codeHolder = new Zend_Form_Element_Radio('radiobutt...

Beginners php developer does using LiveDocx white Zend Framework is cpu resource eater ?

Hello all im beginner in the php world i need to build option in web application that can convert well defined structures into rtf/pdf from txt/html i found using this site search about LiveDocx php component that is dependent on Zend Framework now im not familiar white the php engine ( the parser ) so im asking you experts is it good...

Connecting to MySQL using zend

I've set up a virtual host on my local machine myhost.com, have installed zend there and am now trying to connect to the MySQLdatabase. I get the following error message: Message: SQLSTATE[HY000] [2003] Can't connect to MySQL server on ''myhost.com'' (10060) All the tips I've found via google haven't helped. I use kaspersky antivir...

Time difference between two date's

I'm sure this is easy but it has had me stumped for ages. I need to compare two dates and only return the hours and minutes difference. Thanks for any ideas :) ...

How to update a relational table ?

I've 3 tables. Users (id, mail, username, etc..) Practices (id, name) UsersPractices (userId, practiceId) The last one is the relational table which is n-n. I'd like to update this one, depending on the user's will. It means, that he could want to add, or remove some his practices. What algorithm could i use to do this ? Should i...

Opcode (APC/XCache), Zend, Doctrine, and Autoloaders

I am trying to use either APC or XCache as an opcode to cache my php pages. I am using it with Zend and Doctrine and it's having a problem with the autoloader. If I try with APC, I get the following: Fatal error: spl_autoload() [<a href='function.spl-autoload'>function.spl-autoload</a>]: Class Doctrine_Event could not be loaded in ...

Communication between two subdomains. Zend Framework.

Hey all, I'm adding a bulletin board to my Zend-driven site, and am using an open source one called Phorum. While it would be theoretically possible to integrate Phorum into my Zend site, it's already self contained, and not designed to run through a controller. My solution was to make a sub-domain for Phorum, which worked quite well...

Zend_Form with xthml scripts (without using decorators)

(I follow this post to got the logic how to use Zend_Form without using decorators.) within the action I create Zend_Form object and assigned the form to the view before rendering it: public function indexAction() { $form = new Zend_Form(); $form->setAction('process') ->setMethod('post'); $username ...

what issues are there with upgrading Zend Framework to 1.9.1 from 1.7.6

Hi, I'm working on a project that is currently using the Zend Framework 1.7.6, however the current release of the framework 1.9.1 has some features that would really make my life a little easier, so I want to update the framework. As this is quite a jump I know that it is going to break parts of my application. Items such as the boots...

Zend_Navigation caching

Hi I'm having trouble with the page hierarchy of Zend_Navigation getting scrambled when I cache it using Zend_Cache. Background: I have approx 50 pages and approx 300 products stored in a database. I query the database and create an array to feed to Zend_Navigation. The cache is $secondsBetweenRefreshes = APPLICATION_ENV == '...

Serving files from SQL Server through Zend

I am storing files into an image field in SQL server storing the string in hex after converting into using: unpack("H*hex", $datastring); If I read from the database and write to a file, then open the file locally I can open it up just fine. But if I try to send the file as an attachment to the browser the file becomes corrupted and u...

Requiring classes in Zend Framework based library.

Simple question. Why use require_once to include classes that you use within a file? For example, if I create a class that extends Zend_Db_Table_Abstract, I don't really need to have this in the class declaration file: require_once "Zend/Db/Table/Select.php"; They are included by the auto-loader anyway. Is there a performance gain for...

Zend Framework Certification

Hello, I have read the answers to a question asking whether Zend PHP certification is worth the effort: http://stackoverflow.com/questions/165999/zend-php5-certification-does-it-matter I was wondering whether anyone has completed the Zend Framework Certification? Is it worth doing? I know they have a 'Yellow Pages' directory of certif...

PHP: Failed to open required file that exists

I am trying to include the Zend_Service_Amazon_S3 file by using require_once 'Zend/Service/Amazon/S3.php'; I have also included in the include path the directory where the entire Zend library is located, AND the installation is inside Zend Server CE (which includes the Zend Framework by default). However, no matter what I try, I only ...

dynamic menu in Zend Framework

Hello friends. I'm looking for how to make a dynamic menu (the data are brought from a database) and the menu, looks around the site, in all modules and controllers. What would be the best option for this? thanks friends. ...

How to get the dispatched route name in Zend framework ?

Current state: A router is loaded from xml file two route name within the router are going to the same controller and action, for example: www-language-employee and www-language-trainer are going to the same controller and action --> EmployeeController & listemployeeAction Problem: - Need to know which route name is dispatched/being ...

How could I customize Zend_Tool to provide my own skeleton/template ?

Zend_Tool is nice, it generates a project with a given name & a given path. But after a while, i started to develop my own tools, like helpers, plugins, validators, etc... I put them all in library, which is ok (and recommanded). But, i would have to start my project with the same bootstrap file, including initialization of my plugins...

Set cols attribute for Teztarea in ZendForm

Hello, This is my code to display a textarea in zendform. I show fine textarea with desired rows but if i set attribute for cols it does not add columns in it. Code is this: $element = $this->CreateElement('textarea', 'description'); $element->setAttrib('rows', '4'); $element->setAttrib('cols', '8'); $element->setLabel('Comment'); ...