A
A
Almik Oh! Give me a guitar2014-11-04 13:45:52
ExtJS/Sencha
Almik Oh! Give me a guitar, 2014-11-04 13:45:52

How to properly link yii with extjs application?

Hello !
My task at the moment is to create applications on yii + extjs. I would like to create an extjs application first with a normal mvc structure so that it can be injected into yii. I tried so to speak but something many files are not loaded. The question for those who are in the subject: how to do this whole thing correctly? Where to copy extjs itself? Where to store mvc application on extjs? How can I upload it to the relevant pages? In general, everyone is interested.
If you have come across this, I will be glad to hear your answers.
Sincerely ,
Almik

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
Elizaveta Borisova, 2014-11-04
@Elizaveta

I have never been a fan of php frameworks, but none of them interferes with writing cool client applications.
You cannot transfer a statics on the client?
Where to upload, how to configure - of course, through templates, if you need different files on different pages.
And so you can give the statistics without YII

M
m0zart89, 2014-11-06
@m0zart89

Did a small project for educational purposes two years ago. A backend is built on Yii (authorization, authentication, CRUD for orders, clients, etc. with relationships), all communication between the browser and the server via JSON, two views: (views/LoginForm.php) for a guest with a login form and for a logged in one ( views/index.php) , where, based on the role and rights, certain tabs are sent to the display (I did it in a stupid and clumsy way, for example, if(user->can('admin')) echo "Ext.define('AdminPanel ',...);" and so on through the code, i.e. at the output, a display was built for the user on the fly.

A
Almik Oh! Give me a guitar, 2014-11-22
@almyk

The solution turned out to be very simple:
1) placed the extjs mvc application in the js folder, which is on the same level as protected
2) added appFolder in the app.js application file: '../js/app' your path may be different
3) connected

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question