mbannonb (7) [Avatar] Offline
in application/views/scripts/menu.phtml I put:

echo $this->_helper->render('_search.phtml');

but it generates an error, "call to a member function on a non-object".

I've tried different variations of blah->render(), but I'm really just pushing the code around and have no idea what I'm doing.

Looking at 4.8 in the book and the explanation, I am unable to apply what is there to getting the search box to appear after the header nav (Home, Places, Articles, etc.)

I created a helper in views/helpers/SearchBox.php, and it works if I use

$view=new Zend_View;


$controller = Zend_Controller_Front::getInstance();

But I still don't know what I'm doing.

On another note, doing a search for "escape" on zend returns "no results found"

Any guidance is appreciated.
mbannonb (7) [Avatar] Offline
Re: putting the search box up with the header nav
I figured it out.

I moved _search.phtml from views/scripts/layouts/_search.phtml



I took the line of code from views/layouts/layout.phtml


and put it in


I added the pathway "index" to the render call:


I also changed the form's html so it would fit better.