code: public function init() {
  
          parent::init();
  
  		// Permission
  		$this->crudPermission = NewsletterGlobal::PERM_NEWSLETTER_ADMIN;
  
  		// Config
  		$this->type		= NewsletterGlobal::TYPE_NEWSLETTER;
  		$this->apixBase	= 'core/template';
  
  		// Sidebar
  		$this->sidebar = [ 'parent' => 'sidebar-newsletter', 'child' => 'newsletter-template' ];
  
  		// Return Url
  		$this->returnUrl = Url::previous( 'templates' );
  		$this->returnUrl = isset( $this->returnUrl ) ? $this->returnUrl : Url::toRoute( [ '/newsletter/newsletter/template/all' ], true );
  
  		// Breadcrumbs
  		$this->breadcrumbs = [
  			'base' => [
  				[ 'label' => 'Home', 'url' => Url::toRoute( '/dashboard' ) ]
  			],
  			'all' => [ [ 'label' => 'Newsletter Templates' ] ],
  			'create' => [ [ 'label' => 'Newsletter Templates', 'url' => $this->returnUrl ], [ 'label' => 'Add' ] ],
  			'update' => [ [ 'label' => 'Newsletter Templates', 'url' => $this->returnUrl ], [ 'label' => 'Update' ] ],
  			'delete' => [ [ 'label' => 'Newsletter Templates', 'url' => $this->returnUrl ], [ 'label' => 'Delete' ] ]
  		];
  	}
docs: Constructor and Initialisation ------------------------------