protected function renderContent()
 {
     //import model
     Yii::import('application.modules.support.models.SupportContactCategory');
     Yii::import('application.modules.support.models.SupportContacts');
     $model = SupportContacts::model()->findAll(array('condition' => 'publish = :publish', 'params' => array(':publish' => 1)));
     $this->render('front_footer_social', array('model' => $model));
 }
 protected function renderContent()
 {
     $module = strtolower(Yii::app()->controller->module->id);
     $controller = strtolower(Yii::app()->controller->id);
     $action = strtolower(Yii::app()->controller->action->id);
     $currentAction = strtolower(Yii::app()->controller->id . '/' . Yii::app()->controller->action->id);
     $currentModule = strtolower(Yii::app()->controller->module->id . '/' . Yii::app()->controller->id);
     $currentModuleAction = strtolower(Yii::app()->controller->module->id . '/' . Yii::app()->controller->id . '/' . Yii::app()->controller->action->id);
     //import model
     Yii::import('application.modules.support.models.SupportContactCategory');
     Yii::import('application.modules.support.models.SupportContacts');
     $model = OmmuMeta::model()->findByPk(1);
     $criteriaSosMed = new CDbCriteria();
     $criteriaSosMed->condition = 't.publish = :publish';
     $criteriaSosMed->params = array(':publish' => 1);
     $criteriaSosMed->order = 't.id DESC';
     $criteriaSosMed->group = 't.cat_id';
     $SosMed = SupportContacts::model()->findAll($criteriaSosMed);
     $this->render('contact_meta_information', array('module' => $module, 'controller' => $controller, 'action' => $action, 'currentAction' => $currentAction, 'currentModule' => $currentModule, 'currentModuleAction' => $currentModuleAction, 'model' => $model, 'SosMed' => $SosMed));
 }
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = SupportContacts::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, Yii::t('phrase', 'The requested page does not exist.'));
     }
     return $model;
 }
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = SupportContacts::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, Phrase::trans(193, 0));
     }
     return $model;
 }