public function home()
    {
        $json = $this->container->json;

        // Get Piton Engine version from composer.lock
        if (null === $definition = $json->getJson(ROOT_DIR . '/composer.lock')) {
            $this->setAlert('danger', 'Error Reading composer.lock', $json->getErrorMessages());
        }

        $engineKey = array_search('pitoncms/engine', array_column($definition->packages, 'name'));
        $engineVersion = $definition->packages[$engineKey]->version;

        return $this->render('home.html', ['pitonEngineVersion' => $engineVersion]);
    }
public function home()
    {
        $json = $this->container->json;

        // Get Piton Engine version from composer.lock
        if (null === $definition = $json->getJson(ROOT_DIR . '/composer.lock')) {
            $this->setAlert('danger', 'Error Reading composer.lock', $json->getErrorMessages());
        }

        $engineKey = array_search('pitoncms/engine', array_column($definition->packages, 'name'));
        $engineVersion = $definition->packages[$engineKey]->version;

        return $this->render('home.html', ['pitonEngineVersion' => $engineVersion]);
    }
public function home ( ) { $ json = $ this -> container -> json ; // Get Piton Engine version from composer.lock if ( null === $ definition = $ json -> getJson ( ROOT_DIR . '/composer.lock' ) ) { $ this -> setAlert ( 'danger' , 'Error Reading composer.lock' , $ json -> getErrorMessages ( ) ) ; } $ engineKey = array_search ( 'pitoncms/engine' , array_column ( $ definition -> packages , 'name' ) ) ; $ engineVersion = $ definition -> packages [ $ engineKey ] -> version ; return $ this -> render ( 'home.html' , [ 'pitonEngineVersion' => $ engineVersion ] ) ; }
Admin Home Page

@param void
Admin Home Page