Skip to content

DRY up your views #11

@jpuck

Description

@jpuck

Don't Repeat Yourself.

You've got the same HTML all over the place. This breaks down annoyingly fast when you need to make changes. Your header, footer, and all that boilerplate needs to be in their own respective single files, then use include, include_once, require, or require_once on all your pages to inject those same views where you need it.

You'll also find the magic constant __DIR__ useful for including files in relative directory structures.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions