zend-framework

PHP Frameworks - Layout Dynamic Menu

I am developing a website in PHP and I would like to use a mvc framework to do this as I want to gain experience with PHP frameworks. I have looked at Zend, CakePHP, and CodeIgniter and I have not been able to find an intuitive way to accomplish this. What I need to do is create a layout that will be for example: <html> <head> <!--scr...

What is Zend's console? When do you use this console?

Does any one know what is the use of Zend's console? any sample program ? ...

Zend_OpenId_Consumer login function hangs - even in the sample code

I've been trying to get a simple OpenId log-in working using first php-openId (Jain) and then the ZendFramework, and in both cases I run up against a similar problem. I'm using the example Zend code from step 38.2.2 of http://framework.zend.com/manual/en/zend.openid.consumer.html. I see the log-in page fine, but when I enter my openId, ...

setting a default value in a dojo filteringselect

Hi, I'm trying to get a filtering select work with a Dojo enabled form using the Zend Framework. The form allows the user to update their details such as address, urls etc for their profile. However elements in the form are using a filiteringselect for things such as country and state/county. I want to get this to default with the va...

Zend Layout and Bootstrapping

So i'm using the standard Zend Layout for my site. I have a number of custom controllers and views, and the content of these pages is displayed, but the details in the head element of the layout.phtml are not shown. Do i need to manually associate the Zend_Layout with each specific controller?. I expected since the layout is loaded via t...

Zend_Auth: why authenticate object named adapter and not strategy?

$Zend_auth->authenticate($adapter); Why is it called an adapter and not a strategy? ...

Zend_Pdf Add text link to pdf page

Is it possible to add anchor text(link) in Zend_PDF page? I wasn't be able to find any information about this in Zend_Pdf online manual, or reading code, so I guess it is not possible. If there is way, please suggest! Thanks! ...

Why am I not getting the exception I expect in Zend Feed when a feed is misentered?

Basically, we have this here module that we offer to our users that want to include a feed from elsewhere on their pages. I works great, no sweat. The problem is that whenever users mishandle the feed link on their hands we have to manually remove the module from existence because Zend Feed crashes and burns the entire page just like any...

Zend_Progressbar + JQuery + uploading a video

I would like to show a dynamic progressbar in my applciation while uploading a video (*.flv format). I searched on the Web for more than 2 hours but I can't find any tutorial to guide me through this process. What I have so far: script that uploads a video jQuery library included in the section But what to do next? Here is the cont...

Zend Framework Grid

Can anyone recommend a good Zend Framework friendly table/grid API? I'm developing an information management system and I need a component where I can display all/some of the records, and provide paging, search, sorting, and link to various actions. I've been looking into Dojo with (dojox.grid.Grid) and it just doesn't feel right to me...

How do i remove the label decorator from a submit button

In my form i have this code; // Add the submit button $element = $this->addElement('submit', 'submit', array( 'ignore' => true, 'label' => 'Add new material' )); $element->removeDecorator('label'); However the form still renders with the label element between the tags. What am i doing wrong? ...

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

Zend framework with GWT?

I have been experimenting with GWT recently and I really like it and would like to use it. Problem is I don't use Java on the server side, but PHP Zend Framework. Google shows up nothing, so I am asking here - is anyone using the two together, what are the best practices (ProtocolBuffers, gwt rpc...). Is it possible at all with current...

Joining Tables With Zend Framework PHP

Hi, I am relatively new to the Zend Framework. I understand the usage of Zend_Table and can obtain data using the Zend functions from the table associated with that class. For example I have a video table and in another table I have the association between the video and what category it is in. Im a little stumped how to active a sele...

Making correct use of chained routes in Zend Framework

I'm working on a multilingual site using the new Zend Framework (1.8), but I'm running into some trouble with the URL routing. It might be that I interpreted its meaning incorrectly, but well, never too late to learn. So, what's basically happening: The site consists of several parts, e.g. 'devices' and 'articles'. The plan is to form t...

Zend Framework Model

Hi... is it posible to have a true Model Layer in PHP like in Ruby on Rails? With Zend Framework you can create a Model but this is a class. As I know you have to write all the logic by myself. Solutions? ...

Can't return a result set in the given context

When ever I try to call store procedure in mysql that sends back a result set, it keeps saying me that "can't return a result set in the given context". I've google it and some said it's mysql bug, some said you should change your mysqli driver and .... Situation : Using mysqli driver Client API library version 5.0.51a , PHP Version ...

Zend Framework User Authentication

What is the best practice for user website/REST authentication in ZV MVC? How and where to put the code in the ZF framework? Can you provide me a code example? I have a website and a REST server written in Zend Framework but no user session jet implemented. THX! ...

Launching a custom view from a custom model. Zend_possible?

You have to promise not to giggle, but my situation is following: Instead of using partials and helpers and other similar tools that we use already, we want to use a custom view outside all frames and borders of the actual application. Basically, we need at this point to load clean HTML into a variable upon a certain reaction a model. T...

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