Yii Framework Forum: renderPartial - how - Yii Framework Forum

Jump to content

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

renderPartial - how Rate Topic: -----

#1 User is offline   manilodisan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 17-September 09
  • Location:Bucharest

Posted 13 October 2009 - 07:09 PM

I'm again to this problem. I have a class which sends email. The context of the emails are loaded from a views folder emails/ where I keep my emails ex:

Yii::app ()->controller->renderPartial ( 'application.views.email.layouts.email', array ( 
       'content' => Yii::app ()->controller->renderPartial ( 'application.views.email.partials.email.welcome' ) 
) );


The above works fine but what if I keep my themes folder at the same level with application. The code should look like:

Yii::app ()->controller->renderPartial ( 'themes.classic.views.email.layouts.email', array ( 
       'content' => Yii::app ()->controller->renderPartial ( 'themes.classic.views.email.partials.email.welcome' ) 
) );


The renderPartial method seems to fail searching in that directory. Any ideas?
0

#2 User is offline   Dave 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 187
  • Joined: 09-October 08

Posted 14 October 2009 - 04:28 AM

what error message do you receive?
0

#3 User is offline   manilodisan 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 80
  • Joined: 17-September 09
  • Location:Bucharest

Posted 15 October 2009 - 03:48 AM

SiteControlers could not find the requested view
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