I am using cake php now. I have two file example1.ctp and example2.ctp. I want to include example2.ctp in exa开发者_开发问答mple1.ctp just like how we add php page using "include". I am new to this please suggest me how to do it.
According to me , You have to create Elements..
CakePHP can help you repeat parts of your website that need to be reused. These reusable parts are called Elements.
<?php echo $this->element('ur elements ctp file name'); ?>
精彩评论