title: How to create a Layout for a custom view in SugarCRM
body: <p>I have created a fully custom view, I want this view to only show certain fields in an editview format so I can update records. But this view is to be different from the normal editview. How do I add a custom metadata file to this view that will allow me to define the form and fields that I need? The view is tied to a custom button and currently just shows "works". This is working so far just need to understand how to define the layout.</p>
  
  <p>the controller:</p>
  
  <pre><code>if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
  
  class CustomCasesController extends SugarController {
  
  function action_resolve_Case() {
      $this-&gt;view = 'resolve_case';
  }
  
  }
  </code></pre>
  
  <p>The view :</p>
  
  <pre><code>if (!defined('sugarEntry') || !sugarEntry)
  die('Not A Valid Entry Point');
  
  require_once('include/MVC/View/SugarView.php');
  
  
  class CasesViewresolve_case extends SugarView {
  
  public function CasesViewresolve_case() {
      parent::SugarView();
  }
  
  function preDisplay() {
  
      parent::preDisplay();
  
  }
  
  public function display() {
  
     // include ('test.php');
  
      echo "works";
  }
  }
  </code></pre>