Skip to content
This repository was archived by the owner on Apr 16, 2020. It is now read-only.
This repository was archived by the owner on Apr 16, 2020. It is now read-only.

View helpers and Controller plugin helpers in closures #7

@Ocramius

Description

@Ocramius

The ZeffMu\App class should expose methods to allow accessing view and controller helpers in closures. Ideally something like following I suppose:

$app = \ZeffMu\App::init();
$app
    ->route('/', function() use ($app) {
        $form = new Form(/* yaddayadda */);
        return $app->viewHelper()->form($someForm);
    })
    ->route('/login', function() use ($app) {
        return $app->controllerHelper()->redirect('/');
    })

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions