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


PHP Theme::uses方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     if (\Auth::check()) {
         view()->share('auth', \Auth::user());
     }
     $this->theme = \Theme::uses('ace');
 }
开发者ID:spetross,项目名称:ugvoice,代码行数:7,代码来源:FrontController.php

示例2: getDisclaimer

 public function getDisclaimer()
 {
     $theme = Theme::uses('notebook')->layout('blue');
     $theme->setMenu('home.disclaimer');
     $params = array();
     return $theme->scope('home.disclaimer', $params)->render();
 }
开发者ID:marwanxx,项目名称:solatjakim-api-site,代码行数:7,代码来源:HomeController.php

示例3: viewExam

 public function viewExam($tid)
 {
     $theme = Theme::uses('site')->layout('default');
     $theme->appendTitle('- Do Exam');
     $view = ['id' => $tid];
     return $theme->scope('exam.view', $view)->render();
 }
开发者ID:eufelipemartins,项目名称:edlara,代码行数:7,代码来源:ExamController.php

示例4: getIndex

 public function getIndex()
 {
     $theme = Theme::uses('notebook')->layout('blue');
     $theme->setMenu('reference.index');
     $params = array();
     return $theme->scope('reference.index', $params)->render();
 }
开发者ID:marwanxx,项目名称:solatjakim-api-site,代码行数:7,代码来源:ReferenceController.php

示例5: setUserEntityTheme

 public function setUserEntityTheme($file, $dataarr)
 {
     $getpersonalcount = DB::table('tbl_bankaccounts')->leftjoin('tbl_bankbranches', 'bankaccount_branch', '=', 'branch_id')->leftjoin('tbl_banks', 'branch_bankid', '=', 'bank_id')->where('bank_isproduct', '0')->where('bankaccount_userentity', 'Personal')->where('bankaccount_createdby', Auth::user()->id)->count();
     $getbusinesscount = DB::table('tbl_bankaccounts')->leftjoin('tbl_bankbranches', 'bankaccount_branch', '=', 'branch_id')->leftjoin('tbl_banks', 'branch_bankid', '=', 'bank_id')->where('bank_isproduct', '0')->where('bankaccount_userentity', 'Business')->where('bankaccount_createdby', Auth::user()->id)->count();
     $resultbViewAcctype = DB::table('tbl_bankaccounttypes')->get();
     $resultbViewAcctypearr = array();
     foreach ($resultbViewAcctype as $data) {
         $resultbViewAcctypearr[$data->accounttype_id] = $data->accounttype_name;
     }
     $resultbViewBanks = DB::table('tbl_banks')->where('bank_isproduct', 0)->where('bank_status', '1')->orderBy('bank_name', 'ASC')->get();
     $resultbViewBanksarr = array();
     foreach ($resultbViewBanks as $data) {
         $resultbViewBanksarr[$data->bank_id] = $data->bank_name;
     }
     $resultbViewBankbranchs = DB::table('tbl_bankbranches')->where("branch_bankid", key($resultbViewBanksarr))->where("branch_status", "1")->get();
     $resultbViewBankBrancharr = array();
     foreach ($resultbViewBankbranchs as $data) {
         $resultbViewBankBrancharr[$data->branch_id] = $data->branch_name;
     }
     if ($getpersonalcount <= 0 and $getbusinesscount <= 0) {
         $data = array('bankaccttype' => $resultbViewAcctypearr, 'bankname' => $resultbViewBanksarr, 'bankbranch' => $resultbViewBankBrancharr);
         $MyTheme = Theme::uses('fonebayad')->layout('ezibills_9_0');
         return $MyTheme->of('registration.firstloginaddbankacct', $data)->render();
     } else {
         //            $MyTheme = Theme::uses('fonebayad')->layout('ezibills_9_0');
         $MyTheme = Theme::uses('fonebayad')->layout('newDefault_myBills');
         return $MyTheme->of($file, $dataarr)->render();
     }
 }
开发者ID:bokbok123,项目名称:ORS,代码行数:29,代码来源:GlobalController.php

示例6: update

 public function update()
 {
     $validator = Validator::make(Input::all(), array('schoolname' => 'required|min:3|max:256', 'schoolnameabbr' => 'required|alpha|min:2|max:10', 'schooladdress' => 'required|min:4|max:512', 'logo' => 'required', 'adminsitename' => 'required|min:2|max:256', 'systemurl' => 'required|url', 'url' => 'url|required', 'cache' => "required|integer"));
     if ($validator->fails()) {
         Input::flash();
         return Redirect::to('/settings')->withErrors($validator);
     }
     $schoolname = Input::get('schoolname');
     Setting::set('system.schoolname', $schoolname);
     Setting::set('system.schoolnameabbr', Input::get('schoolnameabbr'));
     Setting::set('system.schooladdress', Input::get('schooladdress'));
     Setting::set('system.logo_src', Input::get('logo'));
     Setting::set('system.adminsitename', Input::get('adminsitename'));
     Setting::set('app.url', Input::get('url'));
     Setting::set('app.captcha', Input::get('captcha'));
     Setting::set('system.dashurl', Input::get('systemurl'));
     Setting::set('system.dashurlshort', Input::get('systemurlshort'));
     Setting::set('system.siteurlshort', Input::get('siteurlshort'));
     Setting::set('system.cache', Input::get('cache'));
     $theme = Theme::uses('dashboard')->layout('default');
     $view = array('name' => 'Dashboard Settings');
     $theme->breadcrumb()->add([['label' => 'Dashboard', 'url' => Setting::get('system.dashurl')], ['label' => 'Dashboard', 'url' => Setting::get('system.dashurl') . '/settings']]);
     $theme->appendTitle(' - Settings');
     return $theme->scope('settings', $view)->render();
 }
开发者ID:eufelipemartins,项目名称:edlara,代码行数:25,代码来源:SettingsController.php

示例7: modder

 public function modder($dash, $id, $mode)
 {
     if (Request::getMethod() == 'GET') {
         switch ($mode) {
             case 'delete':
                 $validator = Validator::make(['id' => $id], ['id' => 'required|exists:subjects,id']);
                 if ($validator->fails()) {
                     return Redirect::to(URL::previous());
                 }
                 self::delete($id);
                 return Redirect::to(URL::previous());
             case 'update':
                 $validator = Validator::make(['id' => $id], ['id' => 'required|exists:subjects,id']);
                 if ($validator->fails()) {
                     return Redirect::to(URL::previous());
                 }
                 $theme = Theme::uses('dashboard')->layout('default');
                 $view = ['id' => $id];
                 $theme->setTitle(Setting::get('system.adminsitename') . ' Subjects');
                 $theme->breadcrumb()->add([['label' => 'Dashboard', 'url' => Setting::get('system.dashurl')], ['label' => 'Subjects', 'url' => Setting::get('system.dashurl') . '/subjects'], ['label' => $id, 'url' => Setting::get('system.dashurl') . '/subject/edit/' . $id . '/update']]);
                 return $theme->scope('subject.update', $view)->render();
             case 'view':
                 $validator = Validator::make(['id' => $id], ['id' => 'required|exists:subjects,id']);
                 if ($validator->fails()) {
                     return Redirect::to(URL::previous());
                 }
                 $theme = Theme::uses('dashboard')->layout('default');
                 $view = ['id' => $id];
                 $theme->setTitle(Setting::get('system.adminsitename') . ' Subjects');
                 $theme->breadcrumb()->add([['label' => 'Dashboard', 'url' => Setting::get('system.dashurl')], ['label' => 'Subjects', 'url' => Setting::get('system.dashurl') . '/subjects'], ['label' => $id, 'url' => Setting::get('system.dashurl') . '/subject/edit/' . $id . '/update']]);
                 return $theme->scope('subject.view', $view)->render();
             case 'create':
                 $theme = Theme::uses('dashboard')->layout('default');
                 $view = ['id' => 0];
                 $theme->setTitle(Setting::get('system.adminsitename') . ' Subjects');
                 $theme->breadcrumb()->add([['label' => 'Dashboard', 'url' => Setting::get('system.dashurl')], ['label' => 'Subjects', 'url' => Setting::get('system.dashurl') . '/subjects'], ['label' => $id, 'url' => Setting::get('system.dashurl') . '/subject/edit/0/update']]);
                 return $theme->scope('subject.create', $view)->render();
             default:
                 return "UNAUTHORISED METHOD";
                 break;
         }
     }
     if (Request::getMethod() == 'POST') {
         switch ($mode) {
             case 'update':
                 self::update($id);
                 return Redirect::to('/subjects');
             case 'create':
                 if ($id == 0) {
                     self::create();
                     return Redirect::to('/subjects');
                 }
                 return Redirect::to(URL::previous());
             default:
                 Log::error('UnAuthorised Access at Subjects Page.');
                 return Redirect::to('dash');
         }
     }
 }
开发者ID:eufelipemartins,项目名称:edlara,代码行数:59,代码来源:SubjectController.php

示例8: GET_createGroupForm

 public function GET_createGroupForm()
 {
     $theme = Theme::uses('notebook')->layout('main');
     $theme->setMenu('user.group');
     $routeCollection = Route::getRoutes();
     $params = array('routes' => $routeCollection);
     return $theme->scope('user.group-create', $params)->render();
 }
开发者ID:kayrules,项目名称:laravel-starter,代码行数:8,代码来源:GroupController.php

示例9: __construct

 public function __construct()
 {
     //change theme if user is logged
     if (Auth::check()) {
         $this->theme = Theme::uses('dashboard')->layout('default');
     } else {
         $this->theme = Theme::uses('default')->layout('default');
     }
 }
开发者ID:bokbok123,项目名称:ORS,代码行数:9,代码来源:PublicController.php

示例10: view

 public function view($dash, $tid)
 {
     $theme = Theme::uses('dashboard')->layout('default');
     $view = array('name' => 'Dashboard Home', 'tutorialid' => $tid);
     $theme->breadcrumb()->add([['label' => 'Dashboard', 'url' => Setting::get('system.dashurl')]]);
     $theme->appendTitle(' - Dashboard');
     $theme->asset()->add('jquery', '/js/jquery-2.0.2.min.js');
     $theme->asset()->add('ckeditor', '/js/ckeditor/ckeditor.js');
     $theme->asset()->add('ckeditor-jquery', '/js/ckeditor/adapters/jquery.js');
     return $theme->scope('tutorial.presentation', $view)->render();
 }
开发者ID:eufelipemartins,项目名称:edlara,代码行数:11,代码来源:PresentationController.php

示例11: GET_index

 public function GET_index()
 {
     $theme = Theme::uses('notebook')->layout('landing');
     $theme->setMenu('home.index');
     $theme->asset()->usePath()->add('landing', 'css/landing.css');
     $theme->asset()->container('post-scripts')->usePath()->add('laravel1', 'js/app.plugin.js');
     $theme->asset()->container('post-scripts')->usePath()->add('laravel2', 'js/scroll/smoothscroll.js');
     $theme->asset()->container('post-scripts')->usePath()->add('laravel3', 'js/landing.js');
     $params = array();
     return $theme->scope('home.index', $params)->render();
 }
开发者ID:kayrules,项目名称:laravel-starter,代码行数:11,代码来源:HomeController.php

示例12: setupLayout

 /**
  * Setup the layout used by the controller.
  *
  * @return void
 
 protected function setupLayout()
 {
         if ( ! is_null($this->layout))
         {
                 $this->layout = View::make($this->layout);
         }
 }
 */
 public function initTheme()
 {
     $this->theme = Theme::uses('default')->layout('default');
     // NOTE: jquery should be loaded first
     $this->theme->asset()->add('jquery', 'js/jquery.min.js');
     $this->theme->asset()->add('bootstrap-js', 'js/bootstrap.min.js');
     $this->theme->asset()->add('core-script', 'js/scripts.js');
     $this->theme->asset()->add('bootstrap-css', 'css/bootstrap.min.css');
     $this->theme->asset()->add('bootstrap-theme', 'css/bootstrap-theme.min.css');
     $this->theme->asset()->add('core-style', 'css/style.css');
 }
开发者ID:alaluces,项目名称:dncms,代码行数:24,代码来源:BaseController.php

示例13: Rooms

 public function Rooms()
 {
     $Amenities = new Amenities();
     $rooms = $Amenities->getAmenitiesGroupByName('Room');
     $am_room = array();
     foreach ($rooms as $room) {
         $data = array('am_id' => $room->am_id, 'am_name' => $room->am_name, 'am_description' => $room->am_description, 'am_quantity' => $room->am_quantity, 'am_price' => number_format($room->am_price, 2), 'am_capacity' => $room->am_capacity);
         array_push($am_room, $data);
     }
     $MyTheme = Theme::uses('dashboard')->layout('default');
     return $MyTheme->of('dashboard.amenities.rooms', array('rooms' => $am_room))->render();
 }
开发者ID:axisssss,项目名称:ORS,代码行数:12,代码来源:AmenitiesController.php

示例14: index

 public function index()
 {
     $MyTheme = Theme::uses('admin')->layout('adminLayout');
     $Amenities = new Amenities();
     $aMe = $Amenities->getAllAmenitiesGroup();
     $allAm = array();
     $allAm[0] = 'Item Type';
     foreach ($aMe as $aM) {
         $allAm[$aM->ag_id] = $aM->ag_groupname;
     }
     $data = array('item_type' => $allAm);
     return $MyTheme->of('admin.Amenities', $data)->render();
 }
开发者ID:axisssss,项目名称:ORS,代码行数:13,代码来源:AdminAmenitiesController.php

示例15: examupdateget

 public function examupdateget($dash, $id)
 {
     if (Exams::find($id)) {
         $theme = Theme::uses('dashboard')->layout('default');
         $view = array('name' => 'Dashboard Assessment Update', 'id' => $id);
         $theme->breadcrumb()->add([['label' => 'Dashboard', 'url' => Setting::get('system.dashurl')], ['label' => 'Exams', 'url' => Setting::get('system.dashurl') . '/exams'], ['label' => $id, 'url' => Setting::get('system.dashurl') . '/exam/' . $id]]);
         return $theme->scope('exam.update', $view)->render();
     }
     $theme = Theme::uses('dashboard')->layout('default');
     $view = array('name' => 'Dashboard Assessment Update', 'id' => $id);
     $theme->breadcrumb()->add([['label' => 'Dashboard', 'url' => Setting::get('system.dashurl')], ['label' => 'Exams', 'url' => Setting::get('system.dashurl') . '/exams'], ['label' => $id, 'url' => Setting::get('system.dashurl') . '/exam/' . $id]]);
     return $theme->scope('exam.create', $view)->render();
 }
开发者ID:eufelipemartins,项目名称:edlara,代码行数:13,代码来源:HttpController.php


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