I moved from my localhost to my web host to test out the application, and everything works as expected but when i tried to use a model that i generated via oil, it throws that error, saying the class doesn't exist, when it does.
The code i am using:
use \Model\Search;
class Controller_Search extends Controller_Template { public function action_search() { if ($_POST['Search']) { $name['communities'] = Search::query()->where('zip', '=', $_POST['Search'])->get(); $name['count'] = count($name['communities']); $this->template->title = 'Search » Search'; $name['canShow'] = true; $this->template->content = View::forge('search/search', $name);
You're not coming from a Windows platform and going to a linux platform? If so, have you paid attention to the file naming conventions (all filenames MUST be lower case)?