Jump to content
Larry Ullman's Book Forums

Recommended Posts

There is also no mention in the book of edit_page.page, so are you mistaken or i am mistaken?

 

No, there is no mention of

edit_page.page

but, like I said

edit_page.php

IS mentioned. From page 311:

<h1><span><?php echo $page->
 getDateAdded(); ?></span><?php
 echo $page->getTitle(); ?></h1>
<?php echo $page->getContent(); ?>
<?php if ($user && $user->
 canEditPage($page)) {
echo '<p><a href="edit_page.
php?id='. $page->getId() .
 '">EDIT</a></p>';
} ?>

and from the scripts:

<!-- # page.html - Script 9.10 -->
<section class="fullWidth">
    <article>
        <h1><span><?php echo $page->getDateAdded(); ?></span><?php echo $page->getTitle(); ?></h1>
        <?php echo $page->getContent(); ?>  
        <?php if ($user && $user->canEditPage($page)) {
        echo '<p><a href="edit_page.php?id=' . $page->getId() . '">EDIT</a></p>';
        } ?>
    </article>
</section>

Last time I checked, it *wasn't* there!

Link to comment
Share on other sites

Sorry for the confusion. Yes, there is a link to "edit_page.php" in the chapter's code, but there's no discussion of the page in the chapter, and so it's not actually missing from the downloads. I believe creating an "edit_page.php" script is actually a "pursue" point at the end of the chapter. I believe a search of this forum will find other people's posts on this script and how they pursued it.

  • Upvote 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...