Update layout.php

Make it class extension friendly, especially for method addLayout