Check if prefix is admin in bake template


I was wondering how to check if the prefix is ‘admin’ in bake template, then extend different layout.

So I want the baked template to have $this->extend(’/Common/admin’); when the prefix is admin in console command to bake the template.

How to do it?

1 Like