当前位置: 首页>>代码示例>>PHP>>正文


PHP cache::index方法代码示例

本文整理汇总了PHP中cache::index方法的典型用法代码示例。如果您正苦于以下问题:PHP cache::index方法的具体用法?PHP cache::index怎么用?PHP cache::index使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在cache的用法示例。


在下文中一共展示了cache::index方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: template

 public function template($c, $page)
 {
     $conn = $this->conn($c);
     $cache = new cache();
     $text_general = $cache->index($c, "text_general");
     $data["text_general"] = json_decode($text_general, true);
     $welcomepage_categories = $cache->index($c, "welcomepage_categories");
     $data["welcomepage_categories"] = json_decode($welcomepage_categories, true);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     /* Upload Users profile picture */
     if (isset($_FILES["profileimage"]["name"])) {
         $model_template_upload_user_logo = new model_template_upload_user_logo();
         $upload = $model_template_upload_user_logo->upload($c);
     }
     $sql = 'SELECT `username`,`user_type`,`namelname`,`dob`,`email`,`mobile`,`address`,`picture` FROM `studio404_users` WHERE `id`=:id';
     $prepare = $conn->prepare($sql);
     $prepare->execute(array(":id" => $_SESSION["batumi_id"]));
     if ($prepare->rowCount() > 0) {
         $fetch = $prepare->fetch(PDO::FETCH_ASSOC);
         $data["userdata"] = $fetch;
     } else {
         redirect::url(WEBSITE);
     }
     $include = WEB_DIR . "/profilisredaqtireba.php";
     if (file_exists($include)) {
         @(include $include);
     } else {
         $controller = new error_page();
     }
 }
开发者ID:studio-404,项目名称:batumidata,代码行数:34,代码来源:profilisredaqtireba.php

示例2: template

 public function template($c, $page)
 {
     $conn = $this->conn($c);
     // connection
     $cache = new cache();
     $homepage_general = $cache->index($c, "homepage_general");
     $data["homepage_general"] = json_decode($homepage_general);
     /* languages */
     $languages = $cache->index($c, "languages");
     $data["languages"] = json_decode($languages);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     /* website menu header & footer */
     $menu_array = $cache->index($c, "main_menu");
     $menu_array = json_decode($menu_array);
     $model_template_main_menu = new model_template_main_menu();
     $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header");
     $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer");
     /* components */
     $components = $cache->index($c, "components");
     $data["components"] = json_decode($components);
     $include = WEB_DIR . "/contact.php";
     if (file_exists($include)) {
         @(include $include);
     } else {
         $controller = new error_page();
     }
 }
开发者ID:studio-404,项目名称:greek,代码行数:31,代码来源:contact.php

示例3: template

 public function template($c, $page)
 {
     $conn = $this->conn($c);
     $cache = new cache();
     $text_general = $cache->index($c, "text_general");
     $data["text_general"] = json_decode($text_general, true);
     $welcomepage_categories = $cache->index($c, "welcomepage_categories");
     $data["welcomepage_categories"] = json_decode($welcomepage_categories, true);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id';
     $prepare = $conn->prepare($sql);
     $prepare->execute(array(":id" => $_SESSION["batumi_id"]));
     if ($prepare->rowCount() > 0) {
         $fetch = $prepare->fetch(PDO::FETCH_ASSOC);
         $data["userdata"] = $fetch;
     } else {
         redirect::url(WEBSITE);
     }
     /* catalog list */
     $userlist = $cache->index($c, "userlist");
     $data['userlist'] = json_decode($userlist, true);
     $include = WEB_DIR . "/momxmareblismarTva.php";
     if (file_exists($include)) {
         @(include $include);
     } else {
         $controller = new error_page();
     }
 }
开发者ID:studio-404,项目名称:batumidata,代码行数:32,代码来源:momxmareblismarTva.php

示例4: template

 public function template($c)
 {
     $conn = $this->conn($c);
     // connection
     $module_template_recoverpassword = new module_template_recoverpassword();
     $data["message"] = $module_template_recoverpassword->change($c);
     $cache = new cache();
     $text_general = $cache->index($c, "text_general");
     $data["text_general"] = json_decode($text_general, true);
     /* languages */
     $languages = $cache->index($c, "languages");
     $data["languages"] = json_decode($languages);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     /* website menu header & footer */
     $menu_array = $cache->index($c, "main_menu");
     $menu_array = json_decode($menu_array);
     $model_template_main_menu = new model_template_main_menu();
     $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header");
     $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer");
     /* components */
     $components = $cache->index($c, "components");
     $data["components"] = json_decode($components);
     @(include $c["website.directory"] . "/recover.php");
 }
开发者ID:studio-404,项目名称:under-offitial-tradewithgeorgia,代码行数:28,代码来源:recover.php

示例5: template

 public function template($c, $page)
 {
     $cache = new cache();
     $include = WEB_DIR . "/worldmaponfullscreen.php";
     $languages = $cache->index($c, "languages");
     $data["languages"] = json_decode($languages);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     /* components */
     $components = $cache->index($c, "components");
     $data["components"] = json_decode($components);
     //vectormap_new
     $vectormap_new = $cache->index($c, "vectormap_new");
     $data["vectormap_new"] = json_decode($vectormap_new, true);
     // mapfilter
     $mapfilter = $cache->index($c, "mapfilter");
     $data["mapfilter"] = json_decode($mapfilter, true);
     $include = WEB_DIR . "/worldmaponfullscreen.php";
     if (file_exists($include)) {
         @(include $include);
     }
 }
开发者ID:studio-404,项目名称:trade,代码行数:25,代码来源:worldmaponfullscreen.php

示例6: template

 public function template($c)
 {
     $conn = $this->conn($c);
     // connection
     $cache = new cache();
     $data["homepage_general"] = $cache->index($c, "homepage_general");
     $data["homepage_files"] = $cache->index($c, "homepage_files");
     /* languages */
     $languages = $cache->index($c, "languages");
     $data["languages"] = json_decode($languages);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     /* website menu header & footer */
     $menu_array = $cache->index($c, "main_menu");
     $menu_array = json_decode($menu_array);
     if ($menu_array) {
         $model_template_main_menu = new model_template_main_menu();
         $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header");
         $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer");
     }
     /* components */
     $components = $cache->index($c, "components");
     $data["components"] = json_decode($components);
     /* multimedia */
     $multimedia = $cache->index($c, "multimedia");
     $data["multimedia"] = json_decode($multimedia);
     $news = $cache->index($c, "news");
     $data["news"] = json_decode($news);
     $events = $cache->index($c, "events");
     $data["events"] = json_decode($events);
     @(include $c["website.directory"] . "/homepage.php");
 }
开发者ID:studio-404,项目名称:batumidata,代码行数:35,代码来源:homepage.php

示例7: template

 public function template($c, $page)
 {
     $conn = $this->conn($c);
     $cache = new cache();
     $text_general = $cache->index($c, "text_general");
     $data["text_general"] = json_decode($text_general, true);
     /* categories list */
     $welcomepage_categories = $cache->index($c, "welcomepage_categories");
     $data["welcomepage_categories"] = json_decode($welcomepage_categories, true);
     /* all columns catalog table */
     $catalog_table_columns = $cache->index($c, "catalog_table_columns");
     $data["catalog_table_columns"] = json_decode($catalog_table_columns, true);
     /* all columns catalog table */
     // $select_form = $cache->index($c,"select_form");
     // $data["select_form"] = json_decode($select_form,true);
     $cid = Input::method("GET", "parent");
     $select_form = new select_form();
     $data["select_form"] = $select_form->form($c, $cid, LANG_ID);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id';
     $prepare = $conn->prepare($sql);
     $prepare->execute(array(":id" => $_SESSION["batumi_id"]));
     if ($prepare->rowCount() > 0) {
         $fetch = $prepare->fetch(PDO::FETCH_ASSOC);
         $data["userdata"] = $fetch;
     } else {
         redirect::url(WEBSITE);
     }
     if (Input::method("GET", "parent") != "") {
         $parent = 'SELECT `idx`,`title` FROM `studio404_pages` WHERE `idx`=:idx AND `cid`=4 AND `status`!=1 AND `lang`=:lang';
         $prepareParent = $conn->prepare($parent);
         $prepareParent->execute(array(":idx" => Input::method("GET", "parent"), ":lang" => LANG_ID));
         if ($prepareParent->rowCount() > 0) {
             $parent_fetch = $prepareParent->fetch(PDO::FETCH_ASSOC);
             $data["parent_idx"] = $parent_fetch["idx"];
             $data["parent_title"] = $parent_fetch["title"];
         } else {
             redirect::url(WEBSITE . LANG . "/katalogis-marTva");
         }
     } else {
         redirect::url(WEBSITE . LANG . "/katalogis-marTva");
     }
     $include = WEB_DIR . "/formismarTva.php";
     if (file_exists($include)) {
         @(include $include);
     } else {
         $controller = new error_page();
     }
 }
开发者ID:studio-404,项目名称:batumidata,代码行数:53,代码来源:formismarTva.php

示例8: template

    public function template($c, $page)
    {
        $conn = $this->conn($c);
        // connection
        $cache = new cache();
        $welcomepage_categories = $cache->index($c, "welcomepage_categories");
        $data["welcomepage_categories"] = json_decode($welcomepage_categories, true);
        /* language variables */
        $language_data = $cache->index($c, "language_data");
        $language_data = json_decode($language_data);
        $model_template_makevars = new model_template_makevars();
        $data["language_data"] = $model_template_makevars->vars($language_data);
        $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id';
        $prepare = $conn->prepare($sql);
        $prepare->execute(array(":id" => $_SESSION["batumi_id"]));
        if ($prepare->rowCount() > 0) {
            $fetch = $prepare->fetch(PDO::FETCH_ASSOC);
            $data["userdata"] = $fetch;
        } else {
            redirect::url(WEBSITE);
        }
        $sql2 = 'SELECT 
		`studio404_messages`.*, 
		`studio404_users`.`namelname` AS fromusername 
		FROM 
		`studio404_messages`, `studio404_users`
		WHERE 
		`studio404_messages`.`fromuser`="' . $_SESSION["batumi_id"] . '" AND 
		`studio404_messages`.`draft`=1 AND 
		NOT FIND_IN_SET("' . $_SESSION["batumi_id"] . '",`studio404_messages`.`status`) AND 
		`studio404_messages`.`tousers`=`studio404_users`.`id` 
		ORDER BY `studio404_messages`.`date` DESC LIMIT 20';
        $prepare2 = $conn->prepare($sql2);
        $prepare2->execute();
        if ($prepare2->rowCount() > 0) {
            $fetch2 = $prepare2->fetchAll(PDO::FETCH_ASSOC);
            $data["messages"] = $fetch2;
        } else {
            $data["messages"] = array();
        }
        $catalog_general = $cache->index($c, "catalog_general");
        $data["catalog_general"] = json_decode($catalog_general, true);
        $catalogitemsnovisiable = $cache->index($c, "catalogitemsnovisiable");
        $data["catalogitems"] = json_decode($catalogitemsnovisiable, true);
        $include = WEB_DIR . "/draft.php";
        if (file_exists($include)) {
            @(include $include);
        } else {
            $controller = new error_page();
        }
    }
开发者ID:studio-404,项目名称:batumidata,代码行数:51,代码来源:draft.php

示例9: template

 public function template($c)
 {
     $conn = $this->conn($c);
     // connection
     $cache = new cache();
     $team_general = $cache->index($c, "team_general");
     $data["team_general"] = json_decode($team_general, true);
     $team_list = $cache->index($c, "team_list");
     $data["team_list"] = json_decode($team_list);
     /* languages */
     $languages = $cache->index($c, "languages");
     $data["languages"] = json_decode($languages);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     /* website menu header & footer */
     $menu_array = $cache->index($c, "main_menu");
     $menu_array = json_decode($menu_array);
     $model_template_main_menu = new model_template_main_menu();
     $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header");
     $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer");
     /* website left menu */
     $left_menu = $cache->index($c, "left_menu");
     $left_menu = json_decode($left_menu);
     $data["left_menu"] = $model_template_main_menu->left($left_menu);
     /* breadcrups */
     $breadcrups = $cache->index($c, "breadcrups");
     $data["breadcrups"] = json_decode($breadcrups);
     /* components */
     $components = $cache->index($c, "components");
     $data["components"] = json_decode($components);
     @(include $c["website.directory"] . "/team.php");
 }
开发者ID:studio-404,项目名称:greek,代码行数:35,代码来源:team.php

示例10: template

 public function template($c)
 {
     $conn = $this->conn($c);
     // connection
     $cache = new cache();
     // $text_general = $cache->index($c,"text_general");
     // $data["text_general"] = json_decode($text_general,true);
     $files_ = $cache->index($c, "files_");
     $data["files_"] = json_decode($files_);
     /* breadcrups */
     $breadcrups = $cache->index($c, "breadcrups");
     $data["breadcrups"] = json_decode($breadcrups);
     @(include $c["website.directory"] . "/gallery.php");
 }
开发者ID:studio-404,项目名称:greek,代码行数:14,代码来源:gallery.php

示例11: template

 public function template($c)
 {
     $conn = $this->conn($c);
     // connection
     $cache = new cache();
     $homepage_general = $cache->index($c, "homepage_general");
     $data["homepage_general"] = json_decode($homepage_general);
     $text_general = $cache->index($c, "text_general");
     $data["text_general"] = json_decode($text_general, true);
     $photo_gallery_list = $cache->index($c, "photo_gallery_list");
     $data["photo_gallery_list"] = json_decode($photo_gallery_list);
     /* languages */
     $languages = $cache->index($c, "languages");
     $data["languages"] = json_decode($languages);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     /* website menu header & footer */
     $menu_array = $cache->index($c, "main_menu");
     $menu_array = json_decode($menu_array);
     $model_template_main_menu = new model_template_main_menu();
     $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header");
     $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer");
     /* website left menu */
     /* fotogallery */
     $fotogallery = $cache->index($c, "files_");
     $data["fotogallery"] = json_decode($fotogallery);
     /* components */
     $components = $cache->index($c, "components");
     $data["components"] = json_decode($components);
     @(include $c["website.directory"] . "/photogallery.php");
 }
开发者ID:studio-404,项目名称:greek,代码行数:34,代码来源:photogallery.php

示例12: template

 public function template($c)
 {
     $conn = $this->conn($c);
     // connection
     $cache = new cache();
     /* contact_page_data */
     $contact_page_data = $cache->index($c, "contact_page_data");
     $data["contact_data"] = json_decode($contact_page_data, true);
     $files_ = $cache->index($c, "files_");
     $data["files_"] = json_decode($files_);
     /* breadcrups */
     $breadcrups = $cache->index($c, "breadcrups");
     $data["breadcrups"] = json_decode($breadcrups);
     @(include $c["website.directory"] . "/gallery.php");
 }
开发者ID:studio-404,项目名称:trade,代码行数:15,代码来源:gallery.php

示例13: template

 public function template($c, $page)
 {
     $conn = $this->conn($c);
     $cache = new cache();
     $text_general = $cache->index($c, "text_general");
     $data["text_general"] = json_decode($text_general, true);
     $welcomepage_categories = $cache->index($c, "welcomepage_categories");
     $data["welcomepage_categories"] = json_decode($welcomepage_categories, true);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     /* Upload Users profile picture */
     if (isset($_FILES["profileimage"]["name"])) {
         $model_template_upload_user_logo = new model_template_upload_user_logo();
         $upload = $model_template_upload_user_logo->upload($c);
     }
     $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id';
     $prepare = $conn->prepare($sql);
     $prepare->execute(array(":id" => $_SESSION["batumi_id"]));
     if ($prepare->rowCount() > 0) {
         $fetch = $prepare->fetch(PDO::FETCH_ASSOC);
         $data["userdata"] = $fetch;
     } else {
         redirect::url(WEBSITE);
     }
     if (Input::method("GET", "parent") != "") {
         $parent = 'SELECT `idx`,`title` FROM `studio404_pages` WHERE `idx`=:idx AND `cid`=4 AND `status`!=1 AND `lang`=:lang';
         $prepareParent = $conn->prepare($parent);
         $prepareParent->execute(array(":idx" => Input::method("GET", "parent"), ":lang" => LANG_ID));
         if ($prepareParent->rowCount() > 0) {
             $parent_fetch = $prepareParent->fetch(PDO::FETCH_ASSOC);
             $data["parent_idx"] = $parent_fetch["idx"];
             $data["parent_title"] = $parent_fetch["title"];
         } else {
             redirect::url(WEBSITE . LANG . "/katalogis-marTva/damateba");
         }
     }
     $include = WEB_DIR . "/damateba.php";
     if (file_exists($include)) {
         @(include $include);
     } else {
         $controller = new error_page();
     }
 }
开发者ID:studio-404,项目名称:batumidata,代码行数:46,代码来源:damateba.php

示例14: template

    public function template($c, $page)
    {
        $conn = $this->conn($c);
        // connection
        $cache = new cache();
        $welcomepage_categories = $cache->index($c, "welcomepage_categories");
        $data["welcomepage_categories"] = json_decode($welcomepage_categories, true);
        /* language variables */
        $language_data = $cache->index($c, "language_data");
        $language_data = json_decode($language_data);
        $model_template_makevars = new model_template_makevars();
        $data["language_data"] = $model_template_makevars->vars($language_data);
        $sql = 'SELECT `namelname`,`picture` FROM `studio404_users` WHERE `id`=:id';
        $prepare = $conn->prepare($sql);
        $prepare->execute(array(":id" => $_SESSION["batumi_id"]));
        if ($prepare->rowCount() > 0) {
            $fetch = $prepare->fetch(PDO::FETCH_ASSOC);
            $data["userdata"] = $fetch;
        } else {
            redirect::url(WEBSITE);
        }
        $data["cataloglist_names"] = new cataloglist_names();
        $data["getusername"] = new getusername();
        $labellists = new labellists();
        $data["labellists"] = $labellists->loadlabels($c);
        $sql2 = 'SELECT 
		`studio404_module_item`.* 
		FROM `studio404_module_item` WHERE 
		`module_idx`=25 AND 
		`studio404_module_item`.`idx`=:idx AND 
		`studio404_module_item`.`lang`=:lang AND 
		`studio404_module_item`.`status`!=:status';
        $prepare2 = $conn->prepare($sql2);
        $prepare2->execute(array(":idx" => Input::method("GET", "view"), ":lang" => LANG_ID, ":status" => 1));
        if ($prepare2->rowCount() > 0) {
            $data["fetch"] = $prepare2->fetch(PDO::FETCH_ASSOC);
        } else {
            redirect::url(WEBSITE . LANG . "/welcomesystem");
        }
        $include = WEB_DIR . "/monacemisnaxva.php";
        if (file_exists($include)) {
            @(include $include);
        } else {
            $controller = new error_page();
        }
    }
开发者ID:studio-404,项目名称:batumidata,代码行数:46,代码来源:monacemisnaxva.php

示例15: template

 public function template($c)
 {
     $cache = new cache();
     $text_general = $cache->index($c, "text_general");
     $data["text_general"] = json_decode($text_general, true);
     /* languages */
     $languages = $cache->index($c, "languages");
     $data["languages"] = json_decode($languages);
     /* language variables */
     $language_data = $cache->index($c, "language_data");
     $language_data = json_decode($language_data);
     $model_template_makevars = new model_template_makevars();
     $data["language_data"] = $model_template_makevars->vars($language_data);
     /* website menu header & footer */
     $menu_array = $cache->index($c, "main_menu");
     $menu_array = json_decode($menu_array);
     $model_template_main_menu = new model_template_main_menu();
     $data["main_menu"] = $model_template_main_menu->nav($menu_array, "header");
     $data["footer_menu"] = $model_template_main_menu->nav($menu_array, "footer");
     /* website left menu */
     $left_menu = $cache->index($c, "left_menu");
     $left_menu = json_decode($left_menu);
     $data["left_menu"] = $model_template_main_menu->left($left_menu);
     /* breadcrups */
     $breadcrups = $cache->index($c, "breadcrups");
     $data["breadcrups"] = json_decode($breadcrups);
     /* components */
     $components = $cache->index($c, "components");
     $data["components"] = json_decode($components);
     $include = WEB_DIR . "/loadmap.php";
     if (file_exists($include)) {
         @(include $include);
     }
 }
开发者ID:studio-404,项目名称:under-offitial-tradewithgeorgia,代码行数:34,代码来源:loadmap.php


注:本文中的cache::index方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。