/**
  * Displays a particular model.
  * @param integer $id the ID of the model to be displayed
  */
 public function actionView($id)
 {
     $model = $this->loadModel($id);
     $documents = new DocumentTeam();
     $documents->ID_TEAM = $id;
     $documents->STATUS = 1;
     $documents->ID_DOCUMENT = 8;
     $document = null;
     foreach ($documents->search()->getData() as $document) {
     }
     $this->render('view', array('model' => $model, 'documentModel' => $document));
 }
Exemple #2
0
 /**
  * retrieves a current logo file
  */
 public function getLogo()
 {
     $documents = new DocumentTeam();
     $documents->ID_TEAM = $this->ID;
     $documents->STATUS = 1;
     $documents->ID_DOCUMENT = 11;
     foreach ($documents->search()->getData() as $document) {
     }
     $path = isset($document) ? $document->PATH : ($thumbURL = Yii::app()->getBaseUrl() . '/uploads/default/defaultTeam.jpg');
     return $path;
 }