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...
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...
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...
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!
...
How to implement NGramTokenizer in zend lucene? is it allready implemented somewhere?
...
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...
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
...
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...
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...
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...
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...
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 ...
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...
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...
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...
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...
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...
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'));...
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...
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...