Calling Model's method is against the CakePHP conventions. Model methods should be called in controller function and then result should be set as vari
Read MoreAlthough this is the not CakePHP way to call controller's method from within the view file, but if no other way then its possible to call controller's
Read MoreYou can sort array at the time of fetching data by using order in Model find function, but in case due to any reason if you could not get the array i
Read More