common html code to display in pages i need

I need to have Testimonial on the pages where i need in my application, how can i achieve this, instead of writing testimonial on all pages, it should come from one page which i can include it in my pages.

Could some one help me on this.



Probably the easiest thing is to create a function in Controller that will return the testimonial data. Then in your view call this function with $this->function() to get the data and process accordingly. Then of course make the actual view element a partial and just include that in your pages, where you need it.