PHP Classes

File: demos/002.php

Recommend this page to a friend!
  Packages of Tom Schaefer   d3Extjs   demos/002.php   Download  
File: demos/002.php
Role: Example script
Content type: text/plain
Description: ext.define
Class: d3Extjs
Generate JavaScript code to access ExtJS library
Author: By
Last change:
Date: 13 years ago
Size: 536 bytes
 

Contents

Class file image Download
<?php 

include_once '../d3.classes.inc.php';
include_once '../extjs.class.inc.php';

$showsource = true;

echo ext()->define("GeekFlicks.controller.Movies", array(
    "extend"=> 'Ext.app.Controller',
    "views" => array('Movies'),
    "init" => f3()->add(
                ext("this")->control(array(
                    "'#movies_editor'" => array(
                            "render" => extjs::unescape((string)ext("this")->onEditorRender(extjs::property))                        
                    )
                ))),
    "onEditorRender" => function(){
    console()->log("movies editor was rendered");
}
));