Using php mvc Architecture Development, we currently package data into an array in contoller and pass it to the view, but it feels a bit unreliable to rely solely on 'verbal constraint. I don't know how you operate it? Using php mvc Architecture Development, we currently package data into an array in contoller and pass it to the view, but it feels a bit unreliable to rely solely on 'verbal constraint. I don't know how you operate it?
Reply content:
Using php mvc Architecture Development, we currently package data into an array in contoller and pass it to the view, but it feels a bit unreliable to rely solely on 'verbal constraint. I don't know how you operate it?
No matter how it is divided, the final implementation is still mixed encoding.
Phpcms's more egg direct array extract
My current processing method is to split the data passed in the view into different interfaces and call the corresponding method in the view to obtain data. In this way, the 'verbal constraint 'problem is solved, but the coupling is more serious. If a change occurs, it is enough. I don't know if there are any good solutions.