Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Error in FuelPHP v1.1 RC1: Fuel\Core\FuelException [ Error ]: The requested view could not be found
  • Please forgive me for bad English I 've error "The requested view could not be found" after update on FuelPHP v1.1 RC1(COREPATH/classes/view.php @ line 389).
    This is a bug or something I do not take into config the new version? My code line: $view_login = View::forge('admin/block_auth_form'); This error disappears if I do so: $view_login = View::forge('/admin/block_auth_form');
    But there are other errors - "failed to open stream: No such file or directory" Thanks. Are there any plans in the future, other modifications to the core?
    Special thanks for a great framework.
  • All methods in Fuel that need to find files use Finder::search(). If you start the filename with a slash, the finder will assume it's a fully qualified path, and will not look for it at all. This will trigger your "no such file" error. If not, it will make sure the search directory (in this case 'views') has a trailing slash, it appends the specified filename (giving 'views/admin/block_auth_form', and iterates through all defined paths to find the file. I've compared the new finder code with the old method used, but the logic is identical. So the issue must be elsewhere. Where is this view stored? What is it's exact name and path? Where do you load it from?
  • It's my bug. Views is worked. Thanks.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion