Wouldn't array be still used? For instance more than one objects are passed, should the objects be stored in an array? What would happen to the auto conversion to json? Array is easier to convert to json rite? On Jul 10, 2012 1:19 AM, "Jamescowhen" <[email protected]> wrote:
> I would think moving to a more object oriented model will result in better > readable code and IDE auto completion will be more useful. > > On Sunday, July 8, 2012 7:12:32 PM UTC-7, Greg wrote: >> >> For mine, being able to deal with objects in the view would greatly >> improve the readability of data (the whole $user['User']['email'] etc looks >> incredibly difficult to read to me, compared with $user->email which would >> be much nicer). >> >> I've always felt dealing with arrays is a bit of a 'hack'. I understand >> the choice, but I think the idea to move towards a more object oriented >> approach is more than hype, and long overdue. >> >> >> On Sat, Jul 7, 2012 at 7:35 PM, tigr <[email protected]> wrote: >> >>> No, that is not "nice". The strength of the CakePHP design is in being >>> very straightforward when it comes to working with the data. I have seen >>> other frameworks and I think that object-oriented ways are not suitable for >>> working with data. Well, of course, you can, but would you want to, given a >>> choice? My answer was "no" and that is why I am using Cake. I am worried >>> that the object-oriented hype will get the best of you and we will lose a >>> perfectly sensible data processing framework to the object-oriented glory. >>> For practical reasons, it would be great to leave the model layer >>> principles as they are. >>> >>> -- >>> Our newest site for the community: CakePHP Video Tutorials >>> http://tv.cakephp.org >>> Check out the new CakePHP Questions site http://ask.cakephp.org and >>> help others with their CakePHP related questions. >>> >>> >>> To unsubscribe from this group, send email to >>> cake-php+unsubscribe@**googlegroups.com<cake-php%[email protected]>For >>> more options, visit this group at >>> http://groups.google.com/**group/cake-php<http://groups.google.com/group/cake-php> >>> >> >> -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > To unsubscribe from this group, send email to > [email protected] For more options, visit this group > at http://groups.google.com/group/cake-php > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
