Sawatdee,
Did you ever hear about
Zend_Layout? I think this could the answer for you.
I'm newbie at all but I guess this is a way to manage a lot of recurring code in the application's presentation.
I suggest the reading:
(*) post edited, I added two more links I've just found.
regards,