When you are just figuring out something new, you often find yourself working on a part of the whole that is just not that important, but anyway, there you are.
That has happened to me in my learning curve phase of using EE.
I tried to edit the pi.randomizer.php file, adding a second set of quotations.
Here’s what I added:
function set_two()
{
$quotes = array(
Aude sapere - "Dare to know"
Caveat emptor - "Let the buyer beware"
Cogita ante salis - "Think before you leap"
Facta, non verba - "Deeds, not words."
);
return $quotes[array_rand($quotes)];
}
But when I changed
<title>{exp:randomizer:set_two}</title>
in my index page, I got an error msg which I’ve duly forgot and didn’t note, but it was along the lines of “T_string error in pi.randomizer.php”.
Is there something obvious I’ve screwed up?
Thanks for the help, amigos.
Dan
