通常のViewsフォルダに含まれていないincludes.php
というPHPファイルをインクルードしようとしています。ファイルには、この特定のテーマでロードされるJSファイルへのリンクが含まれています。 includes.php
はscripts
フォルダ内にある:私のコントローラで要求されたファイルを読み込めません - CodeIgniter
| assets |
| themes
| theme_name
| css
| img
| scripts
| application
| system
私は常に正常に動作$this->load->helper('url')
を使用していて、ビュー内の私は、次の呼び出ししようとしている:
$includes_url = asset_url() . 'themes/' . $theme . '/scripts/includes.php';
$this->load->file($includes_url);
URLは思わ私が$includes_url
をエコーしたときと同じように正しいパスです。これにもかかわらず
、私はエラーを取得しています:そのファイルパスとファイルが見つからないCodeIgniterのに加えて、他の
An Error Was Encountered
Unable to load the requested file: includes.php
何の問題があるだろうか?明白な何かを逃したことがありますか?
どのような許可がありますか? ps chmod 777 -R/var/www/ – NiLL
はい、それらは744に設定されています。 –
base_url()。assets/themes 'を使用してみてください。$ theme。'/scripts/include.php '? – NiLL