3 PHP Template Engine Project Sharing

Three [PHP Template Engine |http://www.phpkode.com/projects/category/php-template-engine/]Project Recommended:
Smarty is a PHP template engine.Smarty is best described in a situation where the application programmer and the template designer play different roles, or in most cases are not the same person.Smarty is primarily promoted as a tool for separation of concerns. More specifically, it facilitates a manageable way to separate application logic and content from its presentation.
RainTPL, now part of Rain Framework, is an open source PHP template engine that compile HTML template in PHP to improve the speed. Divide the works of graphics by the works of programmers by splitting statics code (HTML) from dynamic code (PHP
Dwoo is a PHP template engine. It features fully compatible with Smarty templates and plugins, but is written from scratch for PHP5. Template inheritance, a fresh look at complex template structures. Sub-template declaration within templates to allow recursive templates.
Any one suggest more better php template engine?
Tks!
Best regards!

http://phpsavant.com/
is pretty cool

Similar Messages

  • What is a good template engine?

    I want your suggestions on good template engine. My project is almost done and ready to go to production in few weeks, I want something which is easy to learn yet good enough.
    Following are my specific requirements:
    1) We have like 150 jsps (not too many), but I want a template engine which lets me add a header, footer and other links easily to all these pages to start with.
    2) Later on I want a rule based template engine which changes the layout of page based on rules. For example UI for a role based web site, like Admin sees different tabs on the menu bar than a normal user.
    Thanks for your help

    For what you are suggesting, I'd look at tiles.
    If you were wanting to do something more sophisticated and data drive things, then maybe you would look at Freemarker or Velocity. Not much t choose between these.

  • What if JSP were a template engine?

    What would you think if JSP had been implemented as a template engine? What if it didn't need a compiler? What if it didn't allow scriptlets? What if it wasn't so dependent on the server and JDK implementations? What if it didn't waste disk space? What if it came with standard conditional and iteration tags? What if Java code wasn't required? What if the error messages didn't suck? :-)
    Sun could have done it. Instead they copied Microsoft's bad practices in order to compete.
    What would you think? I've put together an example of how JSP could have been implemented. I've called it Axle and I'm looking to make it a free, open-source project if anyone is interested.
    Check out the following page for more info. Try downloading the 'bookstore' example. Let me know what you think.
    http://www.ibatis.com/axle/axle.html
    Best regards,
    Clinton.

    I believe there are a number of jsp based template
    engines available on jakarta.apache.org as well. Well, yes and no. There are JSP custom tag libraries (Struts) and there are template engines (Velocity). Axle takes the best of both of these worlds. It allows developers to leverage their JSP skills, while working with the benefits of a template engine.
    It will still suck to get a java server working alongside
    a normal http server.Most of the big name web servers already support Java and JSP. iPlanet Web Server 6, Apache (Tomcat, JServ). In addition, you could always buy a completely separate App server like JRun or WebLogic.
    Cheers,
    Clinton

  • Need help with almost completed plugin engine project

    Hi all,
    For a while now I have been working on a plugin engine. After a few iterations, the engine is similar to the Eclipse engine, in that plugins use extension points and extensions to allow contributions. Unlike the eclipse engine I have added the ability for plugins to fire events through the engine and other plugins can add listeners, all through the plugin.xml manifest. Dependencies are mostly handled automatically at plugin load time (when extensions get resolved to extension points, and listeners get resolved to events). For the case where a plugin needs to use classes from another plugin, dependencies are also allowed to be declared. Like the eclipse engine, activation of plugins occurs the first time a class is used within the plugin's classpath, OR a plugin can be activated after it is loaded.
    What I need help with is testing, working on examples to provide with the engine project, and feedback/suggestions before we release the M1 build. I am asking for those that are interested in this type of work to volunteer to help where applicable and possible. I want to provide a solid plugin engine to the java community, one that is easy to use, works well, and is pretty effecient in terms of resource usage and performance.
    Of particular interest to me right at the moment is dealing with multiple versions. As I see it, the engine will be used within an application and as such plugins would be distributed with a specific application version. The plugin version itself is more of a notification as to what version a plugin is, although I imagine it will help when updating at runtime as well.
    Just a few other details of the engine. It handles (or will soon) dynamic load, unload and reload of plugins at runtime. Plugins can be distributed in an archive file format, we call .par (Plugin ARchive), with additional plugin filename extensions configurable at runtime. The plugins can be developed and deployed in an expanded directory format as they are in Eclipse as well, or in the archive format. In the archive format they do not need to be unzipped when deployed, and they can contain embeded jar/zip libraries. The engine handles finding and creating classes directly out of the .par file at runtime.
    Multiple locations to find plugins are configurable before the engine starts, and even after it starts more could be added to allow additional locations to find plugins. URLs are supported, and soon the HTTP protocol will be supported so that plugins can be downloaded and installed at runtime.
    The project can be found at www.sourceforge.net/projects/genpluginengine. If you would like to get involved and help out, please sign up on the dev mail list and send an email to introduce yourself to the rest of the members on the list.
    I'll also add that I am working on a Swing UI Framework built entirely from plugins. It provides a ready-to-launce UI application that developers can simply add their plugins to, extending various extension points of the framework to have menu items, toolbar buttons, status bar access, help and preferences dialog additions, file i/o choosers, tons of open-source components ready to use (or extend to add on to), and like Eclipse, hopefully... draggable window frames that can be dropped on any other frame to form a tabbed frame of windows. Some of this is a ways off, some is getting there now. Presently you can add menu items that do allow plugin activation when first clicked, so plugins can be loaded but not activated until needed. The Preference dialog works but is not completed, and a plugin that adds a plugin control panel to view all loaded plugins, activate them, load/unload/reload, view extension points, extensions, dependencies, etc is partially completed. The point is, to allow a ready to run UI framework in Swing with an easy path for developers to quickly build applications with. If you are interested in this, when you join the mail list and introduce yourself, indicate that you are interested in this as well, as we need help with plugin development for it and would appreciate more help here too.
    Look forward to some replies.

    Might I suggest setting up a project at a known project-site? I've seen your progress and questions posted here from time to time, but one of the drawbacks is that you have to fill each post with the entirity of your vision to explain what you're doing. That's a lot of text to read - and most folks will skip right over it.
    On the other hand, a well-crafted, good-looking project web-site, with appropriate links and docs and vision statements, diagrams, etc. will have more likelyhood of attracting volunteers. java.net and sourceforge.net are likely spots to set up shop. In addition, you get CVS and bug-tracking systems, which can be quite valuable in such a large-scale project where there are lots of pieces.

  • Issue in Dreamweaver PHP pages from the PHP template

    I am learning to develop and publish a web catalog with a shopping cart feature attached. I am using PHP and MySQL as the tools to build this data driven website. However after creating the catalog list within the PHP template and needing the list as the menu within the sidebar of the webpages, the catalog list shows in the PHP template in Dreamweaver. But once I try to create a sub page from the PHP template, the list and all the contents does not show in the preview. After much checks, there is a issue with the sidebar class of the div, the issue is that a message shows that "Any content that does not fit in a fixed-width or -height box causes the box to expand to fit the content rather than letting the content overflow." I have tried to put the overflow:auto or overflow:hidden but to no success. How can get the catalog list to show without manually entering the over 50 categories that is already entered in the MySQL database? The template uses the 2 column fixed, sidebar, header and footer layout.

    It's a little hard to understand your question and its context. Can you please upload this page and give us a link so we can see what you are describing?

  • Using a template engine in a portlet, possible?

    Hi there,
    When developing servlets I've always used webmacro as a template engine,
    separating the code (java) from the layout (html). With Portlets it seems
    that people put their html within the java code.
    Are there any template engine solutions available for portlets, besides
    jsp ofcourse. I'm not really familiar with jsp, and also isn't jsp doing the
    same thing, putting java code within the html?
    I read it was possible to use webmacro without a servlet container, so
    perhaps this is the way to go using it with portlets. But are there also
    any integrated solutions.
    Does anybody have any experience separating their code and layout using a
    template engine? eg webmacro, velocity
    How do other developers do this, do you use jsp, or put your html directly
    into your code?
    kind regards
    ido

    Hi Ido,
    If you can do it in a servlet, then you should be able to do it in the portlet too. You need to specify the servlet for the showpage information in your provider.xml file.
    As long as all the HTMl is getting generated upfront (at the Servlet side) then you should not have any issues.
    Let me know if you have issues doing it this way.
    thanks,
    Harsha

  • Characters in Standard Template in Project not replaced in new project

    Hi.  I have created a coding mask :  XOG..XXX.XXX.XX/XX-XX.000.  With this coding mask I have created a standard wbs template , XOG.XXX.XXX.00/01.  Now when I create a new project copying this template with project definition XOG.GRE.ADD.11/06, only the project definition has its characters replaced with the name of the project.  The WBS' created still carry the characters in the standard template ie XOG.GRE.XXX.00/01.  Is it possible to have the characters of the WBS replaced when creating a new project along side the project definition?

    Hi,
    Your Standard Project Definition is XOG.GRE.ADD.00/01 and bellow which you have created WBS element.
    i.e.   XOG.GRE.ADD.00/01
            XOG.GRE.ADD.00/01-AB
            XOG.GRE.ADD.00/01-AB.1
    Now while copying from std template you have given your new proj definition XOG.GRE.ADD.16/06 and bellow WBS element are getting created so there is no need to change any character before 16/06 because your project definition and 1 level WBS element should be the same.
    Still if you want to change ADD with different characters i.e ABC follow the following procedure while creating the project.
    1.     In CJ20N click on Copy project and enter your required project definition XOG.GRE.ADD.16/06
    2.     Select required project profile
    3.     Enter standard project definition XOG.GRE.ADD.00/01
    4.     Click on WBS Element overview (F8) instead of OK
    5.     Accept the warning messages
    6.     Then Click on Replace and give your required characters to replace with i.e ADD to ABC
    But this will have your project definition as XOG.GRE.ADD.16/06 and your WBS elements starting with XOG.GRE.ABC.16/06
    i.e.   XOG.GRE.ABC.16/06
            XOG.GRE.ABC.16/06--AB
            XOG.GRE.ABC.16/06-AB.1
    So there will be mismatch in project definition and WBS element codes. If your business is accepting it then you can create the same, but logically it is not correct.
    regards,

  • Standard Templates on Project Schedule & GO LIVE SIGN OFF document?

    Hi
    It would be really helpful if someone could provide me a Standard Template for "PROJECT SCHEDULE" and "GO LIVE SIGN OFF document.
    Its very urgent. I would be really appreciate if you could send it over to [email protected]
    Thanks in advance,
    Sandeep

    Hi Chandra,
                 Thanks for the reply. However I would need Generic Functional Design document.
    I know that Functional Specs comes close to Functional Design but Functional Design is an High level document above specs.
    If you could provide that, it would be really helpful.
    Thanks,
    Sandeep

  • I create an enterprise project template in Project Professional but when I go to create a project in PWA the formattting does not carry through to the project

    Hi
    Project Server 2010
    I created an enterprise template in Project Professional and formatted it and set the font to Gill Sans MT, I then pointed the Project type to this project template.
    When I created the new project type in PWA the formatting and font did not carry through to the new project.
    Has anyone seen this behaviour before?
    Kind regards
    M

    Do you find that if you create a project in project professional using a template and then save it the formatting is shown OK? So you only see this problem when you are creating the project from PWA and the plan template is picked up via the Enterprise Project
    Type?

  • Very simple html template engine...

    Hi forum
    I need to create a very simple html templating engine. My requirements are only load a html document into an object (HTMLDocument for example?), search a couple of particular tag or string, treat the text found between these tags like a block, repeating the content all the necessary times, and replacing a special string within the text for another one.
    Here an example:
    <html>
    <title>Foo page</title>
    <body>
    <table>
    <!-- Initial special tag -->
            <tr>
                <td>{String to replace}</td>
            </tr>
    <!-- Final special tag -->
    </table>
    </body>
    </html>If i pass the html example code for the template engine with the following parameters, the result that i want is:
    Number of times to repeat the BLOCK: 3
    Text to replace de special string: Hello world
    <html>
    <title>Foo page</title>
    <body>
    <table>
            <tr>
                <td>Hello world</td>
            </tr>
            <tr>
                <td>Hello world</td>
            </tr>
            <tr>
                <td>Hello world</td>
            </tr>
    </table>
    </body>
    </html>That�s all. I search in google for something but a encountered only javascript based "applications", except the "Rhino" engine, but that is to much for mi needs.
    Well, i hope anyone can help me.... and sorry for may bad english :P...

    Here's the generated code:
    `include(~service="system", ~language="", ~theme="dm", ~name="TemplateLibraryDHTML.html")`
          `SAP_DynproLayerBegin(003,001,028,001)`
          `SAP_Label("%#AUTOTEXT001")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLayerBegin(003,003,020,001)`
          `SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLayerBegin(030,003,005,001)`
          `SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_OLD")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLabelLine(003,003,030)`
          `SAP_DynproLayerBegin(003,004,020,001)`
          `SAP_Label("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLayerBegin(030,004,005,001)`
          `SAP_InputField("YSRMS_CTR_MASS_NEG_AMEND-YYNEG_AMEND_NEW")`
          `SAP_DynproLayerEnd()`
          `SAP_DynproLabelLine(003,004,030)`
          `SAP_DynproLayerBegin(004,006,014,001)`
          `SAP_Button("CTR_NEG_AMEND_REJ")`
          `SAP_DynproLayerEnd()`

  • Velocity Template Engine error

    When I look at the "Velocity Template Engine" tab I see the error:
    unable to Find resource 'VM_global_libaray.vm' in any resource loader.
    Could some one help me?
    Thanks in Advance
    Bill

    This error is nothing to worry about -- it's a harmless message from Velocity, which is used by the TemplateMaker extension. If really would prefer not to see it and aren't using TemplateMaker, you can remove the extension by deleting the file "templatemaker.jar" from your ${jdev.home}/jdev/lib/ext directory.
    Thanks,
    Brian

  • Project sharing in Premiere Pro

    Here is how project sharing should work now that the creative cloud is there.. A user should be able to sync their project to the cloud (much like they sync their keyboard settings) and invite another editor with the same set of media files to share it and sync back when they're done.  If they're missing any media files, they can request you to upload those to the cloud and (can do that from within Preimere) and when it's uploaded they get notified and can dowload it from with Preimiere on their end.  The file will be store in their local drive and they can keep on working away.  Seems like ti wouldn't be that hard to make this and it would rock the house for those of us who work on the same project - especially in situations where you have an assistant who feeds you material as you go.  Please look this.  I think a lot of people would love it.
    Thanks.
    RR

    >Here is how project sharing should work
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform for bug reports or feature requests

  • Pasting text into a PHP Template

    This is bizarre...
    I have a PHP template. I built it in Dreamweaver, added some
    PHP code, and saved it as a PHP file (mytemplate.dwt.php). I use
    this template in Contribute, and it has worked fine. Until today
    when I tried to paste some copy from a Word document. I kept
    getting the error "You cannot perform this action this region of
    the page." Then I tried pasting just one paragraph, and it worked.
    So I kept trying different paragraphs and lines until I traced the
    problem to the work "include". I cannot paste this word into the
    editable region! I even typed the word "include" into Notepad to
    make sure there was no weird Word markup, and tried copying &
    pasting it in -- error. Any other word works fine -- even
    "including".
    I assume that Contribute thinks I'm trying to paste a PHP
    include into the region or something. Is this a bug? I tried
    pasting the word "include" into a non-PHP template and it worked
    okay.
    Alyssa

    I tried the same, with the dwt.php template having the
    following code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Untitled Document</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    </head>
    <body>
    <!-- TemplateBeginEditable name="EditRegion3"
    -->EditRegion3<!-- TemplateEndEditable --><?php
    echo"Hello World"?>
    Simple dwt.php template
    </body>
    </html>
    it worked fine for me.

  • A question for Tokenizer in a search engine project.

    I am doing a search engine project in Java. The project will need two parts: indexer and query Processer. The class I have includes IndexBuilder.java, InvertedIndex.java, Parser.java, Tokenizer.java, StopWordList.java, Lovinstemmer.java.
    Among above class files, I am not quite understand how Tokenizer works. The following is what I am understanding the scenario of index part works. Please check what I talk about how Tokenizer works, it might be wrong.
    I think Parser object will get the input file, then will deal with the words in the file one by one. FOr example, for the first word in the input file, Parser will contact StopWordList.java and Lovinstemmer.java to get rid of unuseful characters, then pass this changed word to Tokenizer, Tokenizer will then do sth to this words, then return a token( here, token is the words) to the Parser, then Parser will put this token into InvertedIndex.
    Am I right? If I misunderstood sth, please let me know. Thanks,
    James

    It's quite possible that what you say is correct, but why are you asking us? Those classes are not part of the standard Java API, but were written (or at least) specified by somebody else. So ask that person.

  • Is there any way to use the bundled PHP compiler without web sharing on?

    Is there any way to use the bundled PHP compiler without Web Sharing on? Is there a way to make sure Web Sharing only allows local access so others on the network cannot access it? Any other easy way to get a PHP compiler on a Mac? I currently run Mac OS X 10.7.4. Any other security issues that might pop up from leaving Web Sharing on? Basically I just want a local PHP compiler so I can do some coding.

    You can use another router as an 'extender' (I know that this will work seemlessly with AirPort Extemes and AirPort Express's - you'll have to check with your router manufacturer to determine what they recommend for range extenders).
    You may also want to take a look at this link - http://www.wi-fiplanet.com/tutorials/7-tips-to-increase-wi-fi-performance.html - it may offer some tips.
    Clinton

Maybe you are looking for