I have a number of shell scripts and they share common functions so I
though it would be smart to have a common base class MyShell that
extends Shell and have all my classes extend MyShell. Well, it turns
out if I do so, initialize() method of subclasses is not getting
called. See line 316 in the Shell Dispatched class ...                          
                if
(strtolower(get_parent_class($shell)) == 'shell') {
                                                        $shell-
>initialize();
                                                        $shell->loadTasks();...

Why is it so? Is it not a good idea to subclass cake Shells, Tasks
etc.?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to