phamvuduycuong15027
phamvuduycuong15027

How can I create a custom html page in Backend, just html no Model, and Database?

Keios
Keios

Create controller with php artisan create:controller name.plugin MyController

Remove

public $implement = [
        'Backend.Behaviors.FormController',
        'Backend.Behaviors.ListController'
    ];

Add it to navigation, change controllername/index.htm per your liking. You can remove controller's yaml config files and other unrequired files at this stage (update.htm etc)

Last updated

phamvuduycuong15027
phamvuduycuong15027

Thanks you! it work for me

jurito
jurito

i tried this but removing the $implement array results in a 404 page for the controller, while of course leaving it returns a page with Class 'Xxx\Pluginname\Models\Uhm' not found :\

I'm not sure what did i do wrong?

EDIT: got it, i missed the index() function. thanks a lot!

Last updated

Albert51343
Albert51343

Keios said:

Add it to navigation

Ok. How? Can this simply be done from the controller?

1-5 of 5