- Mar 22, 2013
- 9,147
- 10,489
I have a site, and it's built in or using Laravel (I'm no coding guy, so you'll excuse my lack of ability to articulate things properly).
But my problem is simple. I have this line of code:
It's a support tab on my site. When users or admin receive a reply, I want to make it so that a little icon or number appears next to the tab. On another part of the site there is a function that informs users of new messages, basically, using this:
Now, I tried a number of variations:
I tried these and a few others, and it Works. The notification appears. HOWEVER, after I make the change, when I try to visit any page other than the Dashboard page on the site, or if I log out and login again, I get greeted with a big blank page that says:
Whoops, looks like something went wrong.
If I remove the change I made, the site works normally again.
How is this possible? I'm a CSS/HTML guy. You know, a bit of a dinosaur. But this is a simple little baby change, and in CSS or HTML this would work 100% in 3 seconds and no issues. The only issue I would have is to implement the notification in the right size and margins and stuff.
So, any ideas guys?
But my problem is simple. I have this line of code:
Code:
<li><a href="{{ url('/support') }}">@lang('menus.support')</a></li>
It's a support tab on my site. When users or admin receive a reply, I want to make it so that a little icon or number appears next to the tab. On another part of the site there is a function that informs users of new messages, basically, using this:
Code:
<h3>{{ $unreadMessages }}</h3>
Now, I tried a number of variations:
Code:
<li>{{ $unreadMessages }}<a href="{{ url('/support') }}">@lang('menus.support')</a></li>
<li><a href="{{ url('/support') }}">@lang('menus.support') {{ $unreadMessages }}</a></li>
<li><a href="{{ url('/support') }}">@lang('menus.support')</a>{{ $unreadMessages }}</li>
I tried these and a few others, and it Works. The notification appears. HOWEVER, after I make the change, when I try to visit any page other than the Dashboard page on the site, or if I log out and login again, I get greeted with a big blank page that says:
Whoops, looks like something went wrong.
If I remove the change I made, the site works normally again.
How is this possible? I'm a CSS/HTML guy. You know, a bit of a dinosaur. But this is a simple little baby change, and in CSS or HTML this would work 100% in 3 seconds and no issues. The only issue I would have is to implement the notification in the right size and margins and stuff.
So, any ideas guys?