EE can’t allow <?php virtual (); ?>, because it messes up the parsing. So I thought perhaps this could be done with a plugin.
Here’s what I need…
[1] A single EE template containing a plugin tag, which parses this: <?php virtual (”/cgi-bin/cookie.cgi”); ?>
[2] Then embed that template into all other templates sitewide, so that no matter what page the visitor enters the site, he will get the cookie.
Reading though the plugin docs, I thought I might be able to write this, but no way. As pathetically simple as this is, it’s still way over my head. This is what I came up with so far (laugh all you like)...
<?php
class Aa {
var $cookie = "";
function Aa () {
$this->cookie = virtual ("/cgi-bin/cookie.cgi");
}
}
?>
What am I missing? Would love to know…
