Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default My Own Tags

    I am currently working on a modular system where I need to implement
    SNIPPETS. I need to be able to write on my php pages something like
    [[mysnippet]], so that the module mysnippet gets inserted on that
    part on the page. (btw, includes are not an option).

    Any thoughts?



    ----------------------------------------
    The post originated from PHP Freaks:
    ----------------------------------------
    [url]http://www.phpfreaks.com[/url]
    [url]http://www.phpfreaks.com/forums[/url]


    mcanada Guest

  2. Similar Questions and Discussions

    1. How to treat template tags as comment tags?
      Hi all, I am using DW MX to edit templates for a FreeMarker application. The template tag fromat is like so: <ul> <#list birds as bird>...
    2. Why does CF use tags?
      In a recent post I asked the question, is CFML valid XML. More precise, I stated it wasn't. It can be, but CFML allows constructs that are invalid...
    3. ASP.NET tags
      hi A further addition . . . My designer is using an Apple Mac to design his pages (as good designers do) - he seems to think that the .NET tags...
    4. Alt tags
      You want the alt attribute to be the same color as the background color of the cell? I'm not sure what you are asking for. The alt attribute is...
    5. Using ParseChildren attribute to load child tags - VS removes tags
      I am building a poll control, nested in the tag I have child tags to setup the poll options. Everything works fine, but when I edit a property in...
  3. #2

    Default Re: My Own Tags

    You can use Output Buffering to manipulate the resulting html before
    it get's shown to the user. Basically you parse through the
    output buffer for any of your tags [TAG] and replace them with the
    snippet.

    [url]http://us3.php.net/manual/en/function.ob-start.php[/url]

    Aaron Eden
    VP Webglimmer Internet Solutions
    [url]http://www.webglimmer.com[/url]
    PHP Hosting solutions starting at just $6/mo

    ----------------------------------------
    The post originated from PHP Freaks:
    ----------------------------------------
    [url]http://www.phpfreaks.com[/url]
    [url]http://www.phpfreaks.com/forums[/url]


    sirmanson Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139