Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

too much reusable code for the listings pages

#39

could cause minor mistakes to be hard to track down.

Reported by S. Shehzed · December 7th, 2010 @ 01:08 AM

State: resolved
Milestone: v0.1.0
Assigned to: S. Shehzed S. Shehzed

Activity

  1. S. Shehzed
    S. Shehzed
    • State changed from new to resolved
    • Milestone set to v0.1.0
    • Assigned user set to S. Shehzed
    • Milestone order changed from 20 to 0

    RESOLVED: created a common listings asp page with most of the code. Then each individual content.asp page that gets scraped by the php only contains the page title variable, the cat and id for the db, and then the include file that's needed. This last part is indeed repetitive code, but it's easier than learning asp syntax and dynamics to code stuff in it.

    Finally, there's a content.php page now with whatever unique info is needed on each of the listings page and is called by the routing files just like all other pages.

    December 7th, 2010 @ 01:15 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.