Problems with Zend_Lucene when using Routes

63 views Asked by At

I have implemented Zend_Lucene in my first Zend Framework Project, but since I have implemented Routes the Search Results does not seem to work anymore.

In my Search Result view, I have changed the URL to the Postdetails to use the Route:

<a href="<?php echo $this->url(array('post' => $value['post_id'], 'postname' => $value['post_title']), 'postdetails', true); ?>">

Unfortunately it does not seem to work, instead it shows me

<a href="/%3C%21DOCTYPE+html+PUBLIC+....... 

I normally also use

$this->escape($value['post_title'])

but again, it shows something with DOCTYPE. I don't understand enough about ZF to know what goes wrong. Can someone give me a hint? Thank you very much in advance!

1

There are 1 answers

3
RockyFord On

Have you tried using your named route without setting the reset option to true? I think you might be contradicting your self. You are telling the url helper to use a named route at the same time telling it to use the default routes. if you haven't already try:

<a href="<?php echo $this->url(array('post' => $value['post_id'], 'postname' => $value['post_title']), 'postdetails'); ?>">

you also may need to set default values for post and postname in your route(if you haven't already)