Login   Register  
PHP Classes
elePHPant
Icontem

File: demos/002.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/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: 1 year 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");
}
));