FuelPHPで、welcome/indexをプレゼンターを使用して表示したいです。
ソースを以下のように編集しましたが、以下のエラーが発生します。
localhost ページは機能していません
localhost からデータが送信されませんでした。
ERR_EMPTY_RESPONSE
fuel/app/classes/controller/welcome.php
class Controller_Welcome extends Controller
php
1<?php 2class Controller_Welcome extends Controller 3{ 4 public function action_index() 5 { 6 return Response::forge(Presenter::forge('welcome/index')); 7 } 8 9}
fuel/app/classes/presenter/welcome/index.php
php
1<?php 2class Presenter_Welcome extends Presenter 3{ 4 public function view() 5 { 6 $this->title = 'トップページ'; 7 } 8}
fuel/app/views/welcome/index.php
php
1<p>成功!!<p/>
トップページはプレゼンターにて表示ができないのでしょうか。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。