こういうふうに全てのアクションで同じ値を使いたいのですが、アクションを増やすごとに
毎回同じ事を書くの面倒です
このへんはどう改善して書けばよいですか?
class Controller_Welcome extends Controller
{
public function action_index()
{
$data['title'] = "サイトのタイトル";
return Response::forge(View::forge('welcome/index'));
}
public function action_sitemap()
{
$data['title'] = "サイトのタイトル";
return Response::forge(View::forge('welcome/sitemap'));
}
public function action_page()
{
$data['title'] = "サイトのタイトル";
return Response::forge(View::forge('welcome/page'));
}


}