January 14, 2015

January 14, 2015
In this article, we are going to discuss about How to load the views in iframe in CakePHP. CakePHP is an open source web application framework. It follows the Model-View-Controller (MVC) approach and is written in PHP. CakePHP uses well-known software engineering concepts and software design patterns, as Convention over configuration, Model-View-Controller, Active Record, Association Data Mapping, and Front Controller.

To use iFrame in cakephp we can set the iFrame tag in layout file. And to change source of iFrame dynamically we use $page variable which load parameters.

Example:

<iframe src="<?=$this->Html->url("/users/$page")?>"  width="100%" height="500"> </iframe>

0 comments:

Post a Comment