當前位置: 首頁>>代碼示例>>PHP>>正文


PHP pathang::render方法代碼示例

本文整理匯總了PHP中pathang::render方法的典型用法代碼示例。如果您正苦於以下問題:PHP pathang::render方法的具體用法?PHP pathang::render怎麽用?PHP pathang::render使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pathang的用法示例。


在下文中一共展示了pathang::render方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: krishna

 public function krishna()
 {
     $request = pathang::getInstance('request');
     $request->page = 'color';
     $request->color = 'red';
     pathang::render('sample', 'krishna');
 }
開發者ID:kenjiro7,項目名稱:pathang-framework,代碼行數:7,代碼來源:sample.php

示例2: showMembers

 public function showMembers()
 {
     $count = pathang::getInstance('pathang')->FEEDSTACK->MEMBER_COUNT;
     $from = pathang::getInstance('request')->get('from');
     if ($from) {
         $members = pathang::GetModel('usermain')->listMembers($count, $from);
     } else {
         $members = pathang::GetModel('usermain')->listMembers($count);
     }
     $users = new stdClass();
     foreach ($members as $a => $b) {
         $temp = new stdClass();
         foreach ($b as $x => $y) {
             $temp->{$x} = $y;
         }
         $temp->image = '';
         $temp->profile_link = ROOT . $temp->username;
         $users->{$a} = $temp;
     }
     $result = pathang::GetHelper('userlog')->getUsersImage($users);
     $basket = pathang::GetInstance('basket');
     $basket->set('members', $result);
     $basket->set('count', $count);
     $basket->set('heading', 'Members');
     if ($from) {
         pathang::render('members', 'members_loadmore');
     } else {
         pathang::render('members');
     }
 }
開發者ID:adrixnac,項目名稱:RedSocial,代碼行數:30,代碼來源:usermain.php

示例3: theme

 public function theme()
 {
     $request = pathang::getInstance('request');
     $request->page = 'color';
     $request->color = 'voilet';
     pathang::render('sample', 'themes');
 }
開發者ID:kenjiro7,項目名稱:pathang-framework,代碼行數:7,代碼來源:root.php

示例4: admin

 public function admin()
 {
     $n2 = strtoupper(pathang::getInstance('node')->get('n2'));
     $liveuser_id = null;
     $liveuser = pathang::GetInstance('session')->get('liveuser');
     if ($liveuser) {
         $liveuser_id = $liveuser->id;
     }
     $isadmin = pathang::getModel('userlog')->isAdmin($liveuser_id);
     if (!$isadmin) {
         pathang::GetInstance('pathang')->SITE->PAGE = 'login';
         $basket = pathang::GetInstance('basket');
         $basket->set('heading', 'Restricted Access !');
         $basket->set('message', 'You dont have enough privilege to acces this page. Sorry for the inconvenience. ');
         pathang::render('general', 'errorpage');
         exit;
     } else {
         if ($n2 == null) {
             $n2 = 'main';
         }
         pathang::getController('admin')->{$n2}();
     }
 }
開發者ID:gibranda,項目名稱:Feedstack,代碼行數:23,代碼來源:root.php

示例5: logout

 public function logout()
 {
     $session = pathang::getInstance('session');
     $session->destroy();
     pathang::getInstance('pathang')->SITE->PAGE = 'login';
     pathang::render('userlog', 'login');
 }
開發者ID:adrixnac,項目名稱:RedSocial,代碼行數:7,代碼來源:userlog.php

示例6: crop

 public function crop()
 {
     $user = pathang::getInstance('node')->get('n1');
     $basket = pathang::GetInstance('basket');
     $liveuser = pathang::getInstance('session')->get('liveuser')->username;
     if ($user == $liveuser) {
         pathang::getInstance('pathang')->SITE->PAGE = 'no_responsive';
         pathang::render('profile', 'crop');
     } else {
         pathang::getInstance('pathang')->SITE->PAGE = 'login';
         $basket->set('heading', 'Restricted Access');
         $basket->set('message', 'You dont have enough permission to access this page.');
         pathang::render('general', 'errorpage');
         exit;
     }
 }
開發者ID:adrixnac,項目名稱:RedSocial,代碼行數:16,代碼來源:profile.php

示例7: page

 public function page()
 {
     $request = pathang::getInstance('request');
     $basket = pathang::getInstance('basket');
     if ($request->get('post')) {
         file_put_contents('app/views/general/about.php', $request->Get('about'));
         file_put_contents('app/views/general/terms.php', $request->Get('terms'));
         file_put_contents('app/views/general/contact.php', $request->Get('contact'));
     }
     $about = file_get_contents(ROOT . 'about.html');
     $terms = file_get_contents(ROOT . 'terms.html');
     $contact = file_get_contents(ROOT . 'contact.html');
     $basket->set('about', $about);
     $basket->set('terms', $terms);
     $basket->set('contact', $contact);
     pathang::render('admin', 'page');
 }
開發者ID:adrixnac,項目名稱:RedSocial,代碼行數:17,代碼來源:admin.php

示例8: showLikers

 public function showLikers()
 {
     $request = pathang::getInstance('request');
     $feed_id = $request->get('feed_id');
     $likersArray = pathang::getModel('feed')->feedLikers($feed_id);
     $feedLikers = new stdclass();
     foreach ($likersArray as $a => $b) {
         $feedLikerObj = new stdClass();
         foreach ($b as $c => $d) {
             $feedLikerObj->{$c} = $d;
         }
         $feedLikerObj->image = '';
         $feedLikerObj->profile_link = ROOT . $feedLikerObj->username;
         $feedLikerObj->image = pathang::getHelper('userlog')->getUserImage($feedLikerObj);
         $feedLikers->{$a} = $feedLikerObj;
     }
     pathang::getInstance('basket')->set('likers', $feedLikers);
     pathang::render('feed', 'feed_likers');
 }
開發者ID:adrixnac,項目名稱:RedSocial,代碼行數:19,代碼來源:feed.php


注:本文中的pathang::render方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。