Yii Framework Forum: Question - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Question Rate Topic: -----

#1 User is offline   jbomhold3 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 20
  • Joined: 06-May 10

Posted 14 May 2010 - 12:15 AM

Why does YII remove the trailing ?> on files. Not a issue just wondering.
0

#2 User is offline   Spyros 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 461
  • Joined: 14-April 09
  • Location:Athens - Greece

Posted 14 May 2010 - 02:40 AM

I think this is used to avoid having trailing white space that may cause a "headers not sent because there's already an output etc"
0

#3 User is offline   fastcrash 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 245
  • Joined: 10-March 10
  • Location:South Jakarta

Posted 14 May 2010 - 03:53 AM

i think it's common nowdays to remove closed php tag. i see it in many development company.
but beware when u include txt files in the last line. (if i m not wrong?)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users