控制器和路线Laravel 4

时间:2013-11-11 17:02:56

标签: layout laravel laravel-routing

我正在尝试从一个文件夹(提供商)路由我的account.blade.php,但每次我这样做都会破坏布局。

所以网址看起来像这样

mywebsite.com/providers/account

路线:

Route::get('providers/account', array('as' => 'account', 'uses' => 'ProviderController@getLogin' ));

控制器:

public function getLogin()
{
    return View::make('providers.account')
                    ->with('title', 'Artsgap Account');
}

查看/提供商/ account.php:

@extends('layouts.default')

@section('content')

<div class="row">
        <section class="columns small-12 large-8">
            <h1>Hello Account</h1>
        <section>
</div>          
@stop

1 个答案:

答案 0 :(得分:0)

当您链接到CSS文件时,您使用的是绝对或相对链接吗? (布局是否失败,因为你正在做像../ css / styles.css这样的事情?)