Admin/Controller.php
public function validate_screen() {
		$screen = get_current_screen();
		if ( $screen->id === $this->screen_name ) {
			// Load the Page resources
			add_action( 'admin_print_scripts', array( &$this, 'load_scripts' ) );
			add_action( 'admin_print_styles', array( &$this, 'load_styles' ) );

			// WordPress Contextual Help
			add_filter( 'contextual_help', array( &$this, 'contextual_help' ) );	
			// Load the Model File
			require_once( WPBP_DIR . '/app/models/admin/' . $this->page_id . '.php' );
			// Load the View File
			require_once( WPBP_DIR . '/app/views/admin/' . $this->page_id . '.php' );

			// Initialize the model
			$this->model = new $this->model();

			// Initialize the view
			$this->view = new $this->view( $this->model->get_data() );
			
			$this->view->controller = $this;

			// Process GET requests
			$this->process_get();

			// Process POST requests
			$this->process_post();

			$this->init();
		}
	}
public function validate_screen() {
		$screen = get_current_screen();
		if ( $screen->id === $this->screen_name ) {
			// Load the Page resources
			add_action( 'admin_print_scripts', array( &$this, 'load_scripts' ) );
			add_action( 'admin_print_styles', array( &$this, 'load_styles' ) );

			// WordPress Contextual Help
			add_filter( 'contextual_help', array( &$this, 'contextual_help' ) );	
			// Load the Model File
			require_once( WPBP_DIR . '/app/models/admin/' . $this->page_id . '.php' );
			// Load the View File
			require_once( WPBP_DIR . '/app/views/admin/' . $this->page_id . '.php' );

			// Initialize the model
			$this->model = new $this->model();

			// Initialize the view
			$this->view = new $this->view( $this->model->get_data() );
			
			$this->view->controller = $this;

			// Process GET requests
			$this->process_get();

			// Process POST requests
			$this->process_post();

			$this->init();
		}
	}
public function validate_screen ( ) { $ screen = get_current_screen ( ) ; if ( $ screen -> id === $ this -> screen_name ) { // Load the Page resources add_action ( 'admin_print_scripts' , array ( & $ this , 'load_scripts' ) ) ; add_action ( 'admin_print_styles' , array ( & $ this , 'load_styles' ) ) ; // WordPress Contextual Help add_filter ( 'contextual_help' , array ( & $ this , 'contextual_help' ) ) ; // Load the Model File require_once ( WPBP_DIR . '/app/models/admin/' . $ this -> page_id . '.php' ) ; // Load the View File require_once ( WPBP_DIR . '/app/views/admin/' . $ this -> page_id . '.php' ) ; // Initialize the model $ this -> model = new $ this -> model ( ) ; // Initialize the view $ this -> view = new $ this -> view ( $ this -> model -> get_data ( ) ) ; $ this -> view -> controller = $ this ; // Process GET requests $ this -> process_get ( ) ; // Process POST requests $ this -> process_post ( ) ; $ this -> init ( ) ; } }
Verify that we are on the correct screen

@return void
Verify that we are on the correct screen