Yii Framework Forum: Controller's View In A Module View - Yii Framework Forum

Jump to content

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

Controller's View In A Module View Rate Topic: -----

#1 User is offline   markslor 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 5
  • Joined: 30-October 13

Posted 17 December 2013 - 04:06 AM

Hi, everybody I'm new in yii and my English is not so good.

I have the following project (attachment)

I want to render create.php in createInfo.php

I have severals module which will do the same things that's why I want to do it once.

Did anybody has an idea on it ?

Thanks.

Attached File(s)


0

#2 User is offline   Argent 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 83
  • Joined: 23-February 13
  • Location:Hungary

Posted 17 December 2013 - 05:09 AM

#protected/modules/sport/views/default/createInfo.php

$this->renderPartial('//info/create'); // render: protected/views/info/create.php


This part in the manual: click here:

Quote

absolute view within a module: the view name starts with a single slash '/'. ...
absolute view within the application: the view name starts with double slashes '//'. ...
...

0

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