Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Clean ugly HTML

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 250
    Comment on it

    CakePHP do help us a lot with its own 'Form' and 'HTML' helpers but it often outputs some very ugly and hard to read HTML.

    This little trick will make it a lot cleaner.

    Create a file named app_helper.php in your app's root directory.

    Next add this function to it:

    function output($string) {
      return parent::output($string . '\n');
    }
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: