class Cms_IndexController extends Zend_Controller_Action { public $baseUrl = ''; protected $objMdl; public $smtpUserName; public $smtpPassword; public $smtpPort; public $smtpHost; public $AgencyId; const USER_NAMESPACE = 'CATEGORY'; public $_storage; public $categorySession; public $tablenamePage; public function init() { $this->objMdl = new Admin_Model_CRUD(); $object = Zend_Controller_Front::getInstance(); $this->action = $action = $object->getRequest()->getActionName(); $this->modulename = $modulename = $object->getRequest()->getModuleName(); $aConfig = $this->getInvokeArg('bootstrap')->getOptions(); $BootStrap = $aConfig['bootstrap']; $this->siteName = $BootStrap['siteName']; $this->baseUrl = $BootStrap['siteUrl']; $this->AgencyId = $BootStrap['gtxagencysysid']; $this->LeadURL = $BootStrap['siteUrl'] . 'index/query'; $this->tablename = 'tbl_enquiry'; $this->tablenamePage = 'tbl_static_pages'; $this->tableabout = 'tbl_about_indoasia'; $this->tableOffice = 'tbl_my_offices'; $this->tableAwards = 'tbl_accolades_awards'; $this->tableClients = 'tbl_accreditations_client'; $this->tableCareer= 'tbl_careers'; $this->objHelperGeneral = $this->_helper->General; $this->_storage = new Zend_Session_Namespace(self::USER_NAMESPACE); } public function indexAction() { $param = $this->getRequest()->getParams(); $pageid = explode(".",$param['cms']); //echo "
";print_r($pageid);exit;
        $model = new Admin_Model_CRUD();
        $getPageDetail = $model->rv_select_row($this->tablenamePage , ['*'], ['identifier'=>$pageid[0] , 'status'=> 'Activate'] , ['sid'=> 'desc'] );
        $resultset  = $model->rv_select_all($this->tableabout, ['*'],  ['IsMarkForDel'=>0], ['AboutId'=>'DESC']);
        $IndiaOffice  = $model->rv_select_all($this->tableOffice, ['*'],  ['status'=>1,'officeType'=>1], ['officeOrder'=>'ASC']);
        $InternationalOffice  = $model->rv_select_all($this->tableOffice, ['*'],  ['status'=>1,'officeType'=>0], ['officeOrder'=>'ASC']);
        
        $awards  = $model->rv_select_all($this->tableAwards, ['*'],  ['status'=>1], ['AwardId'=>'DESC']);
        $Client  = $model->rv_select_all($this->tableClients, ['*'],  ['status'=>1], ['ClientId'=>'DESC']);
        $Career = $model->rv_select_all($this->tableCareer, ['*'],  ['status'=>1,'isMarkForDel'=>0], ['careerId'=>'DESC']);
        //echo "
";print_r($getPageDetail);die;
        
        /* SEO KEYWORD */
        $detailLayout = array();
        $detailLayout['Keyword'] = $getPageDetail['meta_keywords']; // get package Keyword
        $detailLayout['Description'] = $getPageDetail['meta_description']; // get package Description
       
        $detailLayout['PackageTitle'] =$getPageDetail['meta_title']; // get package name
        
        $this->view->detailLayout     = $detailLayout;
        // echo "
";print_r($getPageDetail);die;
        $this->view->pagedetail = $getPageDetail;
        $this->view->resultset = $resultset;
        $this->view->baseUrl = $this->baseUrl;
        $this->view->siteName = $this->siteName;
        $this->view->IndiaOffice = $IndiaOffice;
        $this->view->InternationalOffice = $InternationalOffice;
        $this->view->awards = $awards;
        $this->view->Client = $Client;
        $this->view->Career = $Career;
        $this->view->pageid = $pageid[0];
    }
  
    
    public function sendenquiryAction() {
        if ($this->getRequest()->isPost()) {
            $param = $this->getRequest()->getParams();
//           echo "
";print_r($param);die;
            $contactDetail_mail = Zend_Controller_Action_HelperBroker::getStaticHelper('Custom')->getContactDetailForFooterCms();
            
            if (isset($param['captcha']) && strtolower($param['captcha']) != $_SESSION['captcha_contact']) {
                    $result = ['status' => 'captcha', 'message' => 'Captcha code invalid.'];
                    echo Zend_Json::encode($result);
                    exit;
            }else{
            $package_sid = isset($param['packagesys_id']) ? $param['packagesys_id']: '';
            if(isset($package_sid) && $package_sid !=''){
                $packageDetail  = $this->objMdl->rv_select_all( 'tb_tbb2c_packages_master' , ['LongJsonInfo'] , [ 'PkgSysId'=>$package_sid ] ,  ['PkgSysId'=>'ASC'],1);
                if(!empty($packageDetail)){
                $LongJsonInfo = json_decode($packageDetail[0]['LongJsonInfo'],1);
                $this->AgencyId = $AgencySysId = $LongJsonInfo['package']['AgencyId'];    
                }
            }
             if(isset($param['name']) && $param['name'] !=''){
             $param['name'] = $param['name'];   
            }else{
            $param['name'] = @$param['fname'].' '.@$param['lname'];      
            }
            $insertdata = [
                'name' => $param['name'],
                'email' => trim($param['email']),
                'mobile' => trim($param['mobile']),
				'message' => trim($param['message']),
               
            ];
            $this->postFields = "";
            $this->postFields .= "&AgencySysId=$this->AgencyId";
            $this->postFields .= "&FirstName=" . $param['name'];
            $this->postFields .= "&Email=" . $param['email'];
            $this->postFields .= "&MobileNumber=" . $param['mobile'];
            $this->postFields .= "&leadsource=Tripsgateway";
//            $resultset = $this->objMdl->rv_insert($this->tablename, $insertdata);
            
             if(isset($param['form_type']) && (trim($param['form_type']) == 'contact_us') ){
                $message = "Your query has been sent successfully.";
                $status = true;
            }else{
            
            try {
                $model = new Gtxwebservices_Model_Webservices();
                $getPackagesData = $model->sendLead($this->postFields);
                
               // echo "
";print_r($getPackagesData);exit;
                
                $message = "Your Query sent successfully.";
                $status = true;
            } catch (Zend_Exception $error) {
                $message = $this->view->error_msg = $error->getMessage();
                $status = false;
            }
            }
            
            
            $MypopC = [
                'name' => $param['name'],
                'email' => $param['email'],
                'mobile' => isset($param['mobile'])? trim($param['mobile']) : '',
            ];

            setcookie("MyCookies", json_encode($MypopC), time() + (3600 * 24 * 2), "/");

           
            
            $result = ['status' => true, 'message' => $message, 'name' => $param['name']];
            
            $params = array('param'=>$param,'siteName'=>$this->siteName,'baseUrl'=>$this->baseUrl,'callusnumber'=>$this->callusnumber,'emailId'=>$this->contactEmail,'contactDetail_mail'=>$contactDetail_mail);
               
            
           
                if(isset($param['packagedesname']) && $param['packagedesname']!=''){
                    $cust_subject = 'Travel Enquiry for '.ucfirst($param['packagedesname']);
               }else{
                    $cust_subject = 'Thanks for Contacting Us';
               } 
           
                $cust_html = new Zend_View();
                $cust_html->setScriptPath(APPLICATION_PATH . '/views/');
                $cust_html->assign($params);
                $cust_mailBody = $cust_html->render('customer_mail_master.phtml');

               $cust_configs = [
                'to' => trim($param['email']),
                'fromName' => $this->siteName,
                'fromEmail' => $contactDetail_mail['email'],
                'subject' => $cust_subject,
                'bodyHtml' => $cust_mailBody,
            ];
            
            $cust_Mail = $this->objHelperGeneral->mailSentByElastice( $cust_configs , 'Package' );
              
//             if(isset($param['packagedesname']) && $param['packagedesname']!=''){
//                    $admin_subject = 'Travel Enquiry for '.$param['packagedesname'];
//               }else{
//                    $admin_subject = 'New Request for Contact us';
//               }
               if(isset($param['packagedesname']) && $param['packagedesname']!=''){
                    $admin_subject = 'Travel Enquiry for '.ucfirst($param['packagedesname']);
               }else{
                if(isset($param['form_type']) && (trim($param['form_type']) == 'contact_us') ){
                    $admin_subject = 'New Request for Contact Us';
                }else{
                   $admin_subject = 'New Call Back Request';   
                }
               }
               
               
            
                $admin_html = new Zend_View();
                $admin_html->setScriptPath(APPLICATION_PATH . '/views/');
                $admin_html->assign($params);
                $admin_mailBody = $admin_html->render('admin_mail_master.phtml');

               $admin_configs = [
                'to' => $contactDetail_mail['email'],
                'fromName' => $this->siteName,
                'fromEmail' => $contactDetail_mail['email'],
                'subject' => $admin_subject,
                'bodyHtml' => $admin_mailBody,
            ];
            
            $admin_Mail = $this->objHelperGeneral->mailSentByElastice( $admin_configs , 'Package' );
            
            echo Zend_Json::encode($result);
            exit;
            }
        } else {
            $result = ['status' => false, 'message' => 'Unable to send enquiry'];
            echo Zend_Json::encode($result);
            exit;
        }
    }
    
    public function getHotelDetailAction() {

        $this->_helper->layout()->disableLayout();
        if ($this->getRequest()->isXmlHttpRequest()) {
            if ($this->getRequest()->isPost()) {
                $param = $this->getRequest()->getParams();
                $hotelId = $param['hotelId'];
                $type = $param['type'];
                $categoryId = $param['categoryId'];
                $packageId = $param['packageId'];
                $gtxID = $param['gtxID'];
                $model = new Detail_Model_PackageMapper();
                if ($type == 'H') {
                    $getDetail = $model->fetchHotelDetails($categoryId, $gtxID, $packageId, $hotelId);
                } else if ($type == 'A') {
                    $getDetail = $model->fetchActivityDetails($categoryId, $gtxID, $packageId, $hotelId);
                } else {
                    $getDetail = $model->fetchSightSeeingDetails($categoryId, $gtxID, $packageId, $hotelId);
                }
                $this->view->type = $type;
                $this->view->hotelData = $getDetail;
                $this->view->baseUrl = $this->baseUrl;
            }
        }
    }
    public function blogDetailsAction()
	{
		        if ($this->getRequest()->isPost()) {
            $param = $this->getRequest()->getParams();
         //   echo "
";print_r($param);die;
            $contactDetail_mail = Zend_Controller_Action_HelperBroker::getStaticHelper('Custom')->getContactDetailForFooterCms();
            
            if (isset($param['captcha']) && strtolower($param['captcha']) != $_SESSION['captcha_contact']) {
                    $result = ['status' => 'captcha', 'message' => 'Captcha code invalid.'];
                    echo Zend_Json::encode($result);
                    exit;
            }else{
            $package_sid        = isset($param['packagesys_id']) ? $param['packagesys_id']: '';
            if(isset($package_sid) && $package_sid !=''){
                $packageDetail  = $this->objMdl->rv_select_all( 'tb_tbb2c_packages_master' , ['LongJsonInfo'] , [ 'PkgSysId'=>$package_sid ] ,  ['PkgSysId'=>'ASC'],1);
                if(!empty($packageDetail)){
                $LongJsonInfo = json_decode($packageDetail[0]['LongJsonInfo'],1);
                $this->AgencyId = $AgencySysId = $LongJsonInfo['package']['AgencyId'];    
                }
            }
            $insertdata = [
                'name' => $param['name'],
                'email' => trim($param['email']),
                'phone' => trim($param['mobile']),
				 'message' => trim($param['message']),
               
            ];
           
            $this->postFields .= "&FirstName=" . $param['name'];
            $this->postFields .= "&Email=" . $param['email'];
            $this->postFields .= "&MobileNumber=" . $param['mobile'];
			$this->postFields .= "&Message=" . $param['m'];
            $this->postFields .= "&leadsource=Tripsgateway";
//            $resultset = $this->objMdl->rv_insert($this->tablename, $insertdata);
            
             if(isset($param['form_type']) && (trim($param['form_type']) == 'contact_us') ){
                $message = "Your query has been sent successfully.";
                $status = true;
            }else{
            
            try {
                $model = new Gtxwebservices_Model_Webservices();
                $getPackagesData = $model->sendLead($this->postFields);
                
               // echo "
";print_r($getPackagesData);exit;
                
                $message = "Your Query sent successfully.";
                $status = true;
            } catch (Zend_Exception $error) {
                $message = $this->view->error_msg = $error->getMessage();
                $status = false;
            }
            }
            
            
            $MypopC = [
                'name' => $param['name'],
                'email' => $param['email'],
                'mobile' => isset($param['mobile'])? trim($param['mobile']) : '',
            ];

            setcookie("MyCookies", json_encode($MypopC), time() + (3600 * 24 * 2), "/");

           
            
            $result = ['status' => true, 'message' => $message, 'name' => $param['name']];
            
            $params = array('param'=>$param,'siteName'=>$this->siteName,'baseUrl'=>$this->baseUrl,'callusnumber'=>$this->callusnumber,'emailId'=>$this->contactEmail,'contactDetail_mail'=>$contactDetail_mail);
               
            
           
                if(isset($param['packagedesname']) && $param['packagedesname']!=''){
                    $cust_subject = 'Travel Enquiry for '.ucfirst($param['packagedesname']);
               }else{
                    $cust_subject = 'Thanks for Contacting Us';
               } 
           
                $cust_html = new Zend_View();
                $cust_html->setScriptPath(APPLICATION_PATH . '/views/');
                $cust_html->assign($params);
                $cust_mailBody = $cust_html->render('customer_mail_master.phtml');

               $cust_configs = [
                'to' => trim($param['email']),
                'fromName' => $this->siteName,
                'fromEmail' => $contactDetail_mail['email'],
                'subject' => $cust_subject,
                'bodyHtml' => $cust_mailBody,
            ];
            
            $cust_Mail = $this->objHelperGeneral->mailSentByElastice( $cust_configs , 'Package' );
              
//             if(isset($param['packagedesname']) && $param['packagedesname']!=''){
//                    $admin_subject = 'Travel Enquiry for '.$param['packagedesname'];
//               }else{
//                    $admin_subject = 'New Request for Contact us';
//               }
               if(isset($param['packagedesname']) && $param['packagedesname']!=''){
                    $admin_subject = 'Travel Enquiry for '.ucfirst($param['packagedesname']);
               }else{
                if(isset($param['form_type']) && (trim($param['form_type']) == 'contact_us') ){
                    $admin_subject = 'New Request for Contact Us';
                }else{
                   $admin_subject = 'New Call Back Request';   
                }
               }
               
               
            
                $admin_html = new Zend_View();
                $admin_html->setScriptPath(APPLICATION_PATH . '/views/');
                $admin_html->assign($params);
                $admin_mailBody = $admin_html->render('admin_mail_master.phtml');

               $admin_configs = [
                'to' => $contactDetail_mail['email'],
                'fromName' => $this->siteName,
                'fromEmail' => $contactDetail_mail['email'],
                'subject' => $admin_subject,
                'bodyHtml' => $admin_mailBody,
            ];
            
            $admin_Mail = $this->objHelperGeneral->mailSentByElastice( $admin_configs , 'Package' );
            
            echo Zend_Json::encode($result);
            exit;
            }
        } else {
            $result = ['status' => false, 'message' => 'Unable to send enquiry'];
            echo Zend_Json::encode($result);
            exit;
        }
		
	}
     public function aboutDetailsAction()
    {
         $pId = (int)$this->getRequest()->getParam("id");
         $aboutResult = $this->objMdl->getCmsdata($this->tableabout, ['*'], ['AboutId'=>$pId], ['AboutId'=>'DESC']);
//         $blog = $this->objMdl->rv_select_all( 'tbl_blog' , ['*'] , [ 'status'=>1,'isMarkForDel'=>0 ] ,  ['BlogId'=>'ASC']);
//         echo "
";print_r($blog);die;
        $this->view->aboutResult    = $aboutResult;
        
        
         $recentAbout = $this->objMdl->rv_select_all( $this->tableabout, ['*'] , [ 'status'=>1,'isMarkForDel'=>0 ] ,  ['AboutId'=>'DESC'],4);
//         echo "
";print_r($recentBlog);die;
        $this->view->recentAbout    = $recentAbout;
        $this->view->baseUrl    = $this->baseUrl;
        $this->view->CONST_YEAR_NAME  =  $this->CONST_YEAR_NAME;


        
    }
    
    public function sendCareerDetailAction() {
        
         if ($this->getRequest()->isPost()) {
            $param = $this->getRequest()->getParams();
//            echo "
";print_r(json_decode($param['file']));die;
            $contactDetail_mail = Zend_Controller_Action_HelperBroker::getStaticHelper('Custom')->getContactDetailForFooterCms();
            
            if (isset($param['captchaCareer']) && trim($param['captchaCareer']) != $_SESSION['captcha_contact']) {
                    $result = ['status' => 'captcha', 'message' => 'Captcha code invalid.'];
                    echo Zend_Json::encode($result);
                    exit;
            }else{
             $params = array('param'=>$param,'baseUrl'=>$this->baseUrl,'callusnumber'=>$this->callusnumber,'emailId'=>$this->contactEmail,'contactDetail_mail'=>$contactDetail_mail);
             
             
             $cust_subject = 'Application for the post  of '.$param['jobtype'];
             $admin_subject = 'Application for the post  of '.$param['jobtype'];
                 $cust_html = new Zend_View();
                $cust_html->setScriptPath(APPLICATION_PATH . '/views/');
                $cust_html->assign($params);
                $cust_mailBody = $cust_html->render('customer_mail_master.phtml');

               $cust_configs = [
                'to' => trim($param['email']),
                'fromName' => $this->siteName,
                'fromEmail' => $contactDetail_mail['email'],
                'subject' => $cust_subject,
                'bodyHtml' => $cust_mailBody,
            ];
            
            $cust_Mail = $this->objHelperGeneral->mailSentByElastice( $cust_configs , 'Package' );
            

                $admin_html = new Zend_View();
                $admin_html->setScriptPath(APPLICATION_PATH . '/views/');
                $admin_html->assign($params);
                $admin_mailBody = $admin_html->render('admin_mail_careers.phtml');

               $admin_configs = [
                'to' => $contactDetail_mail['email'],
                'fromName' => $this->siteName,
                'fromEmail' => $contactDetail_mail['email'],
                'subject' => $admin_subject,
                'bodyHtml' => $admin_mailBody,
            ];
            
            $admin_Mail = $this->objHelperGeneral->mailSentByElastice( $admin_configs , 'Package' ); 
                
                
              $result = ['status' => true, 'message' => 'Enquiry Send Successfully.'];
            echo Zend_Json::encode($result);
            exit;
            }
         }
        
    }
       public function uploadCvImageAction() {
//        $filename = $_FILES['file']['name'];
        $orignalFIleName = $_FILES["file1"]["name"];
        if (!empty($orignalFIleName)) {
            $orignalFolderName = $_SERVER["DOCUMENT_ROOT"] . "/public/upload/career/cv";
            $fileExt = $this->_helper->General->getFileExtension($orignalFIleName);
            if($fileExt == 'pdf' || $fileExt == 'docx' || $fileExt == 'doc' || $fileExt == 'rtf'){
            $fileName = 'cv_' . time() . '.' . $fileExt;
            if (!file_exists($orignalFolderName)) {
                @mkdir($orignalFolderName, 0777, true);
            }

            $temp_file_name = $_FILES["file1"]["tmp_name"]; // temprary file name
            if (move_uploaded_file($temp_file_name, $orignalFolderName . "/" . $fileName)) {
                $fileArray = array('status' =>true, 'fileName' => $this->baseUrl . 'public/upload/career/cv/' . $fileName);
            }
        
            }else{
                $fileArray = array('status'=>false,'msg'=>'CV file format should be doc, docx, rtf, pdf type.');
            }
        }
        echo json_encode($fileArray);
        exit;
    }
    
