本文整理汇总了PHP中Admin_Controller::Admin_Controller方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin_Controller::Admin_Controller方法的具体用法?PHP Admin_Controller::Admin_Controller怎么用?PHP Admin_Controller::Admin_Controller使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin_Controller
的用法示例。
在下文中一共展示了Admin_Controller::Admin_Controller方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
function __construct()
{
parent::Admin_Controller();
$this->load->module_model('services', 'services_m');
$this->lang->load('services');
$this->data->pay_per_options = array('' => lang('service_one_off_label'), 'hour' => lang('service_per_hour_label'), 'day' => lang('service_per_day_label'), 'week' => lang('service_per_week_label'), 'month' => lang('service_per_month_label'), 'year' => lang('service_per_year_label'));
}
示例2:
function __construct()
{
parent::Admin_Controller();
$this->load->model('variables_m');
$this->lang->load('variables');
$this->template->set_partial('sidebar', 'admin/sidebar');
}
示例3: Schedule
function Schedule()
{
parent::Admin_Controller();
$this->load->library('schedule_library');
$this->load->module_helper('groups', 'group_helper');
$this->load->module_helper('schedule', 'schedule_helper');
}
示例4: array
function __construct()
{
parent::Admin_Controller();
$this->load->model('photos_m');
$this->load->model('photo_albums_m');
$this->lang->load('photos');
$this->lang->load('photo_albums');
$this->template->set_partial('sidebar', 'admin/sidebar');
$this->validation_rules = array(
array(
'field' => 'title',
'label' => lang('photo_albums.title_label'),
'rules' => 'trim|required|max_length[255]|callback__check_slug'
),
array(
'field' => 'slug',
'label' => lang('photo_albums.slug_label'),
'rules' => 'trim|required|max_length[255]|alpha_dash'
),
array(
'field' => 'description',
'label' => lang('photo_albums.desc_label'),
'rules' => 'trim'
),
array(
'field' => 'parent',
'label' => lang('photo_albums.parent_album_label'),
'rules' => 'trim|numeric'
)
);
}
示例5:
function __construct()
{
parent::Admin_Controller();
$this->load->library('validation');
$this->load->model('comments_m');
$this->lang->load('comments');
}
示例6: __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
));
}
示例7: __construct
/**
* Constructor method
*
* @access public
* @return void
*/
public function __construct()
{
// Call the parent's controller
parent::Admin_Controller();
$this->load->helper('users/user');
$this->lang->load('main');
// Set the validation rules
$this->validation_rules = array(
array(
'field' => 'email',
'label' => lang('email_label'),
'rules' => 'required|callback__check_login'
),
array(
'field' => 'password',
'label' => lang('password_label'),
'rules' => 'required'
)
);
// Call validation and set rules
$this->load->library('form_validation');
$this->form_validation->set_rules($this->validation_rules);
}
示例8:
function __construct()
{
parent::Admin_Controller();
$this->load->module_library('users', 'user_lib');
$this->load->module_language('users', 'user');
$this->load->module_helper('users', 'user');
}
示例9:
function __construct()
{
parent::Admin_Controller();
$this->load->model('pages_m');
$this->load->helper('pages');
$this->load->module_model('navigation', 'navigation_m');
}
示例10:
function __construct()
{
parent::Admin_Controller();
$this->load->model('newsletters_m');
$this->lang->load('newsletter');
$this->newsletters_m->emailFrom = $this->settings->item('contact_email');
}
示例11:
function __construct()
{
parent::Admin_Controller();
$this->load->model('settings_m');
$this->load->library('settings');
$this->lang->load('settings');
}
示例12:
function __construct()
{
parent::Admin_Controller();
$this->load->helper('galleries');
$this->load->model('galleries_m');
$this->lang->load('galleries');
}
示例13: __construct
/**
* Constructor method
*
* @access public
* @return void
*/
public function __construct()
{
parent::Admin_Controller();
$this->lang->load('modules');
// Check the referrer
parse_url($this->input->server('HTTP_REFERER'), PHP_URL_HOST) == parse_url(BASE_URL, PHP_URL_HOST) or show_error('Invalid Referrer');
}
示例14: __construct
/**
* The constructor
* @access public
* @return void
*/
public function __construct()
{
parent::Admin_Controller();
$this->load->model('portfolio_m');
$this->load->model('portfolio_clients_m');
$this->load->model('portfolio_categories_m');
$this->load->model('portfolio_portfolio_categories_m');
$this->load->model('portfolio_images_m');
$this->lang->load('portfolio');
$this->lang->load('clients');
$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->clients = array();
if ($clients = $this->portfolio_clients_m->order_by('title')->get_all()) {
foreach ($clients as $client) {
$this->data->clients[$client->id] = $client->title;
}
}
$this->data->portfolio_images = $this->portfolio_images_m->getImagesByFolderSlug(self::PORTFOLIO_IMAGE_FOLDER_SLUG);
$this->data->categories = array();
if ($categories = $this->portfolio_categories_m->order_by('title')->get_all()) {
foreach ($categories as $category) {
$this->data->categories[$category->id] = $category->title;
}
}
$this->template->append_metadata(css('portfolio.css', 'portfolio'))->set_partial('shortcuts', 'admin/partials/shortcuts');
}
示例15: __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');
}