zend

How to find "FooBar" when seaching "Foo Bar" in Zend Lucene

I'm building a search function for a php website using Zend Lucene and i'm having a problem. My web site is a Shop Director (something like that). For example i have a shop named "FooBar" but my visitors seach for "Foo Bar" and get zero results. Also if a shop is named "Foo Bar" and visitor seaches "FooBar" nothing is found. I tried t...

How can I fix the ZF tool in the Zend Server for windows?

I just downloaded Zend Server Community Edition for windows and found that it did not include the ZF utility included in the tutorials. I downloaded and unzipped the Zend Framework(version 1.7.8, because version 1.8 would not download properly). This includes the zf.bat utility which is meant to generate the basic project files. Unfor...

How can I output HTML from a Zend Validation Error?

I am trying to get this Zend Validator to output a link that goes to a resetpass form. At the moment, it is simply outputting the HTML as text. Any ideas on how to get it writing to the page as HTML? Thanks! Here's my code: protected $_authAdapter; protected $_messageTemplates = array( self::NOT_UNIQUE => 'This email has alre...

Is there a Zend_Form_Element that renders a plain div with some content?

Working on a bunch of forms at the moment and I'm finding that I want to be able to split a form into sections with some text in between. Is there a Zend_Form_Element that simply allows me to place some text mixed in with my form (not as a label or description linked to an individual input)? Thanks! ...

Implementation of NGramTokenizer for php zend Lucene?

How to implement NGramTokenizer in zend lucene? is it allready implemented somewhere? ...

Why doesn't this mail message decode correctly?

I have this code. It's from the Zend Reading Mail example. $message = $mail->getMessage(1); // output first text/plain part $foundPart = null; foreach (new RecursiveIteratorIterator($mail->getMessage(1)) as $part) { try { if (strtok($part->contentType, ';') == 'text/plain') { $foundPart = $part; brea...

Handling unexisting actions?

Hi, What is the best way to handle unexisting actions in the Zend Framework? Depending on the controller I want to be able handle the request differently. BR Niklas ...

Comparing Rails vs. PHP to a non-technical audience

I recently had an interview at a small company that wants to greatly increase its web presence, including re-writing their Flash homepage and opening an e-commerce site. If given the position, I would be the sole developer on staff. I've been working with Rails for a number of years, and haven't looked at PHP in quite some time. However...

Zend_Search_Lucene on Leopard: problem

Leopard 10.5.6 Macbook Zend 1.6, Apache 2, PHP 5.2.5 I cannot seem to do indexing, using Zend_Search_Lucene api. Building or opening indices on generates the following exception message: string(30) "Wrong segments.gen file format" However, the indices/segments files were scp from a working version of my site and I've chmoded them all...

Whats happening with Zend.

I apologise in advance as this is not stricltly a coding question, but, I wanted to canvass as wide a spectrum of opinion as possible. I have been using hte Zend php stack (among others) for some years now mainly because htey offer the best ORACLE support and they offer commercial support which keeps my corporate clients happy (middle m...

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

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

Is there a way to auto filter the getRequest() params in Zend?

I don't really want to call the Zend filter in my code after every getRequest->getParam('x') if I don't have to. Is there a lazy way of filtering everything inside getRequest magically? Edit: When I say filter, I mean, escapting tags, cleaning out the XSS, and escaping any sql escape characters. i.e: $myVar = $this->getRequest()->get...

Log the REQUEST_URI variable when php is set to log to syslog.

This is the source code of php_log_err. I would like to modify it to be able to log the variable _SERVER["REQUEST_URI"] /* {{{ php_log_err */ PHPAPI void php_log_err(char *log_message TSRMLS_DC) { FILE *log_file; char error_time_str[128]; struct tm tmbuf; time_t error_time; /* Try to use the spe...

Is the PHP Architect's Zend Certification Book needed to pass the Exam?

I want to get the Zend cert under my belt and am thinking about buying this book: Zend Book Is this the best book to get in preparation for it. I have heard mixed reviews and some opinions that the book has a lot of errors in it, which is pretty bad if you're trying to learn from it. UPDATE: Just found this site: Zend Site Has anybody...

is it possible to decode a file encoded by zend safeguard?

Hi, I was looking for php encoder and found a zend safeguard. I googled about safeguard and found out that there are many decoders for zend safeguard. Zend told me that it is not possible to decode zend encoded files, but users over the internet do not agree. I cannot seem to find a clear answer for my situation. what do you guys thi...

PHP / Zend Mechanisms for Rewriting

Hey there, this is a newbie Zend question. Under a site location: “mydomain.org/subA/subB”, if we go to this location without logging in (or having a session), it i) redirects to a login page. Otherwise, it ii) redirects to a race registration form. Now, I’d thought that Apache rewrite rules did that, but there’s not config that indicate...

How do you search zipcodes using Zend Lucene?

I have very simple company index with Zend Lucene using this to create the index: // store company primary key to identify it in the search results $doc->addField(Zend_Search_Lucene_Field::Keyword('pk', $this->getId())); // index company fields $doc->addField(Zend_Search_Lucene_Field::Unstored('zipcode', $this->getZipcode(), 'utf-8'));...

Zend Sessions Problem (beginner)

Hey out there, I'm teaching myself Zend am and having a problem with using my session to call a View Helper action. My controller: <?php class SessionController extends Zend_Controller_Action { protected $session; public function init() //Like a constructor { $this->_helper->viewRenderer->setNoRender(); // Will no...

PHP script ending prematurely

My site has a php page that prints out XML, for some reason though it's being truncated to 8KB in size, I've never encountered this before and all the other pages on the site remain un-truncated. Where should I start looking for the problem and what could cause it to stop like this? The site uses the Zend framework and the page in ques...