Actual date in Controller

How I can get the actual date (20 November 2020) in a controller.

By reading the manual :slight_smile:

Yes i did it first, but I get “Class ‘App\Controller\FrozenTime’ not found”

You’ve presumably not added the required use at the top of the file. The examples in the manual all assume that you’re familiar with how PHP namespaces work, and skip those lines, in order to keep things succinct.

1 Like