<?php
$siteHeading = '<a href="'.URL::route('reisen', $trip->slug).'">'.$trip->h1.'</a> — Jetzt buchen';
?>
<?php $__env->startSection('content'); ?>
<?php echo Form::open(array('route'=>array('reisen.sendInfos', $trip->slug), 'class'=>'form-horizontal', 'role'=>'form', 'method'=>'POST')); ?>
<?php echo Form::bsFormGroupError('name', $errors); ?>
<?php echo Form::label('name', 'Name *', array('class'=>'col-md-3 control-label')); ?>
<div class="col-md-6">
<?php
$siteHeading = '<a href="'.URL::route('reisen', $trip->slug).'">'.$trip->h1.'</a> — Jetzt buchen';
?>
<?php $__env->startSection('content'); ?>
<?php echo Form::open(array('route'=>array('reisen.sendInfos', $trip->slug), 'class'=>'form-horizontal', 'role'=>'form', 'method'=>'POST')); ?>
<?php echo Form::bsFormGroupError('name', $errors); ?>
<?php echo Form::label('name', 'Name *', array('class'=>'col-md-3 control-label')); ?>
<div class="col-md-6">
extract($__data);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try
{
include $__path;
}
catch (\Exception $e)
if ($this->compiler->isExpired($path))
{
$this->compiler->compile($path);
}
$compiled = $this->compiler->getCompiledPath($path);
return $this->evaluatePath($compiled, $data);
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$env->incrementRender();
$env->callComposer($this);
$contents = trim($this->getContents());
// Once we've finished rendering the view, we'll decrement the render count
}
// If this content implements the "RenderableInterface", then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof RenderableInterface)
{
$content = $content->render();
}
* @throws \InvalidArgumentException When the HTTP status code is not valid
*
* @api
*/
public function __construct($content = '', $status = 200, $headers = array())
{
$this->headers = new ResponseHeaderBag($headers);
$this->setContent($content);
$this->setStatusCode($status);
$this->setProtocolVersion('1.0');
*
* @param mixed $value
* @param \Illuminate\Http\Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function prepare($value, Request $request)
{
if ( ! $value instanceof SymfonyResponse) $value = new Response($value);
return $value->prepare($request);
protected function processResponse($router, $method, $response)
{
$request = $router->getRequest();
// The after filters give the developers one last chance to do any last minute
// processing on the response. The response has already been converted to a
// full Response object and will also be handed off to the after filters.
$response = $router->prepare($response, $request);
$this->callAfterFilters($router, $method, $response);
// used we will assume we want to just return the layout view as any nested
// views were probably bound on this view during this controller actions.
if (is_null($response) and ! is_null($this->layout))
{
$response = $this->layout;
}
return $this->processResponse($router, $method, $response);
}
// We will extract the passed in parameters off of the route object so we will
// pass them off to the controller method as arguments. We will not get the
// defaults so that the controllers will be able to use its own defaults.
$args = array_values($route->getParametersWithoutDefaults());
$instance = $ioc->make($controller);
return $instance->callAction($ioc, $me, $method, $args);
};
}
*
* @return mixed
*/
protected function callCallable()
{
$variables = array_values($this->getParametersWithoutDefaults());
return call_user_func_array($this->getOption('_call'), $variables);
}
// We will only call the router callable if no "before" middlewares returned
// a response. If they do, we will consider that the response to requests
// so that the request "lifecycle" will be easily halted for filtering.
$response = $this->callBeforeFilters($request);
if ( ! isset($response))
{
$response = $this->callCallable();
}
// Once we have the route, we can just run it to get the responses, which will
// always be instances of the Response class. Once we have the responses we
// will execute the global "after" middlewares to finish off the request.
else
{
$this->currentRoute = $route = $this->findRoute($request);
$response = $route->run($request);
}
if ($this->isDownForMaintenance())
{
$response = $this['events']->until('illuminate.app.down');
if ( ! is_null($response)) return $this->prepareResponse($response, $request);
}
return $this['router']->dispatch($this->prepareRequest($request));
}
/**
* Handles the given request and delivers the response.
*
* @return void
*/
public function run()
{
$response = $this->dispatch($this['request']);
$this['router']->callCloseFilter($this['request'], $response);
| Once we have the application, we can simply call the run method,
| which will execute the request and send the response back to
| the client's browser allowing them to enjoy the creative
| and wonderful applications we have created for them.
|
*/
$app->run();
/*