• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Admin_Controller类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了Admin_Controller类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: __construct

 /**
  * Constructor method
  *
  * @access public
  * @return void
  */
 public function __construct()
 {
     // Call the parent's constructor
     parent::Admin_Controller();
     $this->load->model('themes_m');
     $this->lang->load('themes');
 }
开发者ID:Tapha,项目名称:pyrocms,代码行数:13,代码来源:admin.php


示例7:

 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


示例8: __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


示例9:

 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


示例10: __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


示例11: __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


示例12: __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


示例13: __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


示例14: __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


示例15: __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


示例16: __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


示例17:

 function __construct()
 {
     parent::__construct();
     $this->load->model("module_m");
     $language = $this->session->userdata('lang');
     $this->lang->load('permissions', $language);
 }
开发者ID:spyda247,项目名称:white,代码行数:7,代码来源:permissions.php


示例18: __construct

 public function __construct()
 {
     parent::__construct();
     $this->lang->load('calendar');
     $this->load->library('calendar_lib');
     $this->load->model('calendar_m');
 }
开发者ID:relinkus,项目名称:ManageFan,代码行数:7,代码来源:admin.php


示例19:

 function __construct()
 {
     parent::__construct();
     $this->auth->check_access('Seller', true);
     $this->lang->load('category');
     $this->load->model('Category_model');
 }
开发者ID:virendrayadav,项目名称:fashiongroup,代码行数:7,代码来源:categories.php


示例20: __construct

 /**
  * @author : Roledene
  * Type : Constructor
  * Name : __construct
  * Description : this is the default construtor of project class
  */
 public function __construct()
 {
     parent::__construct();
     //			var_dump("hello world");
     $d = $this->project_m->getAllProjects();
     var_dump($d);
 }
开发者ID:Roledenez,项目名称:QADash,代码行数:13,代码来源:project.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Admin_DA类代码示例发布时间:2022-05-23
下一篇:
PHP AdminUIHelper类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap