Exemplo n.º 1
0
					<div class="nota">
						<div class="imagen_nota"  style="background-image: url(./themes/classic/images/nota/3.png); "></div>
					<div class="texo_nota">
						<!--	Coordinar la ejecución del plan de respuesta de acuerdo a las alertas declaradas por la autoridades competentes-->
                        <?php 
echo Notas::model()->find("idNotas = 1")->Nota2;
?>
						</div>
					</div>

					<div class="nota">
						<div class="imagen_nota"  style="background-image: url(./themes/classic/images/nota/6.png); "></div>
					<div class="texo_nota">
							<!--Rehabilitación y recontrucción: acciones o solicitudes de apoyo con enfoque de desarrollo sostenible hacia la comunidad obrera/ estudiantil afectada-->
                        <?php 
echo Notas::model()->find("idNotas = 1")->Nota3;
?>
						</div>
					</div>
				</div>
				<div class="relleno"></div>

				</div>

		   </div>

		</div>			
		<div class="titulo-principal" style="width:100%;height:20px;"></div>

			
<script src="<?php 
Exemplo n.º 2
0
 /**
  * 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 $id the ID of the model to be loaded
  * @return Notas the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Notas::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }