当前位置: 首页>>代码示例>>PHP>>正文


PHP Uri::front方法代码示例

本文整理汇总了PHP中Uri::front方法的典型用法代码示例。如果您正苦于以下问题:PHP Uri::front方法的具体用法?PHP Uri::front怎么用?PHP Uri::front使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Uri的用法示例。


在下文中一共展示了Uri::front方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

    }
    ?>
            </li>
        <?php 
}
?>

        <li class="pagination_list_separator">|</li>
    </ul>
    <?php 
echo $pagination;
?>

        <div class="right">
            <?php 
echo \Form::open(array('action' => \Uri::front(), 'method' => 'get'), \Input::get());
?>
                <?php 
echo \Form::select('sort', \Input::get('sort'), $sort, array('class' => 'select_init right change_submit'));
?>
                <ul class="pagination_list right">
                    <li>sort by:</li>
                </ul>
            <?php 
echo \Form::close();
?>
        </div>

    </div>
    <div class="clearfix"></div>
</div>
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:31,代码来源:pagination.php

示例2: array

<div class="app-content">
  <div class="container">
   <div class="row">
   <div class="label-heading">
         <h3 class="label-title">Signup</h3>
       </div>
     <div class="col-sm-6">
       
       <div class="app-content">
        <!-- Signup Form -->
         <?php 
echo \Form::open(array('action' => \Uri::front('current'), 'data-validate' => 'parsley'), array('signup' => 1, 'user_group' => 4));
?>

            <?php 
echo $theme->view('views/user/_form');
?>
            
        <?php 
echo \Form::close();
?>
          <!-- EOF Signup Form -->
       </div>
     </div>
   </div>
  </div>
</div>
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:27,代码来源:single_signup.php

示例3: array

                      <?php 
echo \Theme::instance()->view('views/user/account/_sidebar', array('active' => $user->id == \Sentry::user()->id ? 'dashboard' : 'users'));
?>
                  </div>
              </div>

              <div class="col-sm-8">
                  <div class="table-responsive">
                    <table class="table table-l2">
                      <thead>
                          <tr>
                              <td colspan="2">Details</td>
                          </tr>
                      </thead>
                       <?php 
echo \Form::open(array('action' => \Uri::front('current'), 'data-validate' => 'parsley'), array('details' => 1));
?>
                            <?php 
echo $theme->view('views/user/_form', array('user' => $user, 'edit' => true), false);
?>
                        <?php 
echo \Form::close();
?>
                  </table>
                  </div>
              </div>
          </div>
      </div>
    </div>
</div>
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:30,代码来源:single_details.php

示例4: action_change

 /**
  * Change user details
  * 
  * @param $field = Field name (username, email, password)
  * 
  * @access public
  * @return void
  */
 public function action_change($field = 'password')
 {
     $field = strtolower($field);
     $allowed_changes = array('username', 'email', 'password', 'dob');
     if (!in_array($field, $allowed_changes)) {
         \Response::redirect(\Uri::front_create('user'));
     }
     \View::set_global('title', __('Change :field_name', array('field_name' => ucfirst($field))));
     // Get current user
     $user = \Sentry::user();
     if (\Input::post()) {
         $val = \User\Controller_Validate::forge('change_' . $field, $user->id);
         if ($val->run()) {
             // Get POST values
             $insert = \Input::post();
             try {
                 // update the user
                 if ($field == 'dob') {
                     $user->update(array('metadata' => array('dob_year' => $insert['dob_year'], 'dob_month' => $insert['dob_month'], 'dob_day' => $insert['dob_day'])));
                 } else {
                     $user->update(array($field => $insert[$field]));
                 }
                 if ($user->in_group(4)) {
                     $user->remove_from_group(4);
                     // Remove from guest group
                     $user->add_to_group(3);
                     // Add to standard customers group
                 }
                 \Messages::success(__(':field_name successfully changed.', array('field_name' => ucfirst($field))));
                 \Response::redirect(\Input::referrer(\Uri::front('current')));
             } catch (\Sentry\SentryException $e) {
                 // show validation errors
                 //\Messages::error('<h4>There was an error while trying to create user</h4>');
                 $errors = $e->getMessage();
                 \Messages::error($errors);
             }
         } else {
             if ($val->error() != array()) {
                 // show validation errors
                 //\Messages::error('<h4>There was an error while trying to create user</h4>');
                 foreach ($val->error() as $e) {
                     \Messages::error($e->get_message());
                 }
             }
         }
     }
     if (\Input::is_ajax()) {
         \View::set_global('language', $this->language);
         echo \Theme::instance()->view($this->view_dir . 'change_' . $field, array('user' => $user));
     } else {
         if (isset($val)) {
             \View::set_global('validation', $val, false);
         }
         \Theme::instance()->set_partial('content', $this->view_dir . 'single_change_' . $field);
     }
 }
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:64,代码来源:account.php

示例5:

<!-- Edit Details Layout -->
<div class="cart_heading text-center">
    <h2 class="modal-title">
        <span class="edit_cart left" style="margin-top: -2px; height: 15px;"></span><?php 
echo $subtitle;
?>
        <a href="#" class="close_cart_link close_rounded right"></a>
    </h2>
</div>
<div class="content_wrapper gradient forms_gradient">
    <div class="cart_content">
        
        <div class="cart_message_box" style="display: none;"></div>
         
        <?php 
echo \Form::open(array('action' => \Uri::front('current'), 'data-validate' => 'parsley', 'id' => 'edit_address_form'));
?>
        
            <?php 
echo $content;
?>

            <div class="row">
                <div class="col-sm-12">
                    <a href="#" class="btn btn-bordered btn-block m-30" id="edit_address_submit" data-type="<?php 
echo $type;
?>
"><span>Update</span></a>
                </div>
            </div>
        
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:30,代码来源:address_edit.php

示例6: array

<div style="width: 695px; margin-bottom: 0;" class="account_form content">
    <?php 
echo \Form::open(\Uri::front('current'), array('details' => 1));
?>
    <?php 
echo \Theme::instance()->view('views/user/account/_form', array('user' => $user, 'edit' => true, 'states' => $states), false);
?>
    <?php 
//echo \Form::button(array('type' => 'submit', 'value' => '<span>Save Details</span>', 'class' => 'button right arrow'));
?>
    <?php 
echo \Form::close();
?>
</div>
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:14,代码来源:details.php

示例7: array

        </div>

        <div class="content_wrapper gradient forms_gradient">

            <div class="content_holder">
                
                <div class="row-fluid">
                    
                    <?php 
echo \Theme::instance()->view('views/user/account/_sidebar', array('active' => 'users'));
?>
                    
                    <div class="span9">

                        <?php 
echo \Form::open(array('action' => \Uri::front('current'), 'data-validate' => 'parsley'), array('details' => 1, 'user_group' => $user_group['id']));
?>

                            <?php 
echo $theme->view('views/user/_form', array('create' => true), false);
?>

                        <?php 
echo \Form::close();
?>

                    </div>
                </div>
            </div>
        </div>
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:30,代码来源:create.php


注:本文中的Uri::front方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。