WordPress.org

Ready to get started?Download WordPress

Forums

PHP: Return, not print content (3 posts)

  1. Laughinglizard
    Member
    Posted 10 years ago #

    One thought is that it makes your template more code intensive and in order to build or customize your template, you would have to know code fairly well. Creating syntactically correct PHP, for the average user (even someone with a little knowledge of code) can be daunting.
    Peace.

  2. antifuse
    Member
    Posted 10 years ago #

    Agreed... the super nice thing about having the functions print stuff directly makes it MUCH easier for templating for the average user (ie having to just do <?php list_cats() ?> is less confusing than having to do <?php print list_cats()?>

  3. Anonymous
    Unregistered
    Posted 10 years ago #

    A method to do it both ways would be nice. The current php-light set of functions but some documented functions for those who want to go further.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.