Components\ThemeManager\Controllers\Backend\ThemeManagerController::apply PHP Method

apply() public method

Display the specified theme.
public apply ( integer $id ) : Response
$id integer
return Response
    public function apply($id)
    {
        $theme = Theme::findOrFail($id);
        \Setting::setValue("{$theme->target}_theme", $theme->id);
        return Redirect::to('backend/theme-manager')->with('success_message', 'The theme was successfully applied');
    }