Yii Framework Forum: Phpextjs - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Phpextjs Integration between yii and extjs Rate Topic: -----

#1 User is offline   Sani Iman Pribadi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 09-May 12

Posted 02 March 2014 - 11:09 AM

What is PHPExtJS?
We build one of great web application framework that full integrated between both of Server and Client Side framework together. To support this particular Web application, the frameworks are built using Yii PHP Framework to provide service for the client requests. Additionally, this web application also contain of latest ExtJS framework to provide high performance application interfaces such as native apps.

About
Starting from a simple idea to build our web platforms like desktop applications with support for PHP as a server side language that provides authentication and data services .

From these ideas , we started doing a lot of exploration on the web framework. After doing various kinds of tests , we finally decided to build an attractive web desktop uses javascript framework , the ExtJS Javascript Framework .

As the main engine display the desktop web , ExtJS provide powerful features that have higher levels of stability compared to other frameworks . We measure the degree of stability based on their compatibility that can run on almost all modern browsers .
PHP as a provider of data and authentication service is our choice . There are several ways in which to communicate with PHP ExtJS . Among them are


  • Ajax – sends requests to a server on the same domain
  • JSONP – uses JSON – P to send requests to a server on a different domain
  • Rest – uses RESTful HTTP methods ( GET / PUT / POST / DELETE ) to communicate with the server
  • Direct – Ext.direct.Manager uses to send requests
In this case , PHPExtJS using RESTful HTTP methods as a way of communicating with PHP ExtJS .

Not satisfied with all that , we also combine it with a PHP framework . Yii PHP framework is our choice .

With all the powerful features that are owned by Yii PHP framework , we believe that this platform is able to be implemented on a large-scale enterprise systems .

Features.


PHPExtJS has a feature that can be used by developers to efficiently build web applications while maintaining an attractive appearance to the user. Complete combination between ExtJS and Yii generates the following features

Main features :

  • MVC Application Architecture

    Posted ImageMVC Application Architecture

  • RESTful web service (GET/PUT/POST/DELETE)

    Posted ImageRESTful Web Service

  • ExtJS CRUD Code Generator

    Posted ImageExtJS CRUD code generator

  • Cross-site Request Forgery Prevention by default

    Posted ImageCSRF Attack Prevention

In addition to the three main features of the above, we also include additional features that are often required in building a web application that is ready for enterprise needs. Additional Features :

  • User session login with RBAC architecture
  • Unlimited of Dynamic Tree Menu settting
We include sample data that can be used for further exploration.

Demo


PHPExtJS has two versions, a standard version and a desktop version. The standard version is a standard version of extjs have, while the desktop version is a modified version of the standard version so it runs like a desktop application in OS.

Here is a link demo of both versions :

  • Demo of standart version click here




    Posted ImagePHPExtJS Standart Version

  • Demo of desktop version click here




    Posted ImagePHPExtJS Desktop Vesion

So that you can try the demo smoothly, choose the standard version if your internet connection is slow. Because, the desktop version requires a stable internet connection.

You can perform CRUD (create, read, update, delete) on a sample of data, unless the data admin user. You may login with
username: admin
password: 123456.


For more info, please visit our project page
0

#2 User is offline   adteulade 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 21-March 14

Posted 21 March 2014 - 10:52 AM

Hey i'm trying to use your exetension and your example works fine. I juste unzip the folder my webroot directory create the database example, restart apache and all works fine.

But when i try to use the ext CRUD Generator for my own model Page i can't find how to use it.
I've already create my table Page and then generate my Page.php model file and then generate extjs CRUD functions.

I've tried to add it to the /phpextjs/app/Application.js file
within the Controllers declaration part :

...
    controllers:[ 
        'UserController',
        'PageController',
        'LoginController'
    ],...


Then I can't access my app cause I've got a HTTP 404 request from :
localhost/phpextjs/app/model/PageController.js?_dc=1395416421091

And I don't understand why is it searching the PageController.js into the models folder.

Thanks in advance for your advice.
0

#3 User is offline   Sani Iman Pribadi 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 09-May 12

Posted 26 March 2014 - 01:44 AM

View Postadteulade, on 21 March 2014 - 10:52 AM, said:

Hey i'm trying to use your exetension and your example works fine. I juste unzip the folder my webroot directory create the database example, restart apache and all works fine.

But when i try to use the ext CRUD Generator for my own model Page i can't find how to use it.
I've already create my table Page and then generate my Page.php model file and then generate extjs CRUD functions.

I've tried to add it to the /phpextjs/app/Application.js file
within the Controllers declaration part :

...
    controllers:[ 
        'UserController',
        'PageController',
        'LoginController'
    ],...


Then I can't access my app cause I've got a HTTP 404 request from :
localhost/phpextjs/app/model/PageController.js?_dc=1395416421091

And I don't understand why is it searching the PageController.js into the models folder.

Thanks in advance for your advice.


Please, check your require files name. Every class define in ExtJS have to be same with your path directory. Example :

Ext.define('PHPExtJS.store.User', {
    extend: 'Ext.data.Store',
    model: 'PHPExtJS.model.User',
    autoLoad: false,
    remoteFilter: true,
    autoSync: true,
    proxy: {
   }
...


Look at every your model, store, or controller files name. Your mvc define depend on your file path name..
...
model: 'PHPExtJS.model.User',
...


your model define that User files have to be like this define :

Ext.define('PHPExtJS.model.User', {
});




0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users