本文整理汇总了PHP中message::warning方法的典型用法代码示例。如果您正苦于以下问题:PHP message::warning方法的具体用法?PHP message::warning怎么用?PHP message::warning使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类message
的用法示例。
在下文中一共展示了message::warning方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadFile
/**
* Load and return user metadata from given file
*
* @param string $fileName Path to user file to unserialize
* @return array GalleryStatus a status code,
* object Unserialized user metadata
*/
function loadFile($fileName)
{
$fileName = str_replace('//', '/', $fileName);
if (!file_exists($fileName) || !is_readable($fileName)) {
if (file_exists($fileName . '.bak') && is_readable($fileName . '.bak')) {
$fileName .= '.bak';
} else {
message::warning(t('Gallery1 inconsistency: Missing or not readable file %file', array('file' => $fileName)));
return array('ERROR_BAD_PARAMETER', null);
}
}
$tmp = file($fileName);
if (empty($tmp)) {
message::warning(t('Gallery1 inconsistency: Empty file %file', array('file' => $fileName)));
return array('ERROR_MISSING_VALUE', null);
}
$tmp = join('', $tmp);
/*
* We renamed User.php to Gallery_User.php in v1.2, so port forward
* any saved user objects.
*/
if (stripos($tmp, 'O:4:"user"') !== false) {
$tmp = str_ireplace('O:4:"user"', 'O:12:"gallery_user"', $tmp);
}
/*
* Gallery3 already contains a class named Image so
* we need to rename the G1 Image class to G1Img here
*/
if (stripos($tmp, 'O:5:"image"') !== false) {
$tmp = str_ireplace('O:5:"image"', 'O:5:"G1Img"', $tmp);
}
$object = unserialize($tmp);
return array(null, $object);
}
示例2: bootstrap_panel
function bootstrap_panel($title, $content, $buttons = false)
{
$class = '';
$clearfix = '';
try {
if ($buttons !== false) {
if (!is_array($buttons) && dyn::get('debug')) {
throw new InvalidArgumentException('$buttons must be an array');
}
$class = ' pull-left';
$clearfix = '<div class="clearfix"></div>';
$buttons = '<div class="btn-group pull-right">' . PHP_EOL . implode(PHP_EOL, (array) $buttons) . '</div>';
}
} catch (InvalidArgumentException $e) {
echo message::warning($e->getMessage());
}
echo '<div class="row">
<div class="col-lg-12">
<div id="ajax-content"></div>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title' . $class . '">' . $title . '</h3>
' . $buttons . '
' . $clearfix . '
</div>
' . $content . '
</div>
</div>
</div>';
}
示例3: deleteFile
public static function deleteFile($id)
{
$values = [];
for ($i = 1; $i <= 10; $i++) {
$values[] = '`media' . $i . '` = ' . $id;
}
for ($i = 1; $i <= 10; $i++) {
$values[] = '`medialist' . $i . '` LIKE "%|' . $id . '|%"';
}
$sql = sql::factory();
$sql->query('SELECT id FROM ' . sql::table('structure_area') . ' WHERE ' . implode(' OR ', $values))->result();
if ($sql->num()) {
echo message::warning(lang::get('file_in_use'));
} else {
$sql = sql::factory();
$sql->setTable('media');
$sql->setWhere('id=' . $id);
$sql->select('filename');
$sql->result();
if (unlink(dir::media($sql->get('filename')))) {
$sql->delete();
return message::success(lang::get('file_deleted'), true);
} else {
return message::warning(sprintf(lang::get('file_not_deleted'), dyn::get('hp_url'), $sql->get('filename')), true);
}
}
}
示例4: __construct
/**
* Attempts to load a view and pre-load view data.
*
* @throws Kohana_Exception if the requested view cannot be found
* @param string $name view name
* @param string $page_type page type: album, photo, tags, etc
* @param string $theme_name view name
* @return void
*/
public function __construct($name, $page_type)
{
$theme_name = module::get_var("gallery", "active_site_theme");
if (!file_exists("themes/{$theme_name}")) {
module::set_var("gallery", "active_site_theme", "default");
theme::load_themes();
Kohana::log("error", "Unable to locate theme '{$theme_name}', switching to default theme.");
}
parent::__construct($name);
$this->theme_name = module::get_var("gallery", "active_site_theme");
if (user::active()->admin) {
$this->theme_name = Input::instance()->get("theme", $this->theme_name);
}
$this->item = null;
$this->tag = null;
$this->set_global("theme", $this);
$this->set_global("user", user::active());
$this->set_global("page_type", $page_type);
$this->set_global("page_title", null);
if ($page_type == "album") {
$this->set_global("thumb_proportion", $this->thumb_proportion());
}
$maintenance_mode = Kohana::config("core.maintenance_mode", false, false);
if ($maintenance_mode) {
message::warning(t("This site is currently in maintenance mode"));
}
}
示例5: handler
public function handler()
{
access::verify_csrf();
$form = $this->_get_form();
if ($form->validate()) {
$scrollsize = intval($form->navcarousel->scrollsize->value);
$showelements = intval($form->navcarousel->showelements->value);
$carouselwidth = intval($form->navcarousel->carouselwidth->value);
$thumbsize = intval($form->thumbsettings->thumbsize->value);
if ($showelements < 1) {
$showelements = 1;
message::error(t("You must show at least one item."));
}
if ($scrollsize < 1) {
$scrollsize = 1;
message::error(t("You must scroll by at least one item."));
}
if ($thumbsize > 150 || $thumbsize < 25) {
$thumbsize = 50;
message::error(t("The size of the thumbnails must be between 25 and 150 pixel."));
}
if ($carouselwidth < $thumbsize + 75 && $carouselwidth > 0) {
$carouselwidth = $thumbsize + 75;
message::error(t("The carousel must be at least %pixel wide.", array("pixel" => $carouselwidth)));
}
if ($carouselwidth > 0) {
if ($carouselwidth < ($thumbsize + 11) * $showelements + 64) {
$showelements = ($carouselwidth - 64) / ($thumbsize + 11);
$showelements = intval(floor($showelements));
message::error(t("With the selected carousel width and thumbnail size you can show a maximum of %itemno items.", array("itemno" => $showelements)));
}
} else {
message::warning(t("The maximum number of displayable items cannot be calculated when the carousel width is set to 0."));
}
if ($scrollsize > $showelements) {
$scrollsize = $showelements;
message::error(t("The number of items to scroll must not exceed the number of items to show."));
}
module::set_var("navcarousel", "scrollsize", $scrollsize);
module::set_var("navcarousel", "showelements", $showelements);
module::set_var("navcarousel", "carouselwidth", $carouselwidth);
module::set_var("navcarousel", "thumbsize", $thumbsize);
module::set_var("navcarousel", "abovephoto", $form->navcarousel->abovephoto->value, true);
module::set_var("navcarousel", "noajax", $form->navcarousel->noajax->value, true);
module::set_var("navcarousel", "showondomready", $form->navcarousel->showondomready->value, true);
module::set_var("navcarousel", "maintainaspect", $form->thumbsettings->maintainaspect->value, true);
module::set_var("navcarousel", "nomouseover", $form->thumbsettings->nomouseover->value, true);
module::set_var("navcarousel", "noresize", $form->thumbsettings->noresize->value, true);
message::success(t("Your settings have been saved."));
url::redirect("admin/navcarousel");
}
print $this->_get_view($form);
}
示例6: site_menu
static function site_menu($menu, $theme)
{
if ($theme->page_type != "login") {
$menu->append(Menu::factory("link")->id("home")->label(t("Home"))->url(item::root()->url()));
$item = $theme->item();
if (!empty($item)) {
$can_edit = $item && access::can("edit", $item);
$can_add = $item && access::can("add", $item);
if ($can_add) {
$menu->append($add_menu = Menu::factory("submenu")->id("add_menu")->label(t("Add")));
$is_album_writable = is_writable($item->is_album() ? $item->file_path() : $item->parent()->file_path());
if ($is_album_writable) {
$add_menu->append(Menu::factory("dialog")->id("add_photos_item")->label(t("Add photos"))->url(url::site("simple_uploader/app/{$item->id}")));
if ($item->is_album()) {
$add_menu->append(Menu::factory("dialog")->id("add_album_item")->label(t("Add an album"))->url(url::site("form/add/albums/{$item->id}?type=album")));
}
} else {
message::warning(t("The album '%album_name' is not writable.", array("album_name" => $item->title)));
}
}
switch ($item->type) {
case "album":
$option_text = t("Album options");
$edit_text = t("Edit album");
break;
case "movie":
$option_text = t("Movie options");
$edit_text = t("Edit movie");
break;
default:
$option_text = t("Photo options");
$edit_text = t("Edit photo");
}
$menu->append($options_menu = Menu::factory("submenu")->id("options_menu")->label($option_text));
if ($item && ($can_edit || $can_add)) {
if ($can_edit) {
$options_menu->append(Menu::factory("dialog")->id("edit_item")->label($edit_text)->url(url::site("form/edit/{$item->type}s/{$item->id}")));
}
if ($item->is_album()) {
if ($can_edit) {
$options_menu->append(Menu::factory("dialog")->id("edit_permissions")->label(t("Edit permissions"))->url(url::site("permissions/browse/{$item->id}")));
}
}
}
}
if (user::active()->admin) {
$menu->append($admin_menu = Menu::factory("submenu")->id("admin_menu")->label(t("Admin")));
module::event("admin_menu", $admin_menu, $theme);
}
}
}
示例7: doClear
public function doClear($id)
{
$photo = ORM::factory("item", $id);
$rateid = "rate" . $id;
$ratable = db::build()->select("id")->from("ratables")->where("ratableKey", "=", $rateid)->execute()->current();
if (db::build()->select("id")->from("ratings")->where("ratable_id", "=", $ratable->id)->execute()->count() < 1) {
message::warning(t("No votes have been registered for this item: Nothing cleared!"));
json::reply(array("result" => "success", "location" => $photo->url()));
return;
}
$ratings = db::build()->delete("ratings")->where("ratable_id", "=", $ratable->id)->execute();
message::success(t("All ratings and votes for this item have been cleared!"));
json::reply(array("result" => "success", "location" => $photo->url()));
}
示例8: index
public function index()
{
g2_import::lower_error_reporting();
if (g2_import::is_configured()) {
g2_import::init();
}
$view = new Admin_View("admin.html");
$view->page_title = t("Gallery 2 import");
$view->content = new View("admin_g2_import.html");
if (class_exists("GalleryCoreApi")) {
$view->content->g2_stats = $g2_stats = g2_import::g2_stats();
$view->content->g3_stats = $g3_stats = g2_import::g3_stats();
$view->content->g2_sizes = g2_import::common_sizes();
$view->content->g2_version = g2_import::version();
// Don't count tags because we don't track them in g2_map
$view->content->g2_resource_count = $g2_stats["users"] + $g2_stats["groups"] + $g2_stats["albums"] + $g2_stats["photos"] + $g2_stats["movies"] + $g2_stats["comments"];
$view->content->g3_resource_count = $g3_stats["user"] + $g3_stats["group"] + $g3_stats["album"] + $g3_stats["item"] + $g3_stats["comment"] + $g3_stats["tag"];
}
$view->content->form = $this->_get_import_form();
$view->content->version = "";
$view->content->thumb_size = module::get_var("gallery", "thumb_size");
$view->content->resize_size = module::get_var("gallery", "resize_size");
if (g2_import::is_initialized()) {
if ((bool) ini_get("eaccelerator.enable") || (bool) ini_get("xcache.cacher")) {
message::warning(t("The eAccelerator and XCache PHP performance extensions are known to cause issues. If you're using either of those and are having problems, please disable them while you do your import. Add the following lines: <pre>%lines</pre> to gallery3/.htaccess and remove them when the import is done.", array("lines" => "\n\n php_value eaccelerator.enable 0\n php_value xcache.cacher off\n php_value xcache.optimizer off\n\n")));
}
foreach (array("notification", "search", "exif") as $module_id) {
if (module::is_active($module_id)) {
message::warning(t("<a href=\"%url\">Deactivating</a> the <b>%module_id</b> module during your import will make it faster", array("url" => url::site("admin/modules"), "module_id" => $module_id)));
}
}
if (module::is_active("akismet")) {
message::warning(t("The Akismet module may mark some or all of your imported comments as spam. <a href=\"%url\">Deactivate</a> it to avoid that outcome.", array("url" => url::site("admin/modules"))));
}
} else {
if (g2_import::is_configured()) {
$view->content->form->configure_g2_import->embed_path->add_error("invalid", 1);
}
}
g2_import::restore_error_reporting();
print $view;
}
示例9: __construct
/**
* Attempts to load a view and pre-load view data.
*
* @throws Kohana_Exception if the requested view cannot be found
* @param string $name view name
* @param string $page_type page type: collection, item, or other
* @param string $page_subtype page sub type: album, photo, tags, etc
* @param string $theme_name view name
* @return void
*/
public function __construct($name, $page_type, $page_subtype)
{
parent::__construct($name);
$this->theme_name = module::get_var("gallery", "active_site_theme");
if (identity::active_user()->admin) {
$this->theme_name = Input::instance()->get("theme", $this->theme_name);
}
$this->item = null;
$this->tag = null;
$this->set_global(array("theme" => $this, "user" => identity::active_user(), "page_type" => $page_type, "page_subtype" => $page_subtype, "page_title" => null));
if ($page_type == "collection") {
$this->set_global("thumb_proportion", $this->thumb_proportion());
}
if (module::get_var("gallery", "maintenance_mode", 0)) {
if (identity::active_user()->admin) {
message::warning(t("This site is currently in maintenance mode. Visit the <a href=\"%maintenance_url\">maintenance page</a>", array("maintenance_url" => url::site("admin/maintenance"))));
} else {
message::warning(t("This site is currently in maintenance mode."));
}
}
}
示例10: __construct
/**
* Attempts to load a view and pre-load view data.
*
* @throws Kohana_Exception if the requested view cannot be found
* @param string $name view name
* @param string $page_type page type: collection, item, or other
* @param string $page_subtype page sub type: album, photo, tags, etc
* @param string $theme_name view name
* @return void
*/
public function __construct($name, $page_type, $page_subtype)
{
parent::__construct($name);
$this->theme_name = module::get_var("gallery", "active_site_theme");
if (identity::active_user()->admin) {
$theme_name = Input::instance()->get("theme");
if ($theme_name && file_exists(THEMEPATH . $theme_name) && strpos(realpath(THEMEPATH . $theme_name), THEMEPATH) == 0) {
$this->theme_name = $theme_name;
}
}
$this->item = null;
$this->tag = null;
$this->set_global(array("theme" => $this, "theme_info" => theme::get_info($this->theme_name), "user" => identity::active_user(), "page_type" => $page_type, "page_subtype" => $page_subtype, "page_title" => null));
if (module::get_var("gallery", "maintenance_mode", 0)) {
if (identity::active_user()->admin) {
message::warning(t("This site is currently in maintenance mode. Visit the <a href=\"%maintenance_url\">maintenance page</a>", array("maintenance_url" => url::site("admin/maintenance"))));
} else {
message::warning(t("This site is currently in maintenance mode."));
}
}
}
示例11: index
public function index()
{
if (g1_import::is_configured()) {
g1_import::init();
}
$view = new Admin_View('admin.html');
$view->page_title = t('Gallery 1 import');
$view->content = new View('admin_g1_import.html');
if (is_dir(g1_import::$album_dir)) {
$view->content->g1_stats = $g1_stats = g1_import::g1_stats();
$view->content->g3_stats = $g3_stats = g1_import::g3_stats();
$view->content->g1_sizes = g1_import::common_sizes();
$view->content->g1_version = g1_import::version();
// Don't count tags because we don't track them in g1_map
$view->content->g1_resource_count = $g1_stats['users'] + $g1_stats['groups'] + $g1_stats['albums'] + $g1_stats['photos'] + $g1_stats['movies'] + $g1_stats['comments'];
$view->content->g3_resource_count = $g3_stats['user'] + $g3_stats['group'] + $g3_stats['album'] + $g3_stats['item'] + $g3_stats['comment'] + $g3_stats['tag'];
}
$view->content->form = $this->_get_import_form();
$view->content->version = '';
$view->content->thumb_size = module::get_var('gallery', 'thumb_size');
$view->content->resize_size = module::get_var('gallery', 'resize_size');
if (g1_import::is_initialized()) {
if (count(g1_import::$warn_utf8) > 0) {
message::error(t('Your G1 contains %count folder(s) containing nonstandard characters that G3 doesn\'t work with: <pre>%names</pre>Please rename the above folders in G1 before trying to import your data.', array('count' => count(g1_import::$warn_utf8), 'names' => "\n\n " . implode("\n ", g1_import::$warn_utf8) . "\n\n")));
}
if ((bool) ini_get('eaccelerator.enable') || (bool) ini_get('xcache.cacher')) {
message::warning(t('The eAccelerator and XCache PHP performance extensions are known to cause issues. If you\'re using either of those and are having problems, please disable them while you do your import. Add the following lines: <pre>%lines</pre> to gallery3/.htaccess and remove them when the import is done.', array('lines' => "\n\n php_value eaccelerator.enable 0\n php_value xcache.cacher off\n php_value xcache.optimizer off\n\n")));
}
foreach (array('notification', 'search', 'exif') as $module_id) {
if (module::is_active($module_id)) {
message::warning(t('<a href="%url">Deactivating</a> the <b>%module_id</b> module during your import will make it faster', array('url' => url::site('admin/modules'), 'module_id' => $module_id)));
}
}
} else {
if (g1_import::is_configured()) {
$view->content->form->configure_g1_import->albums_path->add_error('invalid', 1);
}
}
print $view;
}
示例12: __construct
/**
* Attempts to load a view and pre-load view data.
*
* @throws Kohana_Exception if the requested view cannot be found
* @param string $name view name
* @param string $page_type page type: collection, item, or other
* @param string $page_subtype page sub type: album, photo, tags, etc
* @param string $theme_name view name
* @return void
*/
public function __construct($name, $page_type, $page_subtype)
{
parent::__construct($name);
$this->theme_name = module::get_var("gallery", "active_site_theme");
if (identity::active_user()->admin) {
$this->theme_name = Input::instance()->get("theme", $this->theme_name);
}
$this->item = null;
$this->tag = null;
$this->set_global("theme", $this);
$this->set_global("user", identity::active_user());
$this->set_global("page_type", $page_type);
$this->set_global("page_subtype", $page_subtype);
$this->set_global("page_title", null);
if ($page_type == "collection") {
$this->set_global("thumb_proportion", $this->thumb_proportion());
}
$maintenance_mode = Kohana::config("core.maintenance_mode", false, false);
if ($maintenance_mode) {
message::warning(t("This site is currently in maintenance mode"));
}
}
示例13: save
//.........这里部分代码省略.........
module::clear_var("th_greydragon", "photonav_position");
module::clear_var("th_greydragon", "photo_descmode");
module::clear_var("th_greydragon", "desc_allowbbcode");
module::clear_var("th_greydragon", "hide_photometa");
module::clear_var("th_greydragon", "disable_seosupport");
module::clear_var("th_greydragon", "sidebar_albumonly");
module::clear_var("th_greydragon", "sidebar_allowed");
module::clear_var("th_greydragon", "sidebar_visible");
module::event("theme_edit_form_completed", $form);
message::success(t("Theme details are reset"));
} else {
// * General Settings ****************************************************
$_priorratio = module::get_var("th_greydragon", "thumb_ratio");
if (!$_priorratio) {
$_priorratio = "digital";
}
$resize_size = $form->edit_theme->resize_size->value;
$thumb_size = 200;
$build_resize = $form->maintenance->build_resize->value;
$build_thumbs = $form->maintenance->build_thumbs->value;
$build_exif = $form->maintenance->build_exif->value;
$thumb_ratio = $form->edit_theme_adv_thumb->thumb_ratio->value;
if ($thumb_ratio == "photo") {
$rule = Image::AUTO;
} else {
$rule = Image::WIDTH;
}
$color_pack = $form->edit_theme->colorpack->value;
$thumb_descmode = $form->edit_theme_adv_thumb->thumb_descmode->value;
$photo_descmode = $form->edit_theme_adv_photo->photo_descmode->value;
if ($build_resize) {
graphics::remove_rule("gallery", "resize", "gallery_graphics::resize");
graphics::add_rule("gallery", "resize", "gallery_graphics::resize", array("width" => $resize_size, "height" => $resize_size, "master" => Image::AUTO), 100);
}
if (module::get_var("gallery", "resize_size") != $resize_size) {
module::set_var("gallery", "resize_size", $resize_size);
}
if ($build_thumbs) {
graphics::remove_rule("gallery", "thumb", "gallery_graphics::resize");
graphics::add_rule("gallery", "thumb", "gallery_graphics::resize", array("width" => $thumb_size, "height" => $thumb_size, "master" => $rule), 100);
}
if ($build_exif) {
db::build()->delete("exif_records")->execute();
}
if (module::get_var("gallery", "thumb_size") != $thumb_size) {
module::set_var("gallery", "thumb_size", $thumb_size);
}
module::set_var("gallery", "header_text", $form->edit_theme->header_text->value);
module::set_var("gallery", "footer_text", $form->edit_theme->footer_text->value);
$this->save_item_state("copyright", $form->edit_theme->copyright->value, $form->edit_theme->copyright->value);
$this->save_item_state("logo_path", $form->edit_theme->logo_path->value, $form->edit_theme->logo_path->value);
$this->save_item_state("color_pack", $color_pack and $color_pack != "greydragon", $color_pack);
// * Advanced Options - main *********************************************
module::set_var("gallery", "show_credits", $form->edit_theme_adv_main->show_credits->value);
$this->save_item_state("show_guest_menu", $form->edit_theme_adv_main->show_guest_menu->value, TRUE);
$this->save_item_state("loginmenu_position", $form->edit_theme_adv_main->loginmenu_position->value == "1", "header");
$this->save_item_state("mainmenu_position", $form->edit_theme_adv_main->mainmenu_position->value == "1", "top");
$this->save_item_state("hide_breadcrumbs", $form->edit_theme_adv_main->hide_breadcrumbs->value, TRUE);
$this->save_item_state("photonav_position", $form->edit_theme_adv_main->photonav_position->value != "top", $form->edit_theme_adv->photonav_position->value);
$this->save_item_state("enable_pagecache", $form->edit_theme_adv_main->enable_pagecache->value, TRUE);
$this->save_item_state("disable_seosupport", $form->edit_theme_adv_main->disable_seosupport->value, TRUE);
// * Advanced Options - Album page ***************************************
$this->save_item_state("thumb_ratio", $thumb_ratio != "photo", $thumb_ratio);
$this->save_item_state("thumb_descmode", $thumb_descmode != "overlay", $thumb_descmode);
$this->save_item_state("hide_thumbmeta", $form->edit_theme_adv_thumb->hide_thumbmeta->value, TRUE);
// * Advanced Options - Photo page ***************************************
$this->save_item_state("photo_descmode", $photo_descmode != "overlay", $photo_descmode);
$this->save_item_state("desc_allowbbcode", $form->edit_theme_adv_photo->desc_allowbbcode->value, TRUE);
$this->save_item_state("hide_photometa", !$form->edit_theme_adv_photo->hide_photometa->value, FALSE);
// * Sidebar Options ****************************************************
$sidebar_allowed = $form->edit_theme_side->sidebar_allowed->value;
$sidebar_visible = $form->edit_theme_side->sidebar_visible->value;
if ($sidebar_allowed == "right") {
$sidebar_visible = "right";
}
if ($sidebar_allowed == "left") {
$sidebar_visible = "left";
}
$this->save_item_state("hide_blockheader", $form->edit_theme_side->hide_blockheader->value, TRUE);
$this->save_item_state("sidebar_albumonly", $form->edit_theme_side->sidebar_albumonly->value, TRUE);
$this->save_item_state("sidebar_allowed", $sidebar_allowed != "any", $sidebar_allowed);
$this->save_item_state("sidebar_visible", $sidebar_visible != "right", $sidebar_visible);
if ($sidebar_allowed == "none" and $sidebar_visible == "none") {
module::set_var("gallery", "page_size", $form->edit_theme->row_count->value * 4);
} else {
module::set_var("gallery", "page_size", $form->edit_theme->row_count->value * 3);
}
module::event("theme_edit_form_completed", $form);
if ($_priorratio != $thumb_ratio) {
message::warning(t("Thumb aspect ratio has been changed. Consider rebuilding thumbs if needed."));
}
message::success(t("Updated theme details"));
}
url::redirect("admin/theme_options");
} else {
$view = new Admin_View("admin.html");
$view->content = $form;
print $view;
}
}
示例14: log
static function log($msg)
{
message::warning($msg);
Kohana::log("alert", $msg);
}
示例15: log
static function log($msg)
{
message::warning($msg);
Kohana_Log::add("alert", $msg);
}