How can I add class with Form->control?

I have tried this:

echo $this->Form->control('username', ['class'=>'form-control']);

But i don’t see any effect of this class. Inspecting html element i do not see any class attribute. How can I add class?

Double check that you are looking in the right place. Add some html text to that template and make sure it loads again.