I
I
Ilya2014-09-08 13:44:36
Yii
Ilya, 2014-09-08 13:44:36

What are the visual programming tools in Yii?

Hello! I don't sit at a PC too often, but there is time for development. Programming in PHP/Yii. So I asked myself if there are visual programming tools for developing on this framework for smartphones ? If not, are there any wishes and suggestions for this product, because I don’t want to waste time, but such a product (at least for me) is extremely necessary.
PS also noticed that the GII does not generate the MANY_MANY link , is that true, or am I just doing something wrong?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Sergey, 2014-09-08
Protko @Fesor

What are you planning to "visually program"? base structure? Gathered through mysql worbench or similar tools, models can be generated from a data structure. Layout - there are WYSIWYG editors, there are concepts ala to collect pages from blocks. In a word ... too broad a term.
ps programming with a mouse is sad.

P
Push Pull, 2014-09-08
@deadbyelpy

as @Fesor wrote, and I will paraphrase: “coding with a mouse is the way to managers”
I write code even on a smartphone (by the way, I didn’t understand what kind of strange naming “smartAphones”) using editors, I wouldn’t say that it’s super convenient, but I also live can.
Please, if you do something like this, do not post it on the Internet, because. this will increase the number of bydlocoders on php. Yes, and yet it’s hard to imagine how you can make such a tool, because it’s not Java where you can sketch an interface, for php this won’t work, only html + css here.
But there is almost what you need, these are diagram editors. Build a framework - generate code - add everything you need.

P
Pavel Volintsev, 2014-09-28
@copist

For simple applications, to implement a project of the "proof-of-concept" level, a visual data modeling tool for the selected DBMS + model generator and CRUD from the standard gii framework tool is enough.
This bundle allows you to generate Active Record classes, form classes, controller classes, templates.
In principle, this can already be used, unless ... dates, lists, validators, complex business logic. This is configured and added manually. You can spoof the basic Gii generators, as I did for example - my Active Record classes look like this:

class SomeEntity extends ASomeEntity { /* моя логика */ }

abstract class ASomeEntity extends CActiveRecord { /* стандартная логика Active Record */ }

This allows you to regenerate the ASomeEntity class when tables change, but not lose additional logic that I added manually (constants, event handlers, special cached fetches).
You see, even in this case, you need a keyboard.
And for the implementation of a more complex project, everything is generally ambiguous:
* they switch to the role-based rights system (RBAC), which is far from always associated with CRUD
* dialogs become far from typical, they may contain mixed data from several models (user profile = user + his photos + news of friends), access restrictions are imposed on individual fragments
* repetitive interface blocks are designed as widgets, and pages begin to connect these widgets dynamically, depending on the context
* Active Record is gradually getting rid of in favor of ADO + proper caching
* Business logic is moved from controllers and models to additional classes, extensions and modules appear
* Part of the logic is generally implemented in the browser
This can be visually designed, but there is no automatic projection in the form of PHP code succeed.
Although... Maybe UML? But there, too, not everything is simple.
In short, no - this is impossible.
I recommend looking at how generators are arranged in Gii and create your own, for typical classes and templates. I have 6 special code generators in my practice, some of them created up to 10 files in the system. But you still need a keyboard.

D
Dmitry Baibukhtin, 2014-10-06
@PiloTeZ

Without a keyboard, this is not programming.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question