本文整理汇总了PHP中URL::full方法的典型用法代码示例。如果您正苦于以下问题:PHP URL::full方法的具体用法?PHP URL::full怎么用?PHP URL::full使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类URL
的用法示例。
在下文中一共展示了URL::full方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIndex
public function getIndex($option = null)
{
Session::put('curr_page', URL::full());
$view = View::make('home');
$view['sid'] = Session::getId();
return $view;
}
示例2: editAction
public function editAction()
{
$form = new ProductoForm();
$idinventario = Input::get("ID_INVENTARIO");
$producto = Producto::findOrFail($idinventario);
$url = URL::full();
$this->getRuta();
//die();
if ($form->isPosted()) {
if ($form->isValidForEdit()) {
//$producto->ID_INVENTARIO = Input::get("ID_INVENTARIO");
$producto->ID_VENTA = Input::get("id_venta_txt");
$producto->ID_PRODUCTO = Input::get("id_producto_txt");
$producto->ID_RUTA = Input::get("id_ruta_txt");
$producto->NOMBRE_PRODUCTO = Input::get("nombre_producto_txt");
$producto->DISPONIBLE = Input::get("disponible_chk");
//die (var_dump($producto->ID_VENTA ).var_dump($producto->ID_PRODUCTO ).var_dump($producto->ID_RUTA ).var_dump($producto->NOMBRE_PRODUCTO ).var_dump($producto->DISPONIBLE ));
$producto->save();
return Redirect::route($this->routeIndex);
}
return Redirect::to($url)->withInput(["ID_INVENTARIO" => Input::get("ID_INVENTARIO"), "producto" => $producto, "errors" => $form->getErrors(), "url" => $url]);
}
//die($data->name);
return View::make($this->routeEdit, ["form" => $form, "producto" => $producto, "rutasValidas" => $this->rutasValidas, "HeaderTitle" => trans('producto.editrecord')]);
}
示例3: post_create
public function post_create()
{
$posts = Input::all();
$title = $posts['thread_name'];
$contentRaw = $posts['inputarea'];
if ($title != '' && strlen($contentRaw) > 10) {
$alias = Str::slug($title, '-');
$exist = Thread::where('alias', '=', $alias)->first();
if ($exist != null) {
return Redirect::to($exist->id);
}
$threadData = array('title' => $posts['thread_name'], 'alias' => $alias, 'type' => 0, 'poster_ip' => Request::ip(), 'dateline' => date("Y-m-d H:i:s"), 'last_message_at' => date("Y-m-d H:i:s"));
$thread = Thread::create($threadData);
if ($thread != null) {
$content = static::replace_at(BBCode2Html(strip_tags_attributes($contentRaw)), $thread->id);
$postData = array('thread_id' => $thread->id, 'entry' => $content, 'userip' => Request::ip(), 'user_id' => Sentry::user()->id, 'datetime' => date("Y-m-d H:i:s"), 'count' => 1, 'type' => 0);
$pst = Post::create($postData);
if ($pst != null) {
return Redirect::to($thread->id);
}
}
} else {
return Redirect::to(URL::full());
}
}
示例4: sa
function sa($item)
{
if (URL::to($item) == URL::full()) {
return 'class="active"';
} else {
return '';
}
}
示例5: __construct
public function __construct(UserRepositoryInterface $user)
{
$this->user = $user;
$this->beforeFilter(function () {
if (\Auth::user() === null) {
// Push the intended URL into the session
\Session::put('url.intended', \URL::full());
return Redirect::route('home')->with('message', "You must be logged in to continue.")->with('messageStatus', 'danger');
}
});
}
示例6: __construct
function __construct()
{
session_start();
$_SESSION['url'] = URL::full();
$auth = Session::get('auth');
if (empty($auth)) {
return Redirect::to('login')->send();
}
$this->_auth = $auth;
$this->_user = User::where('openid', $this->_auth['openid'])->first();
}
示例7: action_show
public function action_show()
{
$args = array();
if (is_array(Auth::user()->oauth)) {
foreach (Auth::user()->oauth as $ligne) {
$args['have_' . $ligne->provider] = true;
}
}
Session::put('from_url', URL::full());
return View::make('panel::panel.applications', $args);
}
示例8: __construct
public function __construct(ServiceRepositoryInterface $service, StaffRepositoryInterface $staff, LocationRepositoryInterface $locations)
{
parent::__construct();
$this->staff = $staff;
$this->service = $service;
$this->locations = $locations;
$this->beforeFilter(function () {
if (\Auth::user() === null) {
// Push the intended URL into the session
\Session::put('url.intended', \URL::full());
return Redirect::route('home')->with('message', "You must be logged in to continue.")->with('messageStatus', 'danger');
}
});
}
示例9: getContent
public function getContent()
{
//@todo automate module simple configuration for Model's columns or settings (conf)
if (Input::get('illuminatocomments_conf')) {
$this->conf->set(['GRADES' => Input::has('enable_grades')]);
$this->conf->set(['COMMENTS' => Input::has('enable_comments')]);
}
$html = Form::open(['id' => 'illuminatocomments_form', 'enctype' => 'multipart/form-data', 'url' => URL::full()]);
$html .= Form::label('enable_grades', 'Enable grades');
$html .= Form::checkbox('enable_grades', '1', $this->conf->get('GRADES'));
$html .= Form::label('enable_comments', 'Enable comments');
$html .= Form::checkbox('enable_comments', '1', $this->conf->get('COMMENTS'));
$html .= Form::submit('Save', ['name' => 'illuminatocomments_conf', 'id' => 'illuminatocomments_conf']);
$html .= Form::close();
return $html;
}
示例10: __construct
public function __construct(CreditRepositoryInterface $credits, UserRepositoryInterface $users, CreditValidator $validator, StaffRepositoryInterface $staff)
{
parent::__construct();
$this->staff = $staff;
$this->users = $users;
$this->credits = $credits;
$this->validator = $validator;
$this->beforeFilter(function () {
if (\Auth::user() === null) {
// Push the intended URL into the session
\Session::put('url.intended', \URL::full());
// Set the flash message
Flash::error("You must be logged in to continue.");
return Redirect::route('home');
}
});
}
示例11: editAction
public function editAction()
{
$form = new ProveedorForm();
$keyValue = Input::get($this->key);
$object = Proveedor::findOrFail($keyValue);
$url = URL::full();
$FieldsnameHelper = $this->FieldsName;
if ($form->isPosted()) {
$i = 0;
if ($form->isValidForEdit(0)) {
$object->{$FieldsnameHelper}['1'] = Input::get($this->FieldsEdit['1']['name'] . $i);
$object->{$FieldsnameHelper}['2'] = Input::get($this->FieldsEdit['2']['name'] . $i);
$object->{$FieldsnameHelper}['3'] = Input::get($this->FieldsEdit['3']['name'] . $i);
$object->{$FieldsnameHelper}['4'] = Input::get($this->FieldsEdit['4']['name'] . $i);
$object->save();
return Redirect::route($this->routeIndex);
}
return Redirect::to($url)->withInput(["key" => Input::get($this->key), "object" => $object, "errors" => $form->getErrors(), "url" => $url]);
}
return View::make($this->routeEdit, ["form" => $form, "object" => $object, "FieldsEdit" => $this->FieldsEdit, "module" => $this->module, "key" => $this->key]);
}
示例12: editAction
public function editAction()
{
$form = new DataForm();
$id = Input::get("id");
$data = Data::findOrFail($id);
$url = URL::full();
if ($form->isPosted()) {
if ($form->isValidForEdit()) {
$data->name = Input::get("name");
$data->description = Input::get("description");
$data->mobile = Input::get("mobile");
$data->email = Input::get("email");
$data->web = Input::get("web");
$data->address = Input::get("address");
$data->save();
return Redirect::route($this->routeIndex);
}
return Redirect::to($url)->withInput(["name" => Input::get("name"), "data" => $data, "errors" => $form->getErrors(), "url" => $url]);
}
//die($data->name);
return View::make($this->routeEdit, ["form" => $form, "data" => $data, "HeaderTitle" => trans('data.editrecord')]);
}
示例13:
@endif
@endforeach
@endforeach
</div>
<div style="float: left; width: 25%;">
<h4 class=""><i class="fa fa-bar-chart-o"></i>
@foreach($countAprovDis as $countAprovDisRow)
@foreach($countTotalDis as $countTotalDisRow)
Aproveitamento: <%$countAprovDisRow->cursadas%> de <% $countTotalDisRow->total_dis%>
@endforeach
@endforeach
</h4>
</div>
</div>
<?php
Session::put('RoutePage', URL::full());
?>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-bordered table-hover table-striped">
<thead>
<tr>
<th style="width: 6%">Periodo</th>
<th>Disciplina</th>
<th style="width: 12%">Ano</th>
<th style="width: 12%">Status</th>
<th style="width: 15%">Opções</th>
</tr>
</thead>
<tbody>
@if(count($historico) > 0)
示例14: get_disclosure_text
<div class="col-sm-8 col-sm-offset-2">
<div id="disclosure_text" class="well well-sm text-info">
{{ get_disclosure_text(true) }}
<div class="text-center hide">
By accepting our Terms you agree that you have read, understand, and accept <br/> the disclosure described above and our <a href="/privacypolicy" onclick="LoadStep('/privacypolicy'); return false;">Privacy Policy</a> <br/>
</div>
@include('disclosureagreebtn')
<div class="gottaagreetho hide"><div class="alert alert-danger">You must agree to these terms to continue.</div></div>
</div>
</div>
</div>
<?php
$encrypted = Crypt::encrypt(URL::secure(URL::full()));
?>
<input type="hidden" name="rd" value="{{ $encrypted }}">
</form>
@if (Session::get('accepted_disclosure'))
<script>
jQuery('#disclosure_display_box').addClass('hide');
</script>
@endif
示例15: function
return Redirect::to('/');
} else {
// validation not successful
// send back to form with errors
// send back to form with old input, but not the password
return Redirect::to('login')->withErrors($validator)->withInput(Input::except('password'));
}
} else {
// user does not exist in database
// return them to login with message
Session::flash('loginError', 'This user does not exist.');
return Redirect::to('login');
}
}
});
Route::get('logout', function () {
Auth::logout();
return Redirect::to('/');
});
/* Filters */
Route::filter('auth', function () {
if (Auth::guest()) {
Session::put('redirect', URL::full());
return Redirect::to('login');
}
if ($redirect = Session::get('redirect')) {
Session::forget('redirect');
return Redirect::to($redirect);
}
//if (Auth::guest()) return Redirect::to('login');
});