This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

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

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

Thanks you! it work for me

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

Keios said:

Add it to navigation

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

1-5 of 5

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.