    public function setSessionForCategoryAction() {
     
    if ($this->getRequest()->isPost()) {
            $param = $this->getRequest()->getParams();
           
             $categorySession = [
                'catid' => $param['catid'],
                'PkgSysId' => $param['PkgSysId'],
            ];
           $this->_storage->categorySession = $categorySession;
           
            $result = ['status' => true, 'message' => 'Successfull.'];
            echo Zend_Json::encode($result);
            exit;
    }
        
    } 

}
ArrayObject Object
(
    [storage:ArrayObject:private] => Array
        (
            [exception] => Zend_Controller_Dispatcher_Exception Object
                (
                    [_previous:Zend_Exception:private] => 
                    [message:protected] => Invalid controller class ("Cms_IndexController")
                    [string:Exception:private] => 
                    [code:protected] => 0
                    [file:protected] => /home/trpgateway/public_html/library/Zend/Controller/Dispatcher/Standard.php
                    [line:protected] => 352
                    [trace:Exception:private] => Array
                        (
                            [0] => Array
                                (
                                    [file] => /home/trpgateway/public_html/library/Zend/Controller/Dispatcher/Standard.php
                                    [line] => 262
                                    [function] => loadClass
                                    [class] => Zend_Controller_Dispatcher_Standard
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => IndexController
                                        )

                                )

                            [1] => Array
                                (
                                    [file] => /home/trpgateway/public_html/library/Zend/Controller/Front.php
                                    [line] => 954
                                    [function] => dispatch
                                    [class] => Zend_Controller_Dispatcher_Standard
                                    [type] => ->
                                    [args] => Array
                                        (
                                            [0] => Zend_Controller_Request_Http Object
                                                (
                                                    [_paramSources:protected] => Array
                                                        (
                                                            [0] => _GET
                                                            [1] => _POST
                                                        )

                                                    [_requestUri:protected] => /contact-us.html
                                                    [_baseUrl:protected] => 
                                                    [_basePath:protected] => 
                                                    [_pathInfo:protected] => /contact-us.html
                                                    [_params:protected] => Array
                                                        (
                                                            [cms] => contact-us.html
                                                            [module] => cms
                                                            [controller] => index
                                                            [action] => index
                                                            [error_handler] => ArrayObject Object
 *RECURSION*
                                                        )

                                                    [_rawBody:protected] => 
                                                    [_aliases:protected] => Array
                                                        (
                                                        )

                                                    [_dispatched:protected] => 1
                                                    [_module:protected] => default
                                                    [_moduleKey:protected] => module
                                                    [_controller:protected] => error
                                                    [_controllerKey:protected] => controller
                                                    [_action:protected] => error
                                                    [_actionKey:protected] => action
                                                )

                                            [1] => Zend_Controller_Response_Http Object
                                                (
                                                    [_body:protected] => Array
                                                        (
                                                        )

                                                    [_exceptions:protected] => Array
                                                        (
                                                            [0] => Zend_Controller_Dispatcher_Exception Object
 *RECURSION*
                                                        )

                                                    [_headers:protected] => Array
                                                        (
                                                        )

                                                    [_headersRaw:protected] => Array
                                                        (
                                                        )

                                                    [_httpResponseCode:protected] => 200
                                                    [_isRedirect:protected] => 
                                                    [_renderExceptions:protected] => 
                                                    [headersSentThrowsException] => 1
                                                )

                                        )

                                )

                            [2] => Array
                                (
                                    [file] => /home/trpgateway/public_html/library/Zend/Application/Bootstrap/Bootstrap.php
                                    [line] => 97
                                    [function] => dispatch
                                    [class] => Zend_Controller_Front
                                    [type] => ->
                                    [args] => Array
                                        (
                                        )

                                )

                            [3] => Array
                                (
                                    [file] => /home/trpgateway/public_html/library/Zend/Application.php
                                    [line] => 366
                                    [function] => run
                                    [class] => Zend_Application_Bootstrap_Bootstrap
                                    [type] => ->
                                    [args] => Array
                                        (
                                        )

                                )

                            [4] => Array
                                (
                                    [file] => /home/trpgateway/public_html/index.php
                                    [line] => 28
                                    [function] => run
                                    [class] => Zend_Application
                                    [type] => ->
                                    [args] => Array
                                        (
                                        )

                                )

                        )

                    [previous:Exception:private] => 
                )

            [type] => EXCEPTION_NO_CONTROLLER
            [request] => Zend_Controller_Request_Http Object
                (
                    [_paramSources:protected] => Array
                        (
                            [0] => _GET
                            [1] => _POST
                        )

                    [_requestUri:protected] => /contact-us.html
                    [_baseUrl:protected] => 
                    [_basePath:protected] => 
                    [_pathInfo:protected] => /contact-us.html
                    [_params:protected] => Array
                        (
                            [cms] => contact-us.html
                            [module] => cms
                            [controller] => index
                            [action] => index
                        )

                    [_rawBody:protected] => 
                    [_aliases:protected] => Array
                        (
                        )

                    [_dispatched:protected] => 1
                    [_module:protected] => cms
                    [_moduleKey:protected] => module
                    [_controller:protected] => index
                    [_controllerKey:protected] => controller
                    [_action:protected] => index
                    [_actionKey:protected] => action
                )

        )

)
error page