1cookie Posted July 25, 2013 Share Posted July 25, 2013 hi And thanks for the great book. Is it me, or is the edit_page.php file missing from the Chapter 9 scripts? Link to comment Share on other sites More sharing options...
Edward Posted July 26, 2013 Share Posted July 26, 2013 There is no edit_page.php in the download scripts, there is only an add_page.php. There is also no mention in the book of edit_page.page, so are you mistaken or i am mistaken? Link to comment Share on other sites More sharing options...
1cookie Posted July 26, 2013 Author Share Posted July 26, 2013 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 More sharing options...
Larry Posted July 26, 2013 Share Posted July 26, 2013 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. 1 Link to comment Share on other sites More sharing options...
1cookie Posted July 26, 2013 Author Share Posted July 26, 2013 Ah, I see. Gotcha. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts