Yii Framework Forum: بدست آوردن نام تم Frontend - Yii Framework Forum

Jump to content

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

بدست آوردن نام تم Frontend

#1 User is offline   ReZaZaRe 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 16
  • Joined: 15-November 12
  • Location:Iran-Mashhad

Posted 17 February 2013 - 01:06 AM

سلام دوستان

من مي خواستم اسم تمي كه براي سمت frontend فعال هست رو بدست بيارم
آيا راهي به غير از خوندن فايل كانفيگ وجود داره؟


0

#2 User is offline   Reza m 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 148
  • Joined: 07-March 12

Posted 17 February 2013 - 04:00 AM

Yii::app()->theme->name;

1

#3 User is offline   ReZaZaRe 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 16
  • Joined: 15-November 12
  • Location:Iran-Mashhad

Posted 17 February 2013 - 04:17 AM

View PostReza m, on 17 February 2013 - 04:00 AM, said:

Yii::app()->theme->name;



من مي خوام از سمت
backend
اين كار رو انجام بدم
براي همين هم نمي تونم از اين دستور استفاده كنم چون اين دستور اسم تم سمت
back
رو برمي گردونه

0

#4 User is offline   Reza m 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 148
  • Joined: 07-March 12

Posted 19 February 2013 - 05:21 AM


اگه بخش backend رو به صورت یک module ساخته باشی، میتونی از همین دستور استفاده کنی

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