Yii by its self is a peaty good in many ways but always something that would cool to have.
I have few ideas that developers might consider implementing in future.I don’t claim my ideas are what shoud be done, its just thoughts for all who interested in development of yii.
First thing in mind that came to me when working with yii that its MVC are darn fast in all meanings, when it works nor on develop stage.Most of time in fact 80-90% im perseanaly spending on combining visual design and all logic, MVC shure helps View concept are nice, but when i got complicated layout’s from designer its nightmare to create views from it. What i have in mind is some kind of tool, call it Vii (visual ii or, View ii or Vi i,) like Gii for CRUD and stuff or even part of Gii, that have several function
[list=1]
[*] Import new design or skin (if you create some design by some rules so it can be used by yii natively)
[*] Let you create basic layout change (generates new /view/layeout/main and other columns, rows so on.
[*] Edit ,elements,columns, place, size,colors,etc in layout.
[/list]
next thing for 2.0
its more development thing.
create configurations for application
[list=1]
[*] development/debugging/testing
[*] Benchmarking/Optimizing
[*] Production
[/list]
each stage have special configurations in app.
Development stage
when application in this stage, there is information about elements in balloons where leading what, who belongs where and who influenced on this object and of course all traces and stuff.
Debugging, trace of changes of particular variables or objects.
Testing, just results of all tests on some separate view where is errors what parts of code is not covered, etc…
project managementbasic application task management or assignment for parallel development when you can see potential cross of code, or just list of @todo’s tags from code.
Benchmarking/Optimizing
This part is all about bottlenecks, what part of application code is most slow, or memory eating segment
some advices there would be nice to.
Production
On this stage it can be aromatically published or created public version even compiled with PHC.
Next major thing i that about is some kind of work-cloud i cant figure out how to call it but idea is that
when you start application its launching its create a some kind of state that describe all application elements and there states.And all you have to do as developer define smaller actions that modify state of application.
in another words, if there variable $a that defined in some controler you can write
function IncA() {
$curent_value_of_A= $this->getControlerByName(‘Message’)->a;
$this->getControlerByName(‘Message’)->a = $curent_value_of_A +1;
}
and if user on web site click several times on a button that have call this IncA, then $a would incremented in click count amount.
another example
2 buttons on page,
when press on one, this function is called
FirstButonClick($sender){
$this->button2->visible=false;
or $this->button2->hide();
}
guess what happen next.
with ajax its possible even without reloading,
next thing its possible to modification elements of application that not visible at all or don’t exists yet.
Thank you, any questions or comments are welcome.
(admins Is it time to create forum part for Yii 2.0 descution?)