Skip to content

Instantly share code, notes, and snippets.

View alfrekjv's full-sized avatar

Alfredo Juárez alfrekjv

View GitHub Profile
function render($template, array $params = array(), array $options = array()) {
$session = $this->getSession();
if(!isset($params['isAjax']) && !$this->is('ajax')) {
if($this->isLoggedIn()) {
$params['nombre'] = $session->get('nombre');
}