Support the ongoing development of Laravel.io →
posted 9 years ago
Views Blade
Last updated 2 years ago.
0

You should enable debugging in: "app\config\local\app.php". Set it to "true". Should look like this:

'debug' => true,

That will help you a lot.

My guess is that you're misspelling something or have misplaced something. Do you have a "default.blade.php" in "app\views\layouts"?

Last updated 2 years ago.
0

Hi,

Debug is already set to true and I do have default.blade.php in my app/views/layouts.

Here is the default.blade.php maybe you can see something that I missed

<!doctype html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<title>{{ $title }}</title>
		
		<meta name="viewport" content="width=device-width">
		<link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>

		{{ HTML::style('css'/bootstrap.css) }}
		{{ HTML::style('css'/style.css) }}
		{{ HTML::style('css'/slider.css) }}
		{{ HTML::script('js'/slider.js) }}

	</head>

	<body class="{{ $class }}">
		<!-- CONTAINER -->
		<div class="container">
			<div class="row-fluid header">
				<div class="span4 logo">
					<a href="{{ URL::to('/') }}"><img class="logo" src="{{URL::asset('images/logo.png') }}"></a>
				</div>

				<div class="span6 menu">
					<ul>
						<li>
							<a href="#popup" data-toggle="modal">Create Product</a> 
						</li>

						<li>
							{{ link_to_route('pcredit', 'Purchase Credits') }}
						</li>

						<li>
							{{ link_to_route('cart', 'Cart') }}
						</li>

						<li>
							{{ link_to_route('contact', 'Contact') }}
						</li>

						<li>
							{{ link_to_route('userlogin', 'Login') }}
						</li>

						<li>
							{{ link_to_route('register', 'Register') }}
						</li>
					</ul>
				</div>

				<div class="span2 social">
					<a href="https://www.facebook.com/"; target="_blank"><img class="facebook" src="{{ URL::to('/') }}/img/img_trans.png" /></a>
					<a href="https://www.twitter.com" target="_blank"><img class="twit" src="{{ URL::to('/') }}/img/img_trans.png" /></a>
					<a href="https://pinterest.com/"; target="_blank"><img class="ping" src="{{ URL::to('/') }}/img/img_trans.png" /></a>
				</div>
			</div>

			<!-- CONTENT -->
			@yield('inner-banner')
			<div class="row-fluid content">
				@yield('content')
			</div>
			<!-- END CONTENT -->

			<!-- SUBSCRIBE FORM -->
			<div class="row-fluid subcribe-form">
				<div class="span12 subscribe-content">
					{{ Form::open(array('url' => 'subscribe' )); }}
					{{ Form::label('something', 'Sign Up for Our Newsletter and Updates!'); }}
					{{ Form::text('email', null, array('class' => 'input-large', 'placeholder' => '' )); }}
					{{ Form::submit('Subscribe'); }}
					{{ Form::close(); }}
				</div>
			</div>
			<!-- END SUBSCRIBE FORM -->

			<!-- FOOTER -->
			<div class="row-fluid footer">
				<div class="span8 footer-menu">
					<ul>
						<li>
							{{ link_to_route('contact', 'Contact') }}
						</li>
						<li>
							{{ link_to_route('about', 'About Us') }}
						</li>
						<li>
							{{ link_to_route('login', 'Log In') }}
						</li>
						<li>
							{{ link_to_route('register', 'Register') }}
						</li>
					</ul>
				</div>

				
			</div>
			<!-- END FOOTER -->
		</div>
		<!-- END CONTAINER -->



	</body>
</html>
Last updated 2 years ago.
0

You have a lot going on in that page :-) And it's probably some of that which is causing the problem.

I would reduce the code (or create a new template) of the extending template to:

<!doctype html>
<html lang="en">
    <head>
    </head>
    <body>
        <div>
            @yield('content')
        </div>
    </body>
</html>

And then insert chunks of code until you hit the error. But you should really find out how to enable debugging, as this probably would spell out the error for you.

Last updated 2 years ago.
0

Hi I managed to get the debug working. It was in the folder app/config/app.php and I got this error Use of undefined constant bootstrap - assumed 'bootstrap'

Also if I removed that then I got a route not defined error/

Last updated 2 years ago.
0

I managed to sort of remove the error about the bootstrap, but my css isn't being picked up. The bootstrap is a css file that I have.

When I go to firebug and I expand the css, it has that whoops error and it looks like an html file instead of a css file

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

shiva shiva Joined 24 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.