Jump to content
Larry Ullman's Book Forums

samdamann

Members
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0 Neutral

About samdamann

  • Rank
    Newbie
  1. Hello Larry, I am absolutely enjoying your book so far. It has been very very helpful to my web development skills. I was wondering if you were going to do a topic on deployment. I didn't see it listed in the table of contents so I wasn't sure. Assuming that it is on the agenda, I also assume that it will be discussed later on towards the end of the book. In the meantime, is there another course of action to take if I have to deploy a Yii website now? Another book that you highly recommend or another website or a SME perhaps? Any information you can provide would be very much appreciated. Take care... Sam
  2. Hey Abigail, Identifying the page was one of the ways I was experimenting with but couldn't get it to work. Do you know what that snippet of code would be? Sam
  3. Okay I just created a separate footer and removed the code that Jonathon states above. It works. I was just looking for a way to do this with code without creating a separate special footer...
  4. Hey Abigail, Here is the code out of the book. It lies in the footer.html file. I'm thinking I need to use a different footer so as to hide the sidebar? <?php // Show the user info or the login form: if (isset($_SESSION['user_id'])) { // Show basic user options: // Includes references to some bonus material discussed in Chapter 5! echo '<div class="title"> <h4>Manage Your Account</h4> </div> <ul> <li><a href="renew.php" title="Renew Your Account">Renew Account</a></li> <li><a href="change_password.php" title="Change Your Password">Change Password</a></li> <li><a href="favorites.php" title="View Your Favorite Pages">Favorites</a></li> <li><a href="history.php" title="View Your History">History</a></li> <li><a href="recommendations.php" title="View Your Recommendations">Recommendations</a></li> <li><a href="logout.php" title="Logout">Logout</a></li> </ul> '; // Show admin options, if appropriate: if (isset($_SESSION['user_admin'])) { echo '<div class="title"> <h4>Administration</h4> </div> <ul> <li><a href="add_page.php" title="Add a Page">Add Page</a></li> <li><a href="add_pdf.php" title="Add a PDF">Add PDF</a></li> <li><a href="#" title="Blah">Blah</a></li> </ul> '; } } else { // Show the login form: require ('includes/login_form.inc.php'); } ?>
  5. How can I disable or hide the basic sidebar so I can have more space for a form? Ideas?
×
×
  • Create New...