PHP Classes
elePHPant
Icontem

File: demos/001.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  d3Extjs  >  demos/001.php  >  Download  
File: demos/001.php
Role: Example script
Content type: text/plain
Description: first steps
Class: d3Extjs
Generate JavaScript code to access ExtJS library
Author: By
Last change:
Date: 2 years ago
Size: 1,014 bytes
 

Contents

Class file image Download
<?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")
));