zend-framework

Zend Studio + Zend Framework

Zend Framework has this "Run" button... this works on individual php files. but i am curious how would this work if you are using Zend Framework (or others) where everything (requests, etc) must go through the bootstrap file first before the actual file you are editing is executed? ...

Zend Framework + An API for my application

How would I create an API for my web application? I am looking into Zend_Rest but I cannot grasp the idea behind it. Basically, I would want something like this example: $technorati = new Zend_Rest_Client('http://api.technorati.com/bloginfo'); $technorati->key($key); $technorati->url('http://pixelated-dreams.com'); $result = $technorat...

Zend Framework: Getting started with Zend_Test

Has anyone had any success setting up Zend_Test? What was your method/approach and how do you run your tests/test suites? I already have PHPUnit installed and working. Now I'm trying to write some simple controller tests. The Zend Framework documentation assumes that autoloading is setup, which I haven't done. What method do you use to ...

What are the real world differences between Zend Framework and Django?

I am a long time PHP user when it comes to web applications and am mostlz comfortable with it. However, I have a one semi-large project whose maintenance / extensibility has reached its end of a life cycle. I was weighing on different PHP frameworks (there were no when the project originated), since it is the way to go for this project, ...

Problem with Lucene- search not indexing numeric values?

I am using Lucene in PHP (using the Zend Framework implementation). I am having a problem that I cannot search on a field which contains a number. Here is the data in the index: ts | contents --------------+----------------- 1236917100 | dog cat gerbil 1236630752 | cow pig goat 1235680249 | lion tiger bear n...

Zend Framework Authentication and Redirection

What is the best method in Zend Framework to provide restricted areas and redirect users to a login page? What I want to do is set a flag on my controllers for restricted pages: class AdminController extends Zend_Controller_Action { protected $_isRestricted = true; .... and have a plugin check to see if the controller is restr...

How do I correctly create a Zend Feed?

I have successfully created a simple RSS feed, but entries keep coming back as unread and updated, and entries deleted from the client reappear everytime I ask mail to update the feed. What am I doing wrong? I use this simple function to create an rss feed: public static function getFeed($db) { $title = 'Latest feeds'; $feedU...

Using Zend_Filter_Input, are Filters or Validators processed first?

When using Zend_Filter_Input, are Filters or Validators processed first? ...

triggering invalid message with zend_dojo elements on post fail.

Hi, I am having a few issues with a Zend_Form that I have which uses Dojo elements to handle user validation. The scenario is when are user fills in the form the dojo elements ensure the formatting is correct. On post of the form if there is an error such as the email address already existing in the database, my code throw an excepti...

Is there a way to make FPDF/FPDI or Zend_Pdf support the parsing of PDFs greater than 1.4?

I am trying to add an existing PDF (created otherwise) to a PDF created with FPDF using FPDI. It seems to work find for most PDFs, but I get the following error: FPDF error: Unable to find xref table. After some testing, I figured out that if I use a PDF version of 1.4 or lower (Acrobat v5 or lower) it seems to work. Looking at the fi...

Zend_Db is ignoring my default field values!

Hi, I'm using Zend Framework 1.7 with a MySQL 5.0 database for a project I'm doing. Part of the system is a longish form that asks a user for various dates (in dd/mm/yyyy format) as well as some integer fields. In my MySQL table, all these fields have a default of null. When I come to save the form data with a function in my model (whic...

File Upload using zend framework 1.7.4

I am trying to upload file using zend frame work but have not been successful. I have read Akras tutorial, which was helpful but when i used those techniques in my project I was not able to get it to work. ...

Zend Framework form with jquery

Any one a idea how to simply create a form with Zend_Form and jquery? I want to use Zend_Form to validate the form so I don't have to dual script the form in JavaScript and PHP. Thank you, Ivo Trompert ...

Which PHP framework should I choose between ZendFramework and YII?

Which PHP framework should I choose between ZendFramework or YII? Points I need to consider: Performance (assuming an accelerator is used) Documentation stability of framework less to code. ...

How to increase Zend Framework learning speed?

A preamble: I've been using PHP for over 8 year every now and then, but never used a framework, only wrote scripts and addons. Mostly I used code generators like CodeCharge Studio or custom code for intranet apps. Since I am ok with design patterns, Zend framework doesn't look too hard for me to learn. Starting with ZF: I've a read the ...

Several Zend framework projects in the same root folder

Zend Framework project structure presumes you run only one application per server, like localhost/guessbook, where controllers and stuff are located one folder above that level. How can I have a few different ZF-based projects in my localhost so that to address them like I do with regular php script apps - with localhost/app1, localhost...

Is there a standard place to put the version number in the source code?

I want to have one file where I can check which version is installed. Its a PHP program so you can look into the files. I was thinking if there is a standardized place to put it since in the Zend Framework or the HTMLpurifier I can't find the version number at all. I would also want to add it to the Zend Framework and HTMLPurifier if th...

Page not found by ZendRouter: treats folder name as controller name

I've tried to run ZF Quickstart app not from the root folder, but from webserver subfolder, like a usual php app, e.g. localhost/quickstart. When localhost/quickstart/guestbook gives page not found error: > Page not found > > array(3) { ["controller"]=> > string(10) "quickstart" ["action"]=> > string(9) "guestbook" ["module"]=>...

Zend Framework: OpenID 2.0 and Directed Identity

I have custom OpenID provider and consumer. The OpenID URL should be hard-coded in the consumer app and will point to my custom provider (let's say: http://login.loc/). Provider app in turn tells the consumer which identity is currently logged in on the server (http://login.loc/johndoe e.g.). It should be exactly same as implementation...

How do I use .htaccess to force www. while using Zend Framework

I want to force a www. prefix on my website by using a .htaccess 301 redirect. I am currently trying: RewriteCond %{HTTP_HOST} ^mysite.com [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301] Which normally works, but I am using Zend Framework which causes all requests to be redirected back to http://www.mysite.com/index.php reg...