Although I don't know of any docs for extending pake tasks, here are
a few tips to get you started:
1. In your project's data directory, create a "tasks" directory.
Then, create a file with a name like "myPakeTaskName.php", that
follows the name structure myPake*.php.
This file should contain a description, task name, and code for the
task. Here is an example to get you started. Put it in myapp/data/
tasks/myPakeTaskTest.php.
<?php
pake_desc('testing pake tasks');
pake_task('test-task', 'project_exists');
function run_test_task($task, $args)
{
print_r($task);
print_r($args);
}
?>
Then in your project directory, type:
./symfony test-task
Hope this helps!
-Scott
---------------------
Scott Meves
Stereo :: Interactive & Design
http://www.stereointeractive.com
http://blog.stereodevelopment.com
On Jul 1, 2007, at 10:18 PM, Eno wrote:
>
> On Jun 28, 3:43 am, "Tristan Rivoallan" <[EMAIL PROTECTED]>
> wrote:
>
>> it's in no way extendable but it's fairly easy write your own tasks.
>
> Any pointers for docs and examples? (The pake project has overwhelming
> documentation ..... NOT ;-)
>
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---