title: EXTJS / PHP closing window after save
body: <p>I have some code that renders a window from another window.</p>
  
  <p>What im trying to do is close both the windows when the save button is clicked.</p>
  
  <p>Here is the function for the creation of the window</p>
  
  <pre><code>function createNewWindowHandler(){
  
  var basicFormPanel =  Ext.getCmp('updateDialogForm');
  var basicForm = basicFormPanel.getForm();
  
  &lt;?php
  
  $thisJob = ClassRegistry::init('Job');
  
  echo $this-&gt;element(
      'open_window',
      array(
          "id" =&gt; 'win_showForm',
          "width" =&gt; $thisJob-&gt;windowWidth,
          "height" =&gt; $thisJob-&gt;windowHeight,
          "url" =&gt; "'/controller/method'",
          "title" =&gt; "Create new Window",
          "params" =&gt; array(
              'FilterValue' =&gt; 'filterValue',
          )
      )
  );
  ?&gt;
  
  this.up('basicFormPanel').close();
  
  }
  </code></pre>
  
  <p>I have tried to close the panel after its rendered at the bottom, but it doesn't work.</p>
  
  <p>Any help would be greatly appreciated</p>