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


PHP Action::init方法代码示例

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


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

示例1: init

 public function init()
 {
     //$this->layout = 'login_layout';
     $this->template = "errorpage";
     parent::init();
 }
开发者ID:sharathvignesh,项目名称:Tamil-Readers-Association,代码行数:6,代码来源:ErrorPage.php

示例2: init

 public function init()
 {
     parent::init();
 }
开发者ID:sharathvignesh,项目名称:Tamil-Readers-Association,代码行数:4,代码来源:Logout.php

示例3: MySql

include_once 'controller/helper/helper_mail.class.php';
include_once 'controller/action/action.class.php';
include_once 'controller/action/action_add.class.php';
// Déclarartion des variables
$mySql = new MySql();
$queries = new Queries();
$HelperPagination = new HelperPagination();
$HelperOther = new HelperOther();
$HelperLayout = new HelperLayout();
$Action = new Action();
$ActionAdd = new ActionAdd();
$HelperMail = new HelperMail();
if (!empty($var->categorie)) {
    // Test si une catégorie a été choisie
    $module_dispatch = $var->module;
    if ($Action->init($lang, $mySql, $queries, $module_dispatch, $var->submit, $var->action, $var->idUrl)) {
        // Save, update, delete record
        $var->module_output .= $Action->output;
        $var->type = $Action->type;
        $var->idUrl = $Action->idInsert;
    } else {
        $Action->sendNewsletters($lang, $mySql, $queries, $module_dispatch, $HelperMail, $var->sujetSend, $var->contenuSend, $var->groupeSend);
        $var->module_output .= $Action->output;
    }
    if (!empty($var->ss_categorie)) {
        // Test la sous catégorie
        $search_column = explode(",", $settings['columns'][$module_dispatch]);
        // Pagination
        $pagination = $HelperPagination->pagination($mySql, $queries, PAGINATION, $module_dispatch, $mySql->escape($var->ss_categorie), $mySql->escape($var->search), $search_column);
        // Construction du header
        $action_header = ADD;
开发者ID:WebPassions,项目名称:2013,代码行数:31,代码来源:module.php

示例4: init

 public function init()
 {
     $this->template = "edit_user_pop_up";
     $this->layout = "plain_layout";
     parent::init();
 }
开发者ID:sharathvignesh,项目名称:Tamil-Readers-Association,代码行数:6,代码来源:EditUserPopUp.php

示例5: runActions

 public function runActions()
 {
     // Run requested actions and save responses in array
     if (isset($this->request['formname'])) {
         $this->response['_form'][$this->request['formname']] = array();
     }
     if (isset($this->request['do'])) {
         $action = new Action();
         if (!is_array($this->request['do'])) {
             $action->init($this->request['do']);
             $this->response[$this->request['do']] = $action->run();
             if (isset($this->request['formname'])) {
                 $this->response['_form'][$this->request['formname']] = $this->response[$do];
             }
         } else {
             foreach ($this->request['do'] as $do) {
                 $action->init($do, $this->request);
                 // Run action + catch returned response
                 $this->response[$do] = $action->run();
                 if (isset($this->response[$do][0]['redirect']['url'])) {
                     // If redirect requested by action, do so
                     if (!isset($this->response[$do][0]['redirect']['post']) || !is_array($this->response[$do][0]['redirect']['post'])) {
                         $this->response[$do][0]['redirect']['post'] = array();
                     }
                     $this->redirectToUrl($this->response[$do][0]['redirect']['url'], $this->response[$do][0]['redirect']['post']);
                 }
                 if (isset($this->request['formname'])) {
                     // If action was triggert by a from, save response in form array as well
                     // Just for easier message handling
                     $this->response['_form'][$this->request['formname']] = array_merge($this->response['_form'][$this->request['formname']], $this->response[$do]);
                 }
             }
         }
     }
 }
开发者ID:julianburr,项目名称:project-nutmouse,代码行数:35,代码来源:Controller.php


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