To load a model from a plugin we use (plugin_name}.{model_name}. Same should apply for plugins tasks as well. I was trying to use it that way, probably thats why it was not able to find the class.
I noticed that your asset compressor task doesnt prepent plugin name.
>> public $tasks = array('AssetBuild');
-Ketan.
--
"If you don't risk anything in life, you are risking even more"
-- On Fri, Jul 1, 2011 at 7:22 AM, mark_story <mark.story@gmail.com> wrote:
Plugin tasks should work in 1.3, I've used them in my AssetCompress
plugin.
https://github.com/markstory/asset_compress/blob/master/vendors/shells/asset_compress.php
I know for sure they definitely will work in 2.0 as well.
-Mark
On Jun 29, 2:09 am, _k10_ <ketan.s...@gmail.com> wrote:
> Greetings,
>
> Is it possible to create a task (shell tasks) inside a plugin? I tried
> creating one and executed via a shell. Cakephp doesnt complain about
> anything but the task doesn't get run either.
>
> Any inputs would be highly appreciated.
>
> thanks,
> -K
--
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 For more options, visit this group at http://groups.google.com/group/cake-php
--
"If you don't risk anything in life, you are risking even more"
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 For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment