Dreamweaver PHP OOP Display Issue

Dreamweaver, thou hast failed me agian. As if your multiple, daily, unexplained, unrelated crashes weren’t enough, now you want to tell me you don’t understand object oriented PHP code?

This blew my mind for a while. I had a piece of code that looked like:

$gdi["header"] = username($update->username) . ' u.......

in a php include file. For some reason, Dreamweaver decided to interpret the “->” in my object as a “?>” when in design view. Now, I very rarely use design view, but I’d seen this happen enough that it bugged me. The internet was no help, as those search terms most often relate to something different.

Today it struck me. Even though the closing “?>” tag is optional for PHP files, and is even recommended against by many to alleviate the issue of extra white space, Dreamweaver gets confused. Once I threw a closing tag in my document, Dreamweaver confirmed that there was, in fact, no html in my file.

And now I can sleep easy. (and go back and remove my closing tags. I don’t give a shit what Dreamweaver thinks)

Edit: 12-17-2009 And now I sleep even easier, because I haven’t opened Dreamweaver for over 4 months. I feel like it’s a bigger accomplishment than beating alcoholism. (Not really. No hate mail please)

This entry was posted in development and tagged , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WP Hashcash

Subscribe without commenting