You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess I'm confused. It already supports nested groups, and it's tested to run that way. The reason why your v2v2 is showing up is because any output buffer into a group function is not captured (nor do I think it should be captured unless there's a good argument for it) because just listing out a group shouldn't immediately invoke some output.
Is that what you're asking for? Output buffering in a group context?
Flight::group('/api/v1', function () {
echo "v2";
Flight::group('', function () {
Flight::route('GET /data', function () {
Flight::template()->render('call.index');
});
});
});
Flight::group('/api/v2', function () {
echo "v2";
Flight::group('', function () {
Flight::route('GET /data', function () {
Flight::template()->render('call.index');
});
});
});
html:
v2v2
The text was updated successfully, but these errors were encountered: