<?php

error_reporting(E_ALL);
ini_set('display_errors', 1);
   
ini_set("memory_limit","800M");

class Union_TutController extends Zend_Controller_Action
{
	public $identity;
    public function init()
    {
		/*
		$this->_helper->viewRenderer->setNoRender();
		$this->_helper->layout->disableLayout();*/
				
		$auth = Zend_Auth::getInstance();
	    if (!$auth->hasIdentity())
	    {
	    	$this->_redirect('/');
	    }
	    $user = $auth->getIdentity();
	    $db = new Model_Profile;
	    $this->identity = $db->getRow($user->UserID);
		
		$this->view->assign("UserDetails",$this->identity->toArray());
	    $this->view->assign("getControllerName",$this->getRequest()->getControllerName());
	    $this->view->assign("getActionName",$this->getRequest()->getActionName());
		
    }	
	

    public function indexAction(){
		

        
    }
				

    
}