Interview Questions

How to display the schema of the model?

CakePHP Interview Questions and Answers


(Continued from previous question...)

How to display the schema of the model?

If you want to disply the schema of particular model then you just need to add the following single line of code.For example we have “Posts” Controller. pr($this->Post->schema());

Other Interview Questions