Superfluous code?

3 posts by 2 authors in: Forums > CMS Builder
Last Post: May 7, 2010   (RSS)

Re: [roddruce] Superfluous code?

By Jason - May 7, 2010

Hi,

Most of what you have is necessary. Lines that begin have /* or // are comments. They are not executed code, but are used to tell a developer what a block of code is for. You could remove them if you wanted, but it won't affect how your page loads.

This section:
if (!$aboutRecord) {

header("HTTP/1.0 404 Not Found");

print "Record not found!";

exit;

}


Tell's the server what to do if there is no record found.

The rest of the code you've posted is code CMS Builder uses to link to it's viewer library, and retrieve your records from the database.

Besides the comments, there really isn't anything extra here.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] Superfluous code?

By roddruce - May 7, 2010

Thank you Jason, this does help me build a picture and understanding of CMS Builder so I can do more in the future for my clients.

Rod