本文整理汇总了PHP中Pack::create_pack方法的典型用法代码示例。如果您正苦于以下问题:PHP Pack::create_pack方法的具体用法?PHP Pack::create_pack怎么用?PHP Pack::create_pack使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Pack
的用法示例。
在下文中一共展示了Pack::create_pack方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: add_pack
function add_pack()
{
$this->data['subtitle'] = "Add New Pack";
if ($_POST) {
if ($this->form_validation->run('add_pack') == FALSE) {
$this->content_view = "mod/add_pack";
$this->data['error'] = true;
} else {
Pack::create_pack($this->input->post('name'), $this->input->post('abbreviation'), $this->input->post('download_link'));
$log_string = $this->session->userdata('username') . " (" . $this->session->userdata('display_name') . ") added new pack: " . $this->input->post('name') . " " . $this->input->post('download_link');
write_to_mod_log($log_string);
$this->content_view = "mod/add_pack_success";
}
} else {
$this->data['error'] = false;
$this->content_view = "mod/add_pack";
}
}