本文整理汇总了PHP中base::success方法的典型用法代码示例。如果您正苦于以下问题:PHP base::success方法的具体用法?PHP base::success怎么用?PHP base::success使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类base
的用法示例。
在下文中一共展示了base::success方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: defined
<?
/**
*@package User
**/
?>
<?php
defined('SYSPATH') or die('No direct access allowed.');
?>
<h2><?php
echo Kohana::lang('user.login');
?>
</h2>
<? base::success($success); ?>
<? base::errors($errors); ?>
<?
echo form::open(NULL, array('class' => 'glForms'));
echo form::label('email', kohana::lang('user.email'));
echo form::input('email', ($form['email']));
echo '<br />';
echo form::label('password', Kohana::lang('user.password'));
echo form::password('password', NULL);
echo '<br />';
echo form::label('submit', ' ');
echo form::submit('submit', Kohana::lang('user.logmein'),'class=button');
echo '<br />';
echo form::close();
?>
<p><a href="/user/register"><?php
echo Kohana::lang('user.register');
示例2: defined
<?
/**
*@package Eshop
**/
?>
<?php defined('SYSPATH') or die('No direct access allowed.'); ?>
<h3><?php echo Kohana::lang('eshop.cart') ?></h3>
<p><?php echo Kohana::lang('eshop.welcome_in_cart'); ?></p>
<?php base::success($success); ?>
<?php echo form::open(NULL,array('class' => 'glForms')) ?>
<table class="cart">
<tr><th><?php echo Kohana::lang('eshop.item'); ?></th><th><?php echo Kohana::lang('eshop.quantity'); ?></th><th class="align_right"><?php echo Kohana::lang('eshop.price_one'); ?></th><th class="align_right"><?php echo Kohana::lang('eshop.total'); ?></th></tr>
<?php if(count($cart) == 0){?><tr><td colspan="4"><? echo Kohana::lang('eshop.cart_is_empty'); ?></td></tr><? } ?>
<?php foreach($cart as $row){ ?>
<tr>
<td><? echo product::get_name($row['product']); ?></td>
<td><? echo form::input('quantity['.$row['product'].']', ($row['quantity']),'size="3" maxsize="3"'); ?></td>
<td class="align_right"><? echo product::get_price($row['product']); ?>,- <?php echo Kohana::lang('eshop.currency'); ?></td>
<td class="align_right"><? echo (product::get_price($row['product'])*$row['quantity']); ?>,- <?php echo Kohana::lang('eshop.currency'); ?></td>
</tr>
<?php } ?>
<tr>
<td colspan="3"><?php echo Kohana::lang('eshop.total'); ?></td>
<td class="align_right"><?php echo $total; ?>,- <?php echo Kohana::lang('eshop.currency'); ?></td>
</tr>
</table>
<div class="cart_buttons">
<?php echo form::submit('change', Kohana::lang('eshop.change_quantity'),'class=button'); ?>