SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: {} Thingies

  1. #1
    SitePoint Wizard rctneil's Avatar
    Join Date
    Jun 2005
    Posts
    1,890
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question {} Thingies

    Hey,
    How do you make {} Thingies so you can define what for example {THIS} is and then use {THIS} throughout your program and php will replace {THIS} with whatever you defined it as somehwere else?

    How do you make these?

    Thanks

    Neil

  2. #2
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do a Google search for PHP templating - you will find plenty of tutorials and examples
    Kayzio - We don't hesitate, we accelerate.

  3. #3
    SitePoint Evangelist
    Join Date
    Aug 2005
    Posts
    453
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you talking about constants?

    define('EYE_COLOR', 'Blue');
    define('TIREPRICE', 1200);
    Computers and Fire ...
    In the hands of the inexperienced or uneducated,
    the results can be disastrous.
    While the professional can tame, master even conquer.

  4. #4
    SitePoint Zealot
    Join Date
    Mar 2007
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think he is reffering to templating similar to Smarty.
    Kayzio - We don't hesitate, we accelerate.


Bookmarks

Posting Permissions

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