Created
July 1, 2017 11:08
-
-
Save jacricelli/153e9ace652a460ed4d2c225deff83b7 to your computer and use it in GitHub Desktop.
Tutorías
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Título | |
echo $this->Plataforma->obtenerTitulo(); // Tutorías | |
// Título con un texto adicional | |
echo $this->Plataforma->obtenerTitulo('texto adicional'); // Tutorías - texto adicional | |
// Comprobar si la instalación corresponde a Tutorías o Graduados | |
if ($this->Plataforma->esGraduados()) { | |
echo 'Graduados'; | |
} else { | |
echo 'Tutorías'; | |
} | |
// http://php.net/manual/es/language.operators.comparison.php#language.operators.comparison.ternary | |
echo $this->Plataforma->esGraduados() ? 'Graduados' : 'Tutorías'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment