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


PHP L::getSessionValue方法代码示例

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


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

示例1: function

     $app->get('/flexiload/:id', function ($customer_id) use($app) {
         $app->view->setData('form_action', BASEURL . "dashboard/payment/add/flexiload/confirm");
         $app->view->setData('customer_id', $customer_id);
         $app->render(new u('payment.flexiload.request'));
     });
     $app->post('flexiload/confirm/', function () use($app) {
         $app->view->setData('form_action', BASEURL . "dashboard/payment/add/flexiload/confirm/process");
         $app->view->setData('form_title', "Are you confirm?");
         $app->view->setData('payment_amount', $app->request()->post('payment_amount'));
         $app->view->setData('payment_memo', $app->request()->post('payment_memo'));
         $app->view->setData('customer_id', $app->request()->post('customer_id'));
         $app->render(new u('payment.flexiload.request_confirm'));
     });
     $app->get('/flexiload/confirm/process', function () use($app) {
         $payment = new payment();
         $payment->who_is_paying = L::getSessionValue('usid');
         $payment->who_is_paying = $app->request()->post();
         $payment->payment_type = 'return';
         $payment->save();
         if ($payment->fails()) {
             $app->view->setData('error', 1);
             $app->view->setData('msg', $payment->getError());
             $app->render(new u('msg'));
         } else {
             $app->view->setData('success', 1);
             $app->view->setData('msg', "Succesfully Payment  Returned.");
             $app->render(new u('msg'));
         }
     });
     //Flexiload End
 });
开发者ID:bogiesoft,项目名称:Slim_PHP_Project,代码行数:31,代码来源:payment_route.php

示例2: u

         $app->view->setData('success', 1);
         $app->view->setData('msg', "Succesfully Flexiload Request Accepted.");
         $app->render(new u('msg'));
     }
 });
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 $app->map('/list/:action/:page', function ($action, $page) use($app) {
     $page = isset($page) ? intval($page) : 1;
     $limit = MAX_RESULT_SET;
     $start = ($page - 1) * $limit;
     $us_id = L::getSessionValue('usid');
     $rows = R::getAll("select *from flexiload WHERE  user_id='{$us_id}' and status='{$action}'  order by id desc LIMIT {$start}, {$limit}");
     $numOfRows = R::count('flexiload', ' user_id=? and status=? ', array($us_id, $action));
     $pagination = new Pagination();
     $pagination->current_page = $page;
     $pagination->numOfRows = $numOfRows;
     $pagination->page_url = ${$page_url};
     $navigation = $pagination->getNavigationUrl();
     $app->view->setData('navigation', $navigation);
     $app->render(new u('flexiload.list'));
     unset($rows);
 })->via('GET', 'POST');
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
开发者ID:bogiesoft,项目名称:Slim_PHP_Project,代码行数:31,代码来源:flexiload_route.php


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