Yii Framework Forum: How SiteController Loading - Yii Framework Forum

Jump to content

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

How SiteController Loading Rate Topic: -----

#1 User is offline   Mohammad Fareed 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 23
  • Joined: 08-March 14
  • Location:Hyderabad

Posted 31 October 2017 - 06:39 AM

"Where initial controller is set as Site Controller in Yii" to understand the architecture
when I search for this I got lot solution how to set using

return array(
'defaultController' => 'home '
);

Can anyone give me an idea where exactly site controller is assigned.
-
With best Regards.
Mohammad Fareed.
0

#2 User is online   tri 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,824
  • Joined: 20-November 08
  • Location:Stockholm, Sweden

Posted 31 October 2017 - 07:03 AM

Why do you want to know? (It's not a good idea to change the framework files.)

Just define declare it in the .../config/main.php array.

(It's assigned in .../framework/web/CWebApplication.php which probably may be inherited and extended.)
Don't forget to read The Definitive Guide to Yii (1.1 en) (1.1 sv) (2.0 en) | The class reference (1.1) (2.0) has the details
1

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