Beispiel #1
0
 public function indexAction()
 {
     // action body
     $partner = new Partner();
     $listPartner = $partner->getAllPartnerContent();
     $this->view->listPartner = $listPartner;
     $footer = $this->view->render('partials/footer.phtml');
     $this->view->placeholder('footer')->set($footer);
     $intro = new Intro();
     $list = $intro->getAllIntroContent();
     $this->view->list = $list;
 }
Beispiel #2
0
<?php

/*
|----------------------------------------------------------------------------------
| App Routes
|----------------------------------------------------------------------------------
| here for framework routes , all http request should put it here with their events
| put it here with their events
| 
**/
get("hello/{step}", function ($step) {
    return Intro::steps($step);
});
Beispiel #3
0
    if (isset($_GET['clanok'])) {
        require_once $homedir . "modules/Article_manager.php";
        $program = new Article_manager($db, dirname(__FILE__));
        $label = $program->label();
        $style = "articles.css";
    } else {
        if (isset($_GET['rozne'])) {
            if (!strcmp($_GET['rozne'], "herna")) {
                require_once $homedir . "modules/GameCenter.php";
                $program = new GameCenter();
                $label = $program->label();
                $style = "games.css";
            }
        } else {
            require_once $homedir . "modules/Intro.php";
            $program = new Intro();
            $style = "intro.css";
        }
    }
}
/*
$label="";

$type="";
$module=null;

if(isset($_GET['typ'])) $type=$db->escape_string($_GET['typ']);

switch($type){
    case "tema":
        require_once $homedir."modules/Theme.php";
Beispiel #4
0
 public function activeAction()
 {
     $id = $this->_getParam('id', 0);
     $intro = new Intro();
     $active = $intro->getIntroDetail($id);
     if ($active['active'] == "1") {
         $intro->setActive($id, 0);
         echo "0";
     } else {
         if ($active['active'] == "0") {
             $intro->setActive($id, 1);
             echo "1";
         } else {
             echo "3";
         }
     }
     $this->_helper->layout->disableLayout();
     $this->_helper->viewRenderer->setNoRender();
 }