Custom block Access Denied

Permalink
Hi

I'm creating a package, that includes a custom block, in my view.php I want a list of links to be displayed (which I've done) but I want them to link to a popup window that has an ID number in the URL, this ID will then get the further content out.

echo '<a href="javascript:void(0);" onclick="window.open(\'./packages/rnsfeed/blocks/content/rnsfeed/view.php?id='.$row['rns_id'].'\',\'RNS\', \'width=800, height=650, status=no,toolbar=no, menubar=no,scrollbars=yes\')">';


I've hardcoded the links to the popup in to a viewer.php file but when you click the links I get access denied. How would I create this popup widow or link to more information? is creating another page the wrong way?

designportfolio