Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel 4: No hint path defined

Tags:

php

laravel-4

I am trying to do package route and this is my working example:

Route::get('pack', function()
{
    return View::make('MyPackage::test');
});

When I run the website, I got this error: No hint path defined for [MyPackage]. How can I solve it? How can I define the path?

Thank you.

like image 921
user1995781 Avatar asked Dec 01 '25 01:12

user1995781


1 Answers

That is the syntax for showing a view that's not in the main views folder.

Try adding a hint. Look at http://laravel.com/docs/packages#package-configuration under 'Registering A Resource Namespace Manually' and add a hint called 'MyPackage' and then the path to your views folder.

like image 129
user3245295 Avatar answered Dec 03 '25 15:12

user3245295