Thanks, nate & gwoo!! It works!
By the way, please replace my Model with the next correction to run the
example code. I made a mistake.
<?php
class Test extends AppModel
{
var $name = 'Test';
var $useTable = false;
function myfunction($i) {
switch($i)
{
case 1:
$result[0] = 'lemon';
$result[1] = 'banana';
$result[2] = 'apple';
break;
case 2:
$result[0] = 'lion';
$result[1] = 'tiger';
$result[2] = 'monkey';
break;
case 3:
$result[0] = 'red';
$result[1] = 'blue';
$result[2] = 'green';
break;
}
return $result;
}
}
?>
On 1 2 , 7 59 , "gwoo" <[EMAIL PROTECTED]> wrote:
am() is a basic Cake function.
Download the CakeSheethttp://cakephp.org/cakesheet.pdf
or
Get a life sized poster of the CakeSheethttp://www.cafepress.com/cakefoundation
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---