zend-framework

Zendframework link problem

Hi All I am very to new to zend frame work , I am trying to set up a project (Done by other programmer) in my local server, but in this project the all links to another are not working? Plss help me!!!!!!!!1 ...

Zend Models not being found

I'm having a strange problem with Zend. I have an application that works great on localhost, and can access it from outside using my IP address as well. When I move it to our staging server, it fails to load any of the classes. I am using autoloading with a modular structure. All the models are in the Default module, then the models ...

Framework Comparison and Overhead

I am working on a Facebook game which is developed using Zend framework. Right now I don't have lots of traffic and already seen quite a large # of data usage / CPU time. Actually, I'm not good at Zend. I good at coding from scratch for both PHP & JS. so, I am curious about the performance of Zend framework. becuase I'm thinking about...

Framework Comparison and Overhead

I am working on a Facebook game which is developed using Zend framework. Right now I don't have lots of traffic and already seen quite a large # of data usage / CPU time. Actually, I'm not good at Zend. I good at coding from scratch for both PHP & JS. so, I am curious about the performance of Zend framework. becuase I'm thinking a...

can zend_form be used with pagination?

Hi, I am not sure if this is the most sensible way of doing this but I thought I would ask anyway. I have a 'wizard' that I am developing for users to review data that is stored in the database. Each part of the wizard is a simple Zend_Form allowing the users to review and edit the data. However one element of the wizard needs to be a...

How to disable layout inside a plugin ?

Here is what i'm trying to do <?php class My_Controller_Plugin_SomePlugin extends Zend_Controller_Plugin_Abstract { public function preDispatch(Zend_Controller_Request_Abstract $request) { $this->_helper->layout()->disableLayout(); } } but it doesn't work, any ideas on how could i disable the layout inside a ...

Dynamically add a Dojo-enabled Element in Zend

I'm writing a form using Zend_Dojo_Form. Everything goes fine, unless I dynamically insert elements into the form (using ajax, the user can add more elements by clicking a [+] button). I managed to insert my new Zend_Dojo_Form_Element_FilteringSelect into the page, but the element isn't dojo-enabled (no auto-completion, or tundra styli...

All Links and forms are going to 404 error page

Hi All, In my project all links and form submission are goes to 404 error page, but i can see all pages in browser by typing direct URL in address bar, also the CSS and JS files are not affecting the pages, How to fix this issue? Pls help me!! ...

Zend_Form from ini, set multiOptions with string values

I'm trying to configure a form for Zend_Form using Zend_Config_Ini, and wish to set the options for a select element in the .ini file. This works fine for options with single string values, i.e. user.exampleform.elements.subject.options.multiOptions.example = "Example Label" However, I can't work out how to use a string for the value...

Passing additional parameters to the Zend partialLoop View Helper

In a Zend view I can apply a partial template to an iterable element as follows: $this->partialLoop('template.phtml', $iterable); However inside the template, only the elements of the $iterable are available, is there another way of passing extra data to the partial? ...

Running a premade bulletin board through my Front Controller in Zend

Hi all, I tried to ask this once, but I think that my former question was too unclear for you guys to answer, so I'll try again I'm making a website using the Zend Framework, and am trying to include the premade messageboard Phorum. So far, I've made it work by not running it through my bootstrap using my .htaccess file. What I'd li...

How can I access the configuration of a Zend Framework application from a controller?

I have a Zend Framework application based on the quick-start setup. I've gotten the demos working and am now at the point of instantiating a new model class to do some real work. In my controller I want to pass a configuration parameter (specified in the application.ini) to my model constructor, something like this: class My_UserContr...

dynamicaly adding textboxes to zend_form

Hi, I hope that this is a quick question to answer. I am developing a form using Zend_Form, I have a number of Zend_Dojo_Form_Element_Textboxs to add to this form dynamically. These are added from rows in the database, e.g. $count = 0; //we now loop through the skill types and add them to the form. foreach($skillResult as $ski...

Problem with Zend_Date and ISO_8601 format

Frankly, I'm flummoxed. Can anyone tell me why I would get a failure message with this code? $date = Zend_Date::now(); $date = $date->getIso(); if(Zend_Date::isDate($date, Zend_Date::ISO_8601)) { print('success'); } else { print('failure'); } exit; It also fails if I just pass in a Zend_Date object. UPDATE: a var_dump of...

Can Zend_Service_Rest do file uploads?

I assume that RESTful services is a comprehensive paradigm, that it also could cover file uploads too, as a subset of http operations. If so, how does one do file uploads in Rest and specifically, with Zend_Service_Rest? Should my client code somehow read the file and assign its content to some property of restful object? Or there is a...

Tagging with Zend Framework

I'm trying to create the same solutions as below, but using a simple MySQL query (instead of the static version used below where the words/tags are implemented in the code). The name of the MySQL table is "tags" and it has 2 columns "id" & "tag". Unfortunately I'm a beginner and I wasn't able to solve this. Can someone help me? /* Zend...

How do I use namespaces with Zend Framework?

Namespaces are really useful and PHP had no support for them until the recent few releases, AFAIK. When I'm using Zend Framework, I have to remember long names with underscores - like Zend_Form_Element_Button or Zend_Form_Decorator_HtmlTag and so on. If I use namespaces, this might be possible, and so much easier: namespace Zend { cl...

File Upload in Zend

Hello every body, i m using zend form & create its elements using the code below. // To create text box. $txt = $this->CreateElement('text', 'txtName'); $txt = $this->setLabel('First Name'); $elements[] = $element; it works fine & it is posted firm form as well. But when i used the same technique to show a browse button, like. // To ...

Zend Form add error message

Hi I did register form in with zend form $password = new Zend_Form_Element_Password('password'); $password->setLabel($this->_translate->_("Password:")) ->setRequired(true) ->addValidator('stringLength', true, array(4, 32)); $confirmPassword = new Zend_Form_Element_Password('confirmpassword'); $confirmPassword->setLabel($this->_...

Zend Framework how to get the number of item in the loop ? partialLoop partialCounter and ?

Hello everyone, I want to to make a particular processing for the last item of a partialLoop, the documentation mention about $this->partialCounter but not the variable with the total number of items ... <?php if( $this->partialCounter == $mysteryvariable -1 ): ?> I am missing something I think ... cannot get my hand on that varia...