zend-framework

Zend Framework: How to get my statuses from twitter

I want to show my last 5 or 10 statuses from twitter on my site. For now I am using following code to get my twitter statuses. public function getOrganizationsTwitterUpdates(){ $twitter = new Zend_Service_Twitter('myusername', 'mypassword'); $response = $twitter->status->userTimeline(); return $response; } And I have ...

Zend Lucene - tokenizing swedish chars

I use Zend Lucene to index swedish texts. The problem is that lucene tokenizes words at swedish chars åäö. For example the word "världens" becomes two words "v" and "ldens" in the index. Is there a way to add characters that zend lucene should accept and not tokenize at? ...

Zend Form Multiselect Question

The following is a drop down menu I am trying to add to a Zend Form. Currently the value of the form is 0 for Running and 1 for Triathlon. Instead I want the values to be the same as the labels. What am I doing wrong? I checked Google but seems like I am doing it right. I have checked this against another one and they seem to be the ...

Zend Framework: How to redirect to original url after login?

I'm trying to implement a login system that will be smart enough to redirect a user back to the page they were on before they decided (or were forced to) go to the login page. I know this seems like a similar question to this one, and this one, but they do not address both of my scenarios. There are two scenarios here: User specifica...

open ldap registration with Zend Framework

The docs are very clear on how to authenticate against open LDAP with ZF. But, I failed to find the docs on how to register new users, delete users and update users (change password) using ZF on Open LDAP. Any good docs out there? ...

Schema created but tables not

Hello Everyone, I just got Doctrine 1.2.1 working in my environment (ubuntu) together with the Zend Framework. When I run my doctrine command ./doctrine build-all-reload it gives me the output: build-all-reload - Are you sure you wish to drop your databases? (y/n) y build-all-reload - SQLSTATE[HY000]: General error: 1008 Can't drop d...

how to connect from Flash Media Server 3.5 to Zend_Amf

Hi. i want to be able to connect from flash media server 3.5 to Zend_Amf (latest ZendFramework version). i tried doing the following: function amfresponder ( ) { this.onResult = function (result) { trace("Success: " + String(result)); }; this.onStatus = function (fault) { trace("Error: "+ fault.description); }; }; application....

Best Practices: What I should know before creating a web app API for an iPhone app?

I am getting started with iPhone application development and would like to create an application that involves pulling data from from a web application. I will be developing the API using PHP and the Zend Framework. I have never created a public API before, nor an iPhone app that works with public data. Here are some specific questions ...

Zend_Mail: How to fix PHP fatal error: Allowed memory size exhausted?

I have a cron job that sends emails to a list of subscribers, one at a time in a foreach loop, with a PDF attachment. I got this message from the cron script: Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 78643193 bytes) What do I need to do to prevent this error? Also, I'm pretty sure that it didn't...

Adjacency List Model with two tables

So I think my issue boils down to two questions: How do I build a traversable tree structure in PHP when the tree is stored in MySQL (between two tables) using the Adjacency List Model approach while keeping performance in mind? What's a maintainable approach to displaying the tree in the needed formats without duplicating traversal co...

How to create a public API using the Zend Framework?

I have an idea for a web application that would be great if it also had a public API for people to use and interact with. I want people to be able to create their own mobile and desktop applications that interact with the API. Specifically, I want to create an iPhone application that will interact with the API. I will be building the ap...

Getting only certain files from Zend SVN

I use a portion of ZEND framework and want to be able to update only those files, those files are few directories and few files from library/Zend directory. I know I can copy only those direcotries and update them, but how can I do it with files in that library/Zend directory? ...

What is the best today php framework to build my own CMS?

My scope of knowledge on php Frameworks is limited to 4, CakePHP, Symphony, Zend and CodeIgniter (sort by preference) I want to know which one I could choose to build my personal CMS (which suits best for that purpose) .. Best, ...

Zend Framework, phpUnit and Doctrine cause problems

Hello everyone. First some basic info: Ubuntu latest version Zend Framewrok 1.9.6 Doctrine 1.2.1 Php unit latest version I have been following this and thistutorial to set up my zend envrionment with doctrine and phpUnit. My environment is not an emtpy project since I had done some developments before I configured doctrine and php...

Is there an easy way to disable Zend_Form errors?

I am using Zend Framework. For a particular form, there is not enough space to show the errors next to the form elements. Instead, I want to be able to display the errors above the form. I imagine I can accomplish this by passing $form->getErrorMessages() to the view but how do I disable error messages from being shown be each element...

How to fool Zend into thinking the request is dispatched from another directory instead of the default index.php

I am trying to integrate Wordpress with my Zend application using a plugin and it is working quite well except for one thing: the base url. My wordpress plugin calls my integration function inside my application's bootstrap from /myapplication/libray/wordpress. Therefore, the request base url is set to this value for the entire applicati...

date not saving in mysql database

I have a problem with saving a date in my mysql database. To test everything: I am trying to save 2010-01-01 (for example) in a mysql database. First i set my mysql field to date. This didn't work. But when i set the field to a string type it does save date in the database. Why doesn't it work when i want to save a date into a date fie...

Can I use the Zend framework without command line access?

Lets say yy only option right now is to work on files from my jump drive that I keep on my keychain. I've got a few computers I can use to code on, but none that I can install anything on or alter in any way. Could I get started and use the 'powerfulness' and functionality of the zend framework by just downloading the files to my jump dr...

Zend Framework: Getting an empty param

Hi there, Lets say I have the following Request URI: /controller/action/filter// When I call $this->_getParam('filter') in the controller, it will return NULL. However, I want it to return an empty string. Am I missing something obvious? ...

Using application.ini for configuring Zend_Application Bootstrap

I have written custom resources for my Zend_Application bootstrap. In the manual the following code is given for loading them: $application = new Zend_Application(APPLICATION_ENV, array( 'pluginPaths' => array( 'My_Resource' => APPLICATION_PATH . '/resources/', ), 'resources' => array( 'FrontController' => a...