前提・実現したいこと
既存でActionhoge_actionクラスがフォルダ別に複数あり、それぞれ1つのActionクラスを継承しています。
今回、Actionhoge_actionクラスを一度に呼び出す機能を作りたく。
Actionhoge_actionクラス内はexecuteのみ。
Actionクラスはコンストラクタ、抽象?メソッドexecuteの2つのメソッドを持ってます。
発生している問題・エラーメッセージ
Actionhoge_actionクラスにnamespaceを付けて動かしたところ、actionをextendしている部分で落ちてしまいます。
エラー内容
Fatal error: Class 'hoge¥Action' not found in C:¥eclipse¥pleiades¥xampp¥htdocs¥libs¥webapp¥simulation¥hoge¥action¥Actionhoge_action.class.php on line 13
クラスの階層として
Actionhoge_actionとActionは別階層にあります。
追加
Actionhoge_action
libs/webapp/simulation/hoge/action/Actionhoge_action.class.php
Action
libs/cores/Action.class.php
Actionhoge_action.class.php
<?php namespace hoge require_once '../../libs/cores/Action.class.php'; class Actionhoge_action extends Action { }あなたの回答
tips
プレビュー