| 
<?php 
 include_once '../d3.classes.inc.php';
 include_once '../extjs.class.inc.php';
 
 
 $showsource = true;
 
 
 #$ext = ext()->panel->Header();
 
 #echo $ext;
 
 /*
 $ext = ext()->layout->container->Auto();
 echo $ext;
 echo "\n";
 
 
 echo ext()->id("asd");
 echo "\n";
 
 echo ext()->onReady(f3()
 ->add(ext()
 ->Component(array(
 "renderTo"=> document::unescape(document()->body(extjs4::property)),
 "html"=>"DOM ready!"
 ))->createNew()
 ));
 echo "\n";
 */
 echo ext()->create(
 ext()->Window(extjs::property)->escaping(),
 array(
 "width" => 800,
 "height" => 600
 )
 );
 
 echo "\n";
 echo ext()->application(o3(array(
 "name" => "MyApp",
 "launch" => f3()->add(
 ext()->create(
 ext()->container->Viewport()->escaping(),
 array(
 "items" => array("html" => "My App")
 )
 )
 )
 )));
 
 
 echo "\n";
 echo ext()->define("MyApp.controller.posts", array(
 "extend" => "Ext.App.Controller",
 "views" => array("posts.List", "posts.Edit")
 ));
 
 |