Yii Framework Forum: 2 Class In Component - Yii Framework Forum

Jump to content

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

2 Class In Component Rate Topic: -----

#1 User is offline   kazuyahiko 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 3
  • Joined: 21-March 13

Posted 22 March 2013 - 03:16 AM

saya mau tanya bagaimana cara untuk declare 2 class pada component apakah cara saya ini sudah bener?

Quote

// application components
'components'=>array(
'user'=>array(
'class' => 'application.components.EWebUser',
'class' => 'application.components.Foundation',
// enable cookie-based authentication
'allowAutoLogin'=>true,
),

0

#2 User is offline   Hermans 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 201
  • Joined: 17-February 11

Posted 12 April 2013 - 02:48 AM

kenapa ngak di bikin satu lagi ?

'foundation'=>array(
'class' => 'application.components.Foundation',
// enable cookie-based authentication
'allowAutoLogin'=>true,

0

#3 User is offline   the.liquid.metal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 12-November 11
  • Location:indonesia

Posted 15 April 2013 - 10:18 AM

tambahan aja nih Gan:

deklarasi yg pertama:
'class' => 'application.components.EWebUser',


bakal ketimpa sama deklarasi yg kedua:
'class' => 'application.components.Foundation',


jadi hanya Foundation yg berlaku.
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