form in every page

Hi i want to include a search form in the header of my website so it will appear in every page but how can treat the information coming from this form, should I include the code in every action or there is a simpler way to do it…

second question i want to include the advanced search portion in the admin page to Advanced_Search_Action how can I Do IT…?


Instead of copy code throughout the application you could take a look at the portlet pattern.


If you wrap your search in such a portlet you can integrate it in different pages or just place it in the layout file to have it available on all pages.

Create this form as a widget and use that widget everywhere you need to.

The widgets needs to implement form submit in the run() method.