zend-framework

How to change the value of a Zend_Form_Element_Submit

I have several forms which the only difference is the text in the submit button. I am trying to change the Submit text by changing it's value, but to no avail. $form=getForm()//get a full Zend_Form object with elements. $form->getElement('mySubmit')->setValue('new value'); .... .... $form->render(); //This will still put 'mySubmit' in t...

How to determine if a web application has been installed and set up ?

I am not sure to be enough be by my question... Well i'm developping a CMS in PHP with Zend Framework. I would like to have a nice web gui to install and set up the application after unpacked it somewhere... Some CMS or whatever the application is, offer this way to do by simply entering an 'install url' like 'http://localhost/app/instal...

CSS & Javascript rollup file(s)

The Yahoo User Interface library offers rollup support if you use their CDN. I'm using Zend Framework 1.8.0 and was wondering whats he best way to go about replicating this so as all our css or javascript files can be rolledup into one tag - thus one http request. I am using the standard MVC components with a .htaccess file that rewri...

Zend Framework: right way to retrieve data from database

hello guys, am working on a project with zend framework and i need your advise on the right way to fetch data from the database. Am making use of Zend_Layout to load my template. The appropriate view is then loaded into the template. On the template, there is supposed to be a section that displays data from the database (e.g Categori...

Popular open source projects using Zend Framework

Hello, I am trying to find any open source project based on Zend Framework. Something well written and as popular as Wordpress or Drupal to see actual benefits of ZF as well as possibly use it as an example. The only 'showcase' I managed to find is http://framework.zend.com/wiki/pages/viewpage.action?pageId=14134. But this list looks c...

How do I get information from wikipedia into my application.

Hi guys I wish to get information for entries I have in my database from wikipedia like for example some stadiums and country information. I'm using Zend Framework and also how would I be able to handle queries that return multiple ambiguous entries or the like.. I would like all the help I can get here... ...

Zend Route Regex Reverse problem with forward slashes

Hi I have a problem with reverse for regex routes, my config file is below: routes.route1.type = "Zend_Controller_Router_Route_Regex" routes.route1.route = "([^\,]+)([^p]*)(?:\,page_[0-9]+)?\.html" routes.route1.defaults.controller = "index" routes.route1.defaults.action = "find" routes.route1.map.1 = "url_path" routes.route1.map.2 = "u...

How to use Zend Framework for layouts only?

I was recently brought on to help with a project that was made up of individual HTML files with the exception of a PHP contact form. So there's not even a hint of object oriented programming, MVC, or layouts (or even PHP for that matter). The project is quite large, but I wanted to slowly integrate the Zend Framework into this project, ...

Use Zend Framework to create a flexible base application

Hi, We are developing an e-commerce platform utilizing the Zend Framework. We have several instances of the application up and running, using the same code base. Config settings are used in order to differentiate the various shops. The challenge we are facing, is that we want to keep the general platform as it is now, and extend it rat...

Where is the best place to put a model in Zend Framework?

I want to know where is the best place to put the model classes inside a Zend Framework project. I heard that inside the library is the better place with versions < 1.8. And with version 1.8 we have the ResourceLoader so we can put inside the modules dir. What's your method? What's the best practice? ...

Getting info from Wikipedia - how do I get HTML form?

I'm using curl to retrieve information from wikipedia. So far I've been successful in retrieving basic text information but I really would want to retrieve it in HTML. Here is my code: $s = curl_init(); $url = 'http://boss.yahooapis.com/ysearch/web/v1/site:en.wikipedia.org+'.$article_name.'?appid=myID'; curl_setopt($s,CURLOPT_URL,...

Create very simple Named Route in Zend Framework, using its MVC

I've just put together a very basic site using the Zend Framework and its MVC. (Actually, I'm not even using models at the moment, it's all just Controllers/Views for static info so far). When I started toying with the Forms I realized that in the examples for Zend_Form they use something like this this set the form's action: $form->...

Zend - Storing Session data in a database

Looking for an example of storing session data in a database, using the Zend Framework. ...

What do you think of returning select object instead of statement result ?

I would have liked to know if it was a good idea to return a select object from a method like '$selectObj = getSomethingByName($name)' to then pass it to another method like 'getResult($selectObj)' which will do the trick. The idea is to be able to pass the select object to any usefull function like 'setLimit(10)' or addCriteria('blabla'...

iPhone App: How to get data from an API, parse, and store for later use?

I'm new to iPhone app development so excuse me if I use the wrong terminology, or ask the wrong questions. Basically, I'm trying to write an App that includes downloading a dataset, saving it for later, and checking if the dataset has been updated, but I don't know where to begin. When I say dataset, I mean a multi-dimensional array of ...

Usage of a helper within zend partialloop

hello, I am using the Zend Framework library / Framework At some point I need to give an array of texts ( with a given objectKey ) to the partialloop helper. Now in the partialLoop view I would like to use Zend Translate. Now I understand that Zend Translate isn't accessibly true the objectKey, but is there a way to use Zend Translat...

ZendFramework and open ID login, Is the ZF up to date?

I am trying to integrate an openID login in a ZF project (using the MVC). I get failures. When I traced the code I see the failures originate from: OpenId/Consumer.php (line ~740). Those lines try to analyze the open id protocol version from the first request done to the open id provider. The regexp in the ZF expect to receive HTML with ...

Is there a list of major OpenID providers URIs that ZF knows how to work with?

Is there a list of major OpenID providers URIs that ZF knows how to work with? ...

Report generation in PHP (formats required pdf,xls,doc,csv)

I need to generate reports in my PHP website (in zend framework) Formats required: PDF (with tables & images) // presently using Zend_Pdf XLS (with tables & images) DOC (with tables & images) CSV (only tables) Please recommend robust and fast solution for generating reports in PHP. Platform: Zend Framework on LAMP I know there are ...

Using smarty default varible modifier with gettext

Hi there. I'm currently using smarty with zend framework, and I have set up smarty to use gettext in the following manner: {gettext text="resource-identifier"} This works properly, but I got a problem when trying to use this with the smarty default variable handler. I want to do this: {$somevar|default:gettext text="resource-identif...