@@ 11-18 (lines=8) @@ | ||
8 | */ |
|
9 | class ContactController extends FController |
|
10 | { |
|
11 | public function actionIndex() |
|
12 | { |
|
13 | $model = Contact::model()->findByAttributes(array('sysname' => 'contacts')); |
|
14 | ||
15 | $this->breadcrumbs = array('Контакты'); |
|
16 | ||
17 | $this->render('index', array('model' => $model)); |
|
18 | } |
|
19 | } |
@@ 27-39 (lines=13) @@ | ||
24 | ); |
|
25 | } |
|
26 | ||
27 | public function actionProfile() |
|
28 | { |
|
29 | $this->breadcrumbs = array( |
|
30 | 'Личный кабинет', |
|
31 | 'Мой профиль', |
|
32 | ); |
|
33 | ||
34 | $model = User::model()->findByPk(Yii::app()->user->getId()); |
|
35 | ||
36 | $this->render('profile', array( |
|
37 | 'model' => $model, |
|
38 | )); |
|
39 | } |
|
40 | ||
41 | public function actionData() |
|
42 | { |