zend

Zend Framework: File Getter Action returns a spurious newline

I'm trying to make an action that returns a file from disk to the user (via little download dialog popup box.) I've got it working great, except somehow a newline is being inserted as the first character. This breaks jpeg and doc files, for example. If I remove the newline from the downloaded file, the files work. I've also looked throu...

Zend_Loader_Autoload setup

I'm running Zend on a XP machine, and i had my neat layout working etc when i changed something (i'm still experimenting to find out what broke it) but for the moment, this is my debug issue atm Debug Warning: /BHAA_ZEND/library/Zend/Loader.php line 165 - fopen(./views\helpers/Doctype.php): failed to open stream: No such file or directo...

cakephp VS codeigniter VS zend framework

Very possibly very related: What PHP framework would you choose for a new application and why? Zend or CakePHP? Which one is better? Some people say CakePHP is better for php 4, what do you think? In my case, I would like the following: Lesser code to write, have really strong library and plugin base. Always have new library ...

Disply php errors when using Zend framework

Hey SO folk, I've been using Zend Framework and just living with this problem for a while, but it's now just gotten too annoying so i'll send the question out to you. There are certain problems within the Zend framework that Zend can recognize (such as calling a nonexistent controller), and will send that problem to the ErrorController...

Zend_Auth_Adapter using a data mapper

First post here so sorry if I seem like a newb, I am trying to find a way to use Zend_Auth_Adapter with a data mapper, but seem to be struggling. I know I can use Zend_Auth_Adapter_DbTable and associate this with a db table, but this seems to negate the whole reason for having a data mapper (I think)?! Should I be creating a custom adap...

Optimizing Google Calendar PHP Code for speed (Zend_GData)?

Hey everyone, I am using the Zend_GData Package to connect to a Google Calendar and do various things such as add/edit/delete events. However, I find that these are pretty expensive operations, and can sometimes take a visible 4 seconds to complete. I was wondering if there is anything I can do to optimize my code and make it faster? Her...

Where can I find a recent version of the Zend Debug Protocol?

I am interessted in using the Zend Debugger. The newest and only document about the Zend Debug Protocol seems to be this http://www.eclipse.org/pdt/documents/PDT%20-%20Debug%20Protocol.pdf document from 2006. Aptana and PDT are using Zend Debug Protocol, or at least have it as an option. Any idea where I can find a more recent version of...

Replace broken encoding

Is there a way in Zend Studio (6/7)/Eclipse to replace all broken characters, when you've accidentally saved a file with the wrong encoding? ...

how to insert a image into Db as blob in ZendFramework.

I want to insert a image in blob format to db. how to write a program in zend framework. a simple form just choose one image and insert into db. ...

Zend Framework Certification Read Material Sample Questions

Can anyone please provide some reading material ( Except Zend Framework Certification Guide ) or Sample Questions and Guidelines for Zend Framework Certification Exam ? Pleas share your experiance regarding the Zend Framework Certification if you have taken the Zend Framework Certification test ? Thanks in advance. ...

Weird behaviour of Zend_Session_Namespace

Follow up to this: http://stackoverflow.com/questions/795414/why-cant-i-pass-user-sessions-between-subdomains I followed the advice there and used : ini_set('session.cookie_domain','mydomain'); (with and without a dot before mydomain) as the first line of index.php in the public folder as advised there and in other links around the we...

Zend_Search_Lucene massive - similar to ZF-5545 issue

EDIT: Solved with a hack for now. Added at line 473: if (isset($this->_termsFreqs[$termId][$docId])) { } This happens only when I'm searching for multiple words, e.g.: +word1 +word2 + word3 I get this massive error: Notice: Undefined offset: 2 in C:\wamp\www\project\library\Zend\Search\Lucene\Search\Query\MultiTerm.php on line...

Using Zend Framework w/o installing it in server root?

I am trying to use Zend's Gbase library, but I cannot figure out how to do so without actually installing it in the PHP path. The complication comes from wanting to make a module for Drupal that is not constrained by the server it is installed on, but can access the library by having it installed in a subfolder of the module. Does anyo...

Regex routers in zend framework,how to make merge these routers?

Hi there, I need to know how can I merge these routers into one? I want to have just one router instead of these ones. I appreciate any answer.:) $route = new Zend_Controller_Router_Route_Regex( '([a-z]{2})/(\w+)/(\w+)/(\w+)', array('controller'=>'index', 'action' => 'index', 'module'=>'default', 'lang'=>$lang )...

How to customize Zend_Tool output?

I'd like to use Zend_Tool (ZF 1.9) with my project, but I would like to be able to customize the default output of new files. For example, all Controllers should have a specific header pre-pended to the output with phpdoc markup and licensing information to avoid me having to add this as an extra step. Also, for this particular project ...

Does Zend Lucene need Java Lucene?

When implementing Zend Lucene, do we need to install Java on our server or not? ...

Zend_Search_Lucene - Can't create directory '/data/users_index'.

I have a problem creating an index with Zend_Search_Lucene. Now, everything works fine on my local machine so I guess there is just an issue with file permissions on the webserver. Here is how I'm trying to create index in controller: $index = Zend_Search_Lucene::create('/data/users_index'); Of course the data directory has permissi...

Zend ViewScript Decorator - Where to place my viewScript

Hey, so I was having trouble with decorators, and finally found the ViewScript decorator which seems to be what I'm looking for. I can't quite figure how to get all the files to point to eachother though, and was hoping you guys could help. In my form, at the bottom, I have my assignment of the viewScript decorator to all my elements: ...

Is it better to set variable in the view or the controller in Zend Framework?

My question needs a bit of setup, so please bear with me: I became a convert to using View Helpers for getting data from a model rather than sprinkling it all over the controllers (hat tip to Eric Clemmons). It's much more reusable and flexible there. I just love it! What I usually do, is lay out the template in the index.phtml, and th...

How to get unique URL identifier after inserting item in Google Base with Zend Gdata API?

I need to get the unique URL identifier for the product that is created after inserting an item into Google Base using the Zend_Gdata_Gbase library. I can't seem to do this. I am finding a startling lack of documentation online about manipulating the objects used in these applications. The url that I add to the object does not work to...