getCount(array('where' => '`status` = "published"')); self::$authors = User::model()->getCount(); } public function actionSend() { $msg = ''; if ($_REQUEST) { foreach ($_REQUEST as $key => $value) { $msg .= $key. ': '.$value."\n"; } } if ($msg) { Alarmer::send($msg); } else { App::error404(); } die('OK'); } public function actionIndex() { self::render('/lp/index.php', array( 'points' => self::$points, 'authors' => self::$authors, 'followers' => self::$followers, 'routes' => self::$routes, )); } public function actionExcursion() { self::render('/lp/excursion.php', array( 'points' => self::$points, 'authors' => self::$authors, 'followers' => self::$followers, 'routes' => self::$routes, )); } }