/**
  * Create a new redirect response to a controller action.
  *
  * @param  string  $action
  * @param  array   $parameters
  * @param  int     $status
  * @param  array   $headers
  * @return Illuminate\Http\RedirectResponse
  */
 public function action($action, $parameters = array(), $status = 302, $headers = array())
 {
     $path = $this->generator->action($action, $parameters);
     return $this->to($path, $status, $headers);
 }
Exemple #2
0
 /**
  * Generate a HTML link to a controller action
  *
  * An array of parameters may be specified to fill in URI segment wildcards.
  * 
  * @param  string $action
  * @param  string $title
  * @param  array  $parameters
  * @param  array  $attributes
  * @return string
  */
 public function action($action, $title = null, $parameters = array(), $attributes = array(), $absolute = true)
 {
     return $this->to($this->url->action($action, $parameters, $absolute), $title, $attributes);
 }