October 2009
Beginner
408 pages
7h 27m
English
Your application can generate administrative links at this point; next you need to load those links into index.php. You place your administrative links only on the full display of an entry, so you must place the call to load information from adminLinks() within a conditional statement that fires only if $fulldisp == 1.
In index.php, at line 69, insert the code shown in bold:
<?php
// If the full display flag is set, show the entry
if($fulldisp==1)
{
// Get the URL if one wasn't passed
$url = (isset($url)) ? $url : $e['url'];
// Build the admin links
$admin = adminLinks($page, $url);
?>
Now you have an array with your edit and delete links as individual array elements. This means you can insert the links in ...
Read now
Unlock full access