Showing posts with label php is there ViewModels in CakePhp like .Net MVC?. Show all posts
Showing posts with label php is there ViewModels in CakePhp like .Net MVC?. Show all posts

is there ViewModels in CakePhp like .Net MVC?

Wednesday, November 4, 2015

I'm developing a web application with Cakephp and I have a complex view with complex forms, I come from .NET MVC world and I used something called 'ViewModels' they are very friendly to make extremely custom views well formed and supported for back-end validations. I understand that in cakephp I can use non persistent models using



$useTable = false;


But I would like to make relationship between that non persistent model with another model (persistent or not) to make validation and have custom validations.

is there ViewModels in CakePhp like .Net MVC?

I'm developing a web application with Cakephp and i have a complex view with complex forms, i come from .net mvc world and i used something called 'ViewModels' they are very friendly to make extremely custom views well formed and supported for back end validations. i understand that in cakephp i can use non persistent models using



$useTable = false; 


but i would like to make relationship between that non persistent model with another model (persistent or not) to make validation and have custom validations.



i hope to have explained it well,



Thank you for your answers