Hi gobblez,

I've updated the wiki after testing the code - sorry for syntax errors,
I don't usually publish code without testing, but at 1 in the morning I
decided that my quick effort to address this point should wait for
another day.

_getControllerName is now defined.

"$something = depth==1?'x':'y';" is just a shorthand if statement,
meaning it's the same as:
if ($depth==1)
{
$something = 'x';
}
else
{
$something = 'y';
}

In the case of where you were reading, it was in-line and not
particularly readable. I've removed the shorthand Ifs from almost
everywhere.

If your question was more about logic rather than technically what it
is doing - the code as pasted will make anything which is in the top
level "<h2>" and everything else not. It's a test just to insert the
heading declaration in principle.

I hope it's now more understandable, and helps you with your
development.

Cheers,

AD7six


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to