I added the removal of those names in my UpgradeShell script with
these patterns:

                $patterns = array(
                        array(
                                'remove var $name = ...;',
                                '/\bvar\s*\$name\s*=\s*(.*);/',
                                ''
                        ),
                        array(
                                'remove public $name = ...;',
                                '/\bpublic\s*\$name\s*=\s*(.*);/',
                                ''
                        ),
                );


On 27 Okt., 01:09, 100rk <[email protected]> wrote:
> Talking about $name property, it is not just case of PagesController
> and CakeErrorController (descendant requires to set either $name or
> $viewPath) - it is used in most of CDC plugins - I know it saves some
> processor ticks, but it also forces developers using classes like
> model Users.User as parent class to overwrite $name property manually
> in all descendants, if some of behaviors etc depends on it.

-- 
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

Reply via email to