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


PHP Admin_Controller类代码示例

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


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

示例1: __construct

	public function __construct()
	{
		parent::Admin_Controller();

		$this->load->models(array('file_m', 'file_folders_m'));
		$this->lang->load('files');
		$this->config->load('files');

		$this->load->library('form_validation');
		$this->form_validation->set_rules($this->_validation_rules);

		$this->_folders = $this->file_folders_m->get_folders();

		// Array for select
		$this->data->folders_tree = array();
		foreach ($this->_folders as $folder)
		{
			$this->data->folders_tree[$folder->id] = repeater('» ', $folder->depth) . $folder->name;
		}

		$this->template
			->set_partial('shortcuts', 'admin/partials/shortcuts')
			->set_partial('nav', 'admin/partials/nav', array(
				'file_folders'	=> $this->_folders,
				'current_id'	=> 0
			));
	}
开发者ID:JamieLomas,项目名称:pyrocms,代码行数:27,代码来源:admin_folders.php

示例2: __construct

 function __construct()
 {
     parent::Admin_Controller();
     $this->load->model('products_m');
     $this->load->module_model('categories', 'categories_m');
     $this->lang->load('products');
 }
开发者ID:Turv,项目名称:pyrocms,代码行数:7,代码来源:admin.php

示例3: __construct

 function __construct()
 {
     parent::Admin_Controller();
     $this->load->model('newsletters_m');
     $this->lang->load('newsletter');
     $this->newsletters_m->emailFrom = $this->settings->item('contact_email');
 }
开发者ID:nhockiki,项目名称:pyrocms,代码行数:7,代码来源:admin.php

示例4: __construct

	/**
	 * The constructor
	 * @access public
	 * @return void
	 */
	public function __construct()
	{
		parent::Admin_Controller();

		$this->load->model('blog_m');
		$this->load->model('blog_categories_m');
		$this->lang->load('blog');
		$this->lang->load('categories');

		// Date ranges for select boxes
		$this->data->hours = array_combine($hours = range(0, 23), $hours);
		$this->data->minutes = array_combine($minutes = range(0, 59), $minutes);

		$this->data->categories = array();
		if ($categories = $this->blog_categories_m->order_by('title')->get_all())
		{
			foreach ($categories as $category)
			{
				$this->data->categories[$category->id] = $category->title;
			}
		}

		$this->template
			->append_metadata( css('blog.css', 'blog') )
			->set_partial('shortcuts', 'admin/partials/shortcuts');
	}
开发者ID:reith2004,项目名称:pyrocms,代码行数:31,代码来源:admin.php

示例5: __construct

 function __construct()
 {
     parent::Admin_Controller();
     $this->load->module_library('users', 'user_lib');
     $this->load->module_language('users', 'user');
     $this->load->module_helper('users', 'user');
 }
开发者ID:BenneX,项目名称:pyrocms,代码行数:7,代码来源:admin.php

示例6:

 function __construct()
 {
     parent::__construct();
     $this->load->model(array('Customer_model', 'Location_model'));
     $this->load->helper('formatting_helper');
     $this->lang->load('customer');
 }
开发者ID:Joncg,项目名称:eelly_cps_fx,代码行数:7,代码来源:customers.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     $user_data = $this->session->userdata;
     $this->load->vars($user_data);
     $this->load->model('penyetoran_model', 'data_model');
 }
开发者ID:ibnoe,项目名称:simpatda-thinkfrogs,代码行数:7,代码来源:penyetoran.php

示例8:

 function __construct()
 {
     parent::__construct();
     $this->auth->check_access('Admin', true);
     $this->load->model('Page_model');
     $this->lang->load('page');
 }
开发者ID:nagsamayam,项目名称:jcom,代码行数:7,代码来源:pages.php

示例9: __construct

    /**
     * Constructor method
     * @access public
     * @return void
     */
    public function __construct()
    {
        // Call the parent's constructor
        parent::__construct();
        $this->load->model('permissions_m');
        $this->load->helper('array');
        $this->lang->load('permissions');
        $this->load->library('form_validation');
        // Validation rules
        $this->validation_rules = array(array('field' => 'module', 'label' => lang('perm_module_label'), 'rules' => 'trim|required'), array('field' => 'controller', 'label' => lang('perm_controller_label'), 'rules' => 'trim|required'), array('field' => 'method', 'label' => lang('perm_method_label'), 'rules' => 'trim|required'), array('field' => 'role_type', 'label' => lang('perm_type_label'), 'rules' => 'trim|required'), array('field' => 'user_id', 'label' => lang('perm_user_label'), 'rules' => 'trim|numeric'), array('field' => 'permission_role_id', 'label' => lang('perm_role_label'), 'rules' => 'trim|numeric'));
        // Get "roles" (like access levels)
        $this->data->roles = $this->permissions_m->get_roles(array('except' => array('admin')));
        $this->data->roles_select = array_for_select($this->data->roles, 'id', 'title');
        $this->data->users = $this->users_m->get_all();
        $this->data->users_select = array_for_select($this->data->users, 'id', 'full_name');
        $modules = $this->modules_m->get_modules(array('is_backend' => true));
        $this->data->modules_select = array('*' => lang('perm_module_select_default')) + array_for_select($modules, 'slug', 'name');
        $this->template->append_metadata('
			<script type="text/javascript">
				var roleDeleteConfirm = "' . $this->lang->line('perm_role_delete_confirm') . '";
				var permControllerSelectDefault = "' . $this->lang->line('perm_controller_select_default') . '";
				var permMethodSelectDefault = "' . $this->lang->line('perm_method_select_default') . '";
			</script>
		');
        $this->template->append_metadata(js('permissions.js', 'permissions'));
        $this->template->set_partial('sidebar', 'admin/sidebar');
    }
开发者ID:bwoodall,项目名称:pyrocms,代码行数:32,代码来源:admin.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->lang->load(array('download'));
     $this->load->model(array('files/image_m'));
     $this->load->helper(array('url'));
     $download_dir = UPLOAD_PATH . 'download';
     if (!is_dir($download_dir)) {
         mkdir($download_dir, 0777);
     }
     $this->_download_base_file_dir = $download_dir;
     $this->_download_base_file_cache_dir = $download_dir;
     $this->_download_base_file_url = base_url($download_dir);
     /*$_categories = array();
     		if ($categories = $this->gallery_categories_m->order_by('title')->get_all())
     		{
     			foreach ($categories as $category)
     			{
     				$_categories[$category->id] = $category->title;
     			}
     		}
     
     		$this->template
     			->set('categories', $_categories);*/
 }
开发者ID:blekedeg,项目名称:lbhpers,代码行数:25,代码来源:admin.php

示例11: __construct

 /**
  * constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model("usermodel");
     $this->load->library('pagination');
     $this->load->library('app/paginationlib');
 }
开发者ID:benfuller,项目名称:codeigniterplus,代码行数:10,代码来源:users.php

示例12: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model('teacher_m');
     $this->load->model('profile_m');
     $this->load->model('admin_m');
 }
开发者ID:renztoygwapo,项目名称:ces,代码行数:7,代码来源:myfiles.php

示例13: __construct

 public function __construct()
 {
     parent::__construct();
     $this->load->model(array('assessment_view_model', 'subject/subject_model', 'levels/levels_model'));
     $this->data['js_lang']['create_rubric_group'] = lang('create_rubric_group');
     $this->data['js_lang']['create_rubric'] = lang('create_rubric');
     $this->data['js_lang']['create_assessments'] = lang('create_assessments');
     $this->data['js_lang']['rubric_added_successfully'] = lang('rubric_added_successfully');
     $this->data['js_lang']['rubric_group_added_successfully'] = lang('rubric_group_added_successfully');
     $this->data['js_lang']['category_added_successfully'] = lang('category_added_successfully');
     $this->data['js_lang']['assessment_added_successfully'] = lang('assessment_added_successfully');
     $this->data['js_lang']['update_rubric_group'] = lang('update_rubric_group');
     $this->data['js_lang']['rubric_updated_successfully'] = lang('rubric_updated_successfully');
     $this->data['js_lang']['update_rubric'] = lang('update_rubric');
     $this->data['js_lang']['update_assessment'] = lang('update_assessment');
     $this->data['js_lang']['assessment_updated_successfully'] = lang('assessment_updated_successfully');
     $this->data['js_lang']['category_name_required'] = lang('category_name_required');
     $this->data['js_lang']['assessment_category_saved'] = lang('assessment_category_saved');
     $this->data['js_lang']['confirm_delete'] = lang('confirm_delete');
     $this->data['js_lang']['confirm_delete_assessment'] = lang('confirm_delete_assessment');
     $this->data['js_lang']['assessment_deleted_successfully'] = lang('assessment_deleted_successfully');
     $this->data['js_lang']['delete_assessment_rubric'] = lang('delete_assessment_rubric');
     $this->data['js_lang']['assessment_rubric_deleted'] = lang('assessment_rubric_deleted');
     $this->data['js_lang']['delete_assessment_category'] = lang('delete_assessment_category');
     $this->data['js_lang']['assessmeny_category_deleted_successfully'] = lang('assessmeny_category_deleted_successfully');
     $this->data['js_lang']['confirm_delete_level'] = lang('confirm_delete_level');
     $this->data['js_lang']['level_deleted_successfully'] = lang('level_deleted_successfully');
     $this->data['js_lang']['level_added_successfully'] = lang('level_added_successfully');
     $this->data['js_lang']['rubric_added_to_assessment_successfully'] = lang('rubric_added_to_assessment_successfully');
     $this->data['js_lang']['rubric_group_deleted'] = lang('rubric_group_deleted');
     $this->data['js_lang']['rubric_deleted'] = lang('rubric_deleted');
     $this->breadcrumb->append_crumb(lang('assessment'), site_url('assessment'));
 }
开发者ID:soarmorrow,项目名称:ci-kindergarden,代码行数:33,代码来源:assessment_view.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
     $this->user->restrict('Admin.Payments');
     $this->load->model('Extensions_model');
     $this->lang->load('payments');
 }
开发者ID:AKCore,项目名称:TastyIgniter,代码行数:7,代码来源:Payments.php

示例15: __construct

 /**
  * Constructor
  *
  * Requires needed models and helpers.
  * 
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('form');
     $this->load->helper('cookie');
     $this->load->dbutil();
 }
开发者ID:68kb,项目名称:68kb,代码行数:13,代码来源:admin.php


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