Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller for base.html #78

Open
Andrylomakin opened this issue Jan 25, 2021 · 1 comment
Open

Controller for base.html #78

Andrylomakin opened this issue Jan 25, 2021 · 1 comment

Comments

@Andrylomakin
Copy link

Please tell me I want to create a controller for base.html

namespace App\Controllers;
use \Core\View;
class Base extends \Core\Controller
{
    public function indexAction()
    {
        View::renderTemplate('base.html', ['tmp' => 'test']);
    }
}

This is required in order to display for example a menu

@daveh
Copy link
Owner

daveh commented Jan 25, 2021

I'm afraid I'm not quite sure what you mean - you want to be able to display the base.html view if you go to example.com/base/index ? Please can you give me more details?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants