<?php

/* This file is part of the Staq project, which is under MIT license */


namespace Staq\Util\Auth\Stack;

class View extends View\__Parent {



	/*************************************************************************
	  PRIVATE METHODS              
	 *************************************************************************/
	public function render( ) {
		$this[ 'user_logged' ] = \Staq::App()->get_controller( 'Auth' )->is_logged( );
		parent::render( );
	}
}

<?php

/* This file is part of the Staq project, which is under MIT license */


namespace Staq\Util\Auth\Stack;

class View extends View\__Parent {



	/*************************************************************************
	  PRIVATE METHODS              
	 *************************************************************************/
	protected function init_default_variables( ) {
		$page[ 'user_logged' ] = \Staq::App()->get_controller( 'Auth' )->is_logged( );
	}
}

--- 
+++ 
@@ -12,7 +12,8 @@
 	/*************************************************************************
 	  PRIVATE METHODS              
 	 *************************************************************************/
-	protected function init_default_variables( ) {
-		$page[ 'user_logged' ] = \Staq::App()->get_controller( 'Auth' )->is_logged( );
+	public function render( ) {
+		$this[ 'user_logged' ] = \Staq::App()->get_controller( 'Auth' )->is_logged( );
+		parent::render( );
 	}
 }
Add user logged by default in pages
