lonnieezell / Bonfire

Jumpstart your CodeIgniter web applications with a modular, HMVC-ready, backend.
http://cibonfire.com
1.39k stars 524 forks source link

View not Found Error Message #238

Closed jones139 closed 13 years ago

jones139 commented 13 years ago

If a view php file does not exist, bonfire displays a general "Unable to locate the file:" error message. I spent quite a while trying to work out what was going on - I thought it was failing to find a controller file - it would have been much more helpful to say "unable to locate the view file:". It looks like this is a generic message from the 'find()' function, so this may need to be modified to take an optional parameter for the custom error message?

ghost commented 13 years ago

I believe this is in the MX/Modules.php file.

This is a third-party library which we should not edit because it makes it more difficult to upgrade.

You could raise it as an issue with the owner though. https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/overview

I am going to close this

Thanks

jones139 commented 13 years ago

Ok - I have created a pull request for the changes to the modular-extensions bitbucket site - will see if the maintainers accept it - it works on my local copy of bonfire.

jones139 commented 13 years ago

There is now an updated version of find() in https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc.
I have tried it in my local version of bonfire and it deals with this issue, could we upgrade to the latest version?

Thanks

Graham.

ghost commented 13 years ago

Fair play Graham

We will get it in as soon as.

Thanks