我需要查询信息表单数据库CONSTRUCT {
?film wdt:P31 wd:Q11424 .
?film rdfs:label ?filmLabel .
}
WHERE {
?film wdt:P31 wd:Q11424 .
hint:Query hint:queryEngineChunkHandler "Managed" .
# hint:Query hint:constructDistinctSPO false .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
我的代码可以显示1页
我的控制器
[company name ,company address]
主刀片
public function index()
{
$footer = DB::table('pjt_setting')->pluck('value','setting_name')->toArray();
//dd($footer);
return view('frontend.index',compact('footer'));
}
页脚刀片
<!-- topbar -->
@include('frontend.layouts.topbar')
<!-- top -->
@include('frontend.layouts.nav')
<!-- header slide -->
<!-- Main content -->
@yield('content')
<!-- /.content -->
<footer class="footer-distributed">
@include('frontend.layouts.footer')
</footer>
索引页面没问题但是,我链接到联系页面
显示错误<div class="row">
<div class="col-md-6">
<div class="footer-left">
<h3>{{ $footer["companyname"]}}</h3>
<p class="footer-company-name">Phuket Jet Tour © 2018</p>
</div>
</div>
<div class="footer-center"></div>
<div class="col-md-6">
<div class="footer-right">
<div class="companyaddress">
<i class="fa fa-map-marker"></i>
<p>{{ $footer["companyaddress"] }}</p>
</div>
<div>
<i class="fa fa-phone"></i>
<p>{{ $footer["phone"] }}</p>
</div>
<div>
<i class="fa fa-envelope"></i>
<p><a href="mailto:{{ $footer["email"] }}">{{ $footer["email"] }}</a></p>
</div>
</div>
</div>
。
我如何编辑
答案 0 :(得分:1)
在$footer
视图中传递contact
:
$footer = DB::table('pjt_setting')->pluck('value','setting_name')->toArray();
return view('frontend.contact-us',compact('footer'));
对于每share
footer
来自base controller
view
的最佳方法是class BaseController extends \Controller
{
protected $footer;
public function __construct()
{
$this->footer = DB::table('pjt_setting')->pluck('value','setting_name')->toArray();
View::share('footer', $footer);
}
}
#use this only on grayscaled image
thresh = cv2.threshold(yourImage, 40, 255, cv2.THRESH_BINARY)[1]
# dilate the thresholded image to fill in holes, then find contours
# on thresholded image
thresh = cv2.dilate(thresh, None, iterations=2)
(_,cnts, _) = cv2.findContours(thresh.copy(), cv2.RETR_EXTERNAL,
cv2.CHAIN_APPROX_SIMPLE)
largest = max(cnts)
答案 1 :(得分:1)
你可以这样做@ Sohel0415
或者你可以使用Trait。