Answer the question
In order to leave comments, you need to log in
Yii display your page in content?
The task is generally simple.
There is a two-column template. Left tree. On the right is the content.
So I want to display pages not made in Yii. Alternatively, you can use an iframe.
But this is not a complete embedding. Can yii somehow embed the page in the right column div?
I have
layouts/column2
<?php /* @var $this Controller */ ?>
<?php $this->beginContent('//layouts/main'); ?>
<div class="container">
<div class="span-5 lastleft">
<div id="sidebar" >
<?php
$box = $this->beginWidget(
'bootstrap.widgets.TbBox', array(
'title' => 'Действия',
'headerIcon' => 'icon- fa fa-list-alt'
)
);
?>
<?php
$this->widget(
'bootstrap.widgets.TbTabs', array(
'type' => 'pills',
'stacked' => true,
'tabs' => $this->menu,
)
);
?>
<?php $this->endWidget(); ?>
</div><!-- sidebar -->
</div>
<div class="span-24">
<div id="content">
<?php echo $content; ?>
</div><!-- content -->
</div>
</div>
<?php $this->endContent(); ?>
$this->renderPartial('application.views.site.pages.frameset');
$page = Page::model()->findByPk($page)->link;
echo '
<iframe id="ifr" src="' . $page . '" align="left" seamless>
</iframe>';
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question