本文整理汇总了PHP中Assets::add_module_js方法的典型用法代码示例。如果您正苦于以下问题:PHP Assets::add_module_js方法的具体用法?PHP Assets::add_module_js怎么用?PHP Assets::add_module_js使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Assets
的用法示例。
在下文中一共展示了Assets::add_module_js方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: index
/**
* Displays a list of all core language files, as well as a list of
* modules that the user can choose to edit.
*
* @access public
*
* @return void
*/
public function index($trans_lang = 'english')
{
Assets::add_module_js('translate', 'translate.js');
// Selecting a different language?
if ($this->input->post('select_lang')) {
$trans_lang = $this->input->post('trans_lang');
// Other?
if ($trans_lang == 'other') {
$trans_lang = $this->input->post('new_lang');
}
}
//end if
if (!in_array($trans_lang, $this->langs)) {
$this->langs[] = $trans_lang;
}
$all_lang_files = list_lang_files();
Template::set('languages', $this->langs);
Template::set('lang_files', $all_lang_files['core']);
// check that we have custom modules
if (isset($all_lang_files['custom'])) {
Template::set('modules', $all_lang_files['custom']);
}
Template::set('trans_lang', $trans_lang);
Template::set('toolbar_title', lang('tr_translate_title') . ' to ' . ucfirst($trans_lang));
Template::render();
}
示例2: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->lang->load('faq');
Assets::add_module_js('faq', 'faq.js');
}
示例3: create
public function create()
{
$this->auth->restrict('Matakuliah_Prasyarat.Jurusan.Create');
Assets::add_module_js('matakuliah_prasyarat', 'matakuliah_prasyarat');
if ($this->input->post('save')) {
if ($insert_id = $this->save_matakuliah_prasyarat()) {
// Log the activity
$this->activity_model->log_activity($this->current_user->id, lang('matakuliah_prasyarat_act_create_record') . ': ' . $insert_id . ' : ' . $this->input->ip_address(), 'matakuliah_prasyarat');
Template::set_message(lang('matakuliah_prasyarat_create_success'), 'success');
Template::redirect(SITE_AREA . '/jurusan/matakuliah_prasyarat');
} else {
Template::set_message(lang('matakuliah_prasyarat_create_failure') . $this->matakuliah_prasyarat_model->error, 'error');
}
}
$data = $this->matakuliah_prasyarat_model->select_nama_kurikulum();
if (!empty($data)) {
$option[""] = "";
foreach ($data as $row) {
$option[$row->kode_nama_kurikulum] = $row->nama_kurikulum . " - " . $row->nama_jurusan;
}
Template::set('options', $option);
}
Template::set('toolbar_title', lang('matakuliah_prasyarat_create') . ' Matakuliah Prasyarat');
Template::render();
}
示例4: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->load->model('botanicules/botanicules_model');
$this->lang->load('botanicules');
Assets::add_module_js('botanicules', 'botanicules.js');
}
示例5: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->load->model('todo_list_model', null, true);
$this->lang->load('todo_list');
Assets::add_module_js('todo_list', 'todo_list.js');
}
示例6: __construct
/**
* Setups the required permissions and loads required classes
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->auth->restrict('Bonfire.UI.View');
$this->auth->restrict('Bonfire.UI.Manage');
$this->lang->load('ui');
Template::set('toolbar_title', 'UI Settings');
Assets::add_module_js('ui', 'ui.js');
}
示例7: __construct
/**
* Set up the permissions and load the language file.
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->auth->restrict('Site.Settings.View');
$this->auth->restrict('Bonfire.Emailer.Manage');
$this->lang->load('emailer');
Assets::add_module_js('emailer', 'js/settings');
Template::set_block('sub_nav', 'settings/_sub_nav');
}
示例8: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->load->model('menu_model', null, true);
$this->load->model('department/department_model', null, true);
$this->load->model('department/department_model', null, true);
$this->lang->load('menu');
Assets::add_module_js('menu', 'menu.js');
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->auth->restrict('Site.Reports.View');
$this->auth->restrict('Bonfire.Activities.Manage');
$this->lang->load('activities');
Template::set('toolbar_title', lang('activity_title'));
Assets::add_module_js('activities', 'jquery.dataTables.min.js');
Assets::add_module_css('activities', 'datatable.css');
}
示例10: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->load->library('form_validation');
$this->load->model('quotes_model', null, true);
$this->lang->load('quotes');
Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
Assets::add_js('jquery-ui-1.8.13.min.js');
Assets::add_module_js('quotes', 'quotes.js');
}
示例11: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->load->model(array('profile/profile_model', 'profile_users/profile_users_model', 'team/team_model', 'registration/registration_model', 'registration_team/registration_team_model'));
$this->lang->load('profile');
$this->load->library('session');
Assets::add_js('//cdn.tinymce.com/4/tinymce.min.js');
Assets::add_js(Template::theme_url('js/editors/tiny_mce_init.js'));
Assets::add_module_js('profile', 'profile.js');
}
示例12: users
public function users()
{
$this->auth->restrict();
$this->set_current_user();
Assets::add_css(array('jquery.dataTables.css', 'dataTables.responsive.css'));
Assets::add_js(array('jquery.dataTables.js', 'dataTables.bootstrap.js', 'dataTables.responsive.js'));
Assets::add_module_js('users', 'manage_users.js');
Template::set_view('manage/user_list');
Template::render('user');
}
示例13: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->auth->restrict($this->permissionView);
$this->load->model('party/party_model');
$this->lang->load('party');
$this->form_validation->set_error_delimiters("<span class='error'>", "</span>");
Template::set_block('sub_nav', 'content/_sub_nav');
Assets::add_module_js('party', 'party.js');
}
示例14: __construct
public function __construct()
{
parent::__construct();
$this->auth->restrict('Site.Settings.View');
$this->auth->restrict('Bonfire.Roles.Manage');
$this->load->model('role_model');
$this->lang->load('roles');
Assets::add_js($this->load->view('settings/roles_js', null, true), 'inline');
Assets::add_module_js('roles', 'js/settings.js');
Assets::add_module_css('roles', 'css/settings.css');
}
示例15: __construct
/**
* Constructor
*
* @return void
*/
public function __construct()
{
parent::__construct();
$this->auth->restrict($this->permissionView);
$this->load->model('consignment_documents/consignment_documents_model');
Assets::add_css('flick/jquery-ui-1.8.13.custom.css');
Assets::add_js('jquery-ui-1.8.13.min.js');
$this->form_validation->set_error_delimiters("<span class='error'>", "</span>");
Template::set_block('sub_nav', 'content/_sub_nav');
Assets::add_module_js('consignment_documents', 'consignment_documents.js');
}