src/Controller/ToolUserController.php
public function renderToolUserModalHandlerNewAction()
    {
        $melisKey = $this->params()->fromRoute('melisKey', '');

        // declare the Tool service that we will be using to completely create our tool.
        $melisTool = $this->getServiceLocator()->get('MelisCoreTool');

        // tell the Tool what configuration in the app.tool.php that will be used.
        $melisTool->setMelisToolKey('meliscore', $this::TOOL_KEY);

        $view = new ViewModel();
        $view->melisKey = $melisKey;
        $view->newUserModal = $melisTool->getModal('meliscore_tool_user_new_modal');

        return $view;
    }
public function renderToolUserModalHandlerNewAction()
    {
        $melisKey = $this->params()->fromRoute('melisKey', '');

        // declare the Tool service that we will be using to completely create our tool.
        $melisTool = $this->getServiceLocator()->get('MelisCoreTool');

        // tell the Tool what configuration in the app.tool.php that will be used.
        $melisTool->setMelisToolKey('meliscore', $this::TOOL_KEY);

        $view = new ViewModel();
        $view->melisKey = $melisKey;
        $view->newUserModal = $melisTool->getModal('meliscore_tool_user_new_modal');

        return $view;
    }
public function renderToolUserModalHandlerNewAction ( ) { $ melisKey = $ this -> params ( ) -> fromRoute ( 'melisKey' , '' ) ; // declare the Tool service that we will be using to completely create our tool. $ melisTool = $ this -> getServiceLocator ( ) -> get ( 'MelisCoreTool' ) ; // tell the Tool what configuration in the app.tool.php that will be used. $ melisTool -> setMelisToolKey ( 'meliscore' , $ this :: TOOL_KEY ) ; $ view = new ViewModel ( ) ; $ view -> melisKey = $ melisKey ; $ view -> newUserModal = $ melisTool -> getModal ( 'meliscore_tool_user_new_modal' ) ; return $ view ; }
Handles the rights if Add Modal Content should be displayed for the user
@return \Zend\View\Model\ViewModel
Handles the rights if Add Modal Content should be displayed for the user