I know this is a super old Discussion but...
I was just extending a Shell and was google-ing to see if anyone had issues
doing it, and thought I would share.
If you want to extend a shell you need to import it first.
So assuming we have created a class called MyShell that extends Shell (like
normal).
We can extend it after we import MyShell.
<?php
App::import('Shell','My');
class MyExtendedShell extends MyShell {
...
}
?>
The only thing to remember is that we don't import MyShell, we import "My"
as a "Shell."
This is for Cake 1.3, so if you are using 2.x I think you use App:uses()
instead of App::import... ??? I haven't tested on 2.x yet.
Happy Coding!
--
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