<?php

namespace meetings\controllers;

use Yii;
use common\models\LoginForm;
use meetings\models\PasswordResetRequestForm;
use meetings\models\ResetPasswordForm;
use meetings\models\SignupForm;
use meetings\models\ContactForm;
use yii\base\InvalidParamException;
use yii\web\BadRequestHttpException;
use yii\web\Controller;
use yii\filters\VerbFilter;
use yii\filters\AccessControl;
use yii\helpers\Url;
use yii\db\Connection;

use app\models\SearchForm;
use app\controllers\SearchController;

use DOMDocument;

/**
 * Past meetings controller
 */
class PastController extends Controller {
	/**
	 * @inheritdoc
	 */
	public function behaviors() {
		return [ 
				'access' => [ 
						'class' => AccessControl::className (),
						'only' => [ 
								'logout',
								'signup' 
						],
						'rules' => [ 
								[ 
										'actions' => [ 
												'signup' 
										],
										'allow' => true,
										'roles' => [ 
												'?' 
										] 
								],
								[ 
										'actions' => [ 
												'logout' 
										],
										'allow' => true,
										'roles' => [ 
												'@' 
										] 
								] 
						] 
				],
				'verbs' => [ 
						'class' => VerbFilter::className (),
						'actions' => [ 
								'logout' => [ 
										'post' 
								] 
						] 
				] 
		];
	}
	
	/**
	 * @inheritdoc
	 */
	public function actions() {
		return [ 
				'error' => [ 
						'class' => 'yii\web\ErrorAction' 
				],
				'captcha' => [ 
						'class' => 'yii\captcha\CaptchaAction',
						'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null 
				] 
		];
	}
	
	public function actionIndex() {
		return $this->render ( 'index' );
	}
	
	
	public function actionPast() {
		return $this->render ( 'index' );
	}
	
	
	public function actionGgbn2014() {
		return $this->render ( 'ggbn2014' );
	}
	
	public function actionGgbn2012() {
		return $this->render ( 'ggbn2012' );
	}
	
	public function actionGgbn2011() {
		return $this->render ( 'ggbn2011' );
	}
	
	

}