How will you include an element (header/footer etc.) within a layout?

Question:How will you include an element (header/footer etc.) within a layout?

1.<?php echo $this->element('element_name'); ?>

2.<?php include('element_name'); ?>

3.<?php echo $this->set('element_name'); ?>

4.<?php echo $this->include('element_name'); ?>


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!