Yii Framework Forum: How to include other files in Layout file - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to include other files in Layout file Rate Topic: -----

#1 User is offline   Blue Sapphire 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 27-February 10

Posted 14 April 2010 - 07:27 AM

Hi!
Iam newbie to YII. Can some one guide me the fastest way to include '_header.php', '_footer.php' file in my main layout file labelled as 'main.php'.

Thanks in advance
0

#2 User is offline   vamp 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 181
  • Joined: 30-January 09

Posted 14 April 2010 - 07:38 AM

View PostBlue Sapphire, on 14 April 2010 - 07:27 AM, said:

Hi!
Iam newbie to YII. Can some one guide me the fastest way to include '_header.php', '_footer.php' file in my main layout file labelled as 'main.php'.

Thanks in advance


try to use $this->renderPartial('_header',$_data_) in main template
-Posted Image-
Thanks, you make me stronger!
-2

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users