<ralphdahlgren.com>


 
Navigation
  • Home
  • Etomite CMS News
  • Code Library
    • Snippets
      • DisplayCode
      • EtoConfig
      • ListMenu
      • PoweredBy
      • RenderTime
  • Tutorials
  • Ralphs Rants
  • Site Map
  • Search Help
  • Login|Logout
 
Credits
 
Valid XHTML 1.1 Valid CSS! Powered By PHP Powered By MySQL
Powered By Etomite
 

Snippets

This section will provide access to Snippet resources. Snippets are PHP scripts, large, small, or in between, which can be called from within other Etomite resources to perform specific tasks. Common uses might include dynamic navigation generation, data abstraction and display, guestbooks, blogs, or photo galleries, to name just a few. Essentially, any stand-alone PHP script can be transformed into a snippet.

So, what makes a snippet differ from a stand-alone PHP script? There are only several differences and once the guidelines are understood it becomes quite easy to write snippets proficiently. Snippets don't require opening and closing PHP tags. Snippets cannot contain direct output functions like echo or print because Etomite utilizes output buffering and these functions attempt to write directly to the output device, bypassing the output buffer. Concatenation of data into a variable, $output being the Etomite standard, and then returning the variables contents to the caller is the preferred method of handling data intended for display.


Snippets in this section:

  • DisplayCode  -  Displays source code from Chunks, Files, Snippets, or Templates
  • EtoConfig  -  Runtime configuration settings
  • ListMenu  -  Feature-rich menu snippet
  • PoweredBy  -  A little link to Etomite
  • RenderTime  -  Displays page render time statistics for PHP, MySQL, and Total


Powered by Etomite 1.1 (Prelude).
MySQL: 0.0058 s, 18 request(s), PHP: 0.0232 s, Total: 0.0290 s, document retrieved from database
2008-11-21 02:59 PM