Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In fact, I have been going through similar way of creating ExtJS code from PHP, or specifically, from CakePHP.</p> <p>In my company, I am responsible on creating application framework which will speed up application production, so I actually come out with our first generation framework, which is similar to your idea: Generating codes through PHP.</p> <p>Then quickly I realize that is pretty heavy for the server, and slow. Each request you get you need to regenerate the codes, which is impractical. Shortly after I come out with the second generation, with caching ability. Generated JS codes get cached into static files, and being included dynamically when needed. Reason for caching is because most of the time the JS codes are static, changes are the content, store etc.</p> <p>So this method works for couple of months, until I finally realize this is not the correct way, for example,</p> <ul> <li><code>TreePanel</code> cannot be generated through this way, especially with dynamic menu.</li> <li>ACL cannot interfering the cached code</li> <li>Can't have dynamic columns in the grid</li> <li>My framework is designed badly that I need to cache the codes before seeing the result - slow development.</li> <li>Hard to maintain, hard to call. Simple things like adding one config or remove one config can be tedious. Just like it's so tedious to use <code>FormHelper</code> to complete simple stuff.</li> </ul> <p>So then I completely rewrite my code base, redesign everything, until I come up with this current beautiful ExtJS + CakePHP framework, which:</p> <ul> <li>Generic GridPanel/Store/View/Pagination/Editor components was created, and with just some simple configuration, you get a complete REST grid that hook up to one of Cake's controller. In Cake you include the one of the specially designed component, and just with few lines of code you created a full working REST grid.</li> <li>Specially designed Viewport which provides similar look and feel, with specially designed TreePanel (Menu), TabPanel (Contents)</li> <li>And many other generic, useful components being packed together, like Wizard, FieldEditor, UserImport... etc.</li> <li>And because they are all extendable ExtJS components, you can use it, extend it, fully customize it to whatever you want.</li> </ul> <p>Sorry if this doesn't sound right to you, but personally I have gone through this, and I am really unhappy with the result of generating codes from PHP. You basically end up complicates the whole process, or slow thing down.</p> <p>Sorry for my bad english by the way. And thanks for reading this.</p> <p>And I cannot share my code nor open source it because it's part of company's property.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload