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


PHP ContentController::renderWith方法代碼示例

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


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

示例1: executeURL

 /**
  * executes payment: redirects to Authorize.net
  *
  * @param Object $obj
  *
  */
 protected function executeURL($obj)
 {
     Requirements::clear();
     Requirements::javascript(THIRDPARTY_DIR . "/jquery/jquery.js");
     $page = new Page();
     if ($obj->fingerprint) {
         $page->Title = 'Redirection to Authorize.Net...';
         $logoLink = $this->Config()->get("logo_link");
         $page->Logo = "";
         if ($logoLink) {
             $page->Logo = '<img src="' . $logoLink . '" alt="Payments powered by Authorize.Net" />';
         }
         $page->Form = $this->AuthorizeDotNetForm($obj);
         $controller = new ContentController($page);
         //Requirements::block(THIRDPARTY_DIR."/jquery/jquery.js");
         //Requirements::javascript(Director::protocol()."ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js");
         return new Payment_Processing($controller->renderWith('PaymentProcessingPage'));
     } else {
         $page->Title = 'Sorry, Authorize.Net can not be contacted at the moment ...';
         $page->Logo = '';
         $page->Form = 'Sorry, an error has occurred in contacting the Payment Processing Provider (Authorize.Net), please try again in a few minutes or contact the website provider...';
         $controller = new ContentController($page);
         //Requirements::block(THIRDPARTY_DIR."/jquery/jquery.js");
         //Requirements::javascript(Director::protocol()."ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js");
         return new Payment_Failure($controller->renderWith('PaymentProcessingPage'));
     }
 }
開發者ID:helpfulrobot,項目名稱:sunnysideup-payment-authorizedotnet,代碼行數:33,代碼來源:AuthorizeDotNetPayment.php

示例2: executeURL

 function executeURL($url)
 {
     $url = str_replace("&", "&amp;", $url);
     $url = str_replace("&amp;&amp;", "&amp;", $url);
     //$url = str_replace("==", "", $url);
     if ($url) {
         /**
          * build redirection page
          **/
         $page = new Page();
         $page->Title = 'Redirection to DPS...';
         $page->Logo = '<img src="' . $this->config()->get("logo") . '" alt="Payments powered by DPS"/>';
         $page->Form = $this->DPSForm($url);
         $controller = new ContentController($page);
         Requirements::clear();
         Requirements::javascript(THIRDPARTY_DIR . "/jquery/jquery.js");
         //Requirements::block(THIRDPARTY_DIR."/jquery/jquery.js");
         //Requirements::javascript(Director::protocol()."ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js");
         return new Payment_Processing($controller->renderWith('PaymentProcessingPage'));
     } else {
         $page = new Page();
         $page->Title = 'Sorry, DPS can not be contacted at the moment ...';
         $page->Logo = 'Sorry, an error has occured in contacting the Payment Processing Provider, please try again in a few minutes...';
         $page->Form = $this->DPSForm($url);
         $controller = new ContentController($page);
         Requirements::javascript(THIRDPARTY_DIR . "/jquery/jquery.js");
         //Requirements::block(THIRDPARTY_DIR."/jquery/jquery.js");
         //Requirements::javascript(Director::protocol()."ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js");
         return new Payment_Failure($controller->renderWith('PaymentProcessingPage'));
     }
 }
開發者ID:helpfulrobot,項目名稱:sunnysideup-payment-dps,代碼行數:31,代碼來源:DpsPxPayPayment.php


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