Smarty is a template engine for PHP. More specifically, it facilitates a manageable way to separate application logic and content from its presentation. It 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 plugin is only available in CodeLobster IDE Professional.

CodeLobster IDE integrates with Smarty so you can use it from inside the IDE. Smarty support includes the following features:

Smarty installation

With CodeLobster IDE you can download and install Smarty. Smarty plugin has the wizard that helps you to get and install the latest version.

In order to create Smarty project:

  1. Choose File | New | Project... main menu item. Select Smarty framework item in the opened dialog.


    Select Project | Smarty | Create project main menu item

  2. Define project location, name and project URL for debugging.


    If you enable Create project in a new folder option CodeLobster IDE creates a subfolder with the project name.

  3. Enable Download Smarty option to download the framework automatically.

  4. CodeLobster IDE can add the Smarty path to php.ini file, just enable corresponding option.

  5. Specify following parameters using corresponding Browse button:

    • Path to php.ini - path to the folder containing php.ini file.

    • Smarty directory - path to the folder for Smarty framework.

    • Smarty folders root - path to the directory for Smarty folders for your project.

  6. Define your Project name.

  7. Click the Finish button to create the Smarty project.

Smarty syntax highlighting

CodeLobster IDE offers support for syntax highlighting for the Smarty templating language

Smarty IntelliSense

CodeLobster IDE provides IntelliSense for Smarty, which helps you write code more quickly and efficiently. IntelliSense saves you time by putting what you’re most likely to use at the top of your completion list. The suggestion list of the automatic completion appears as soon as you start typing. Pressing Tab or Enter will insert the selected item. You can trigger IntelliSense in the Editor window by pressing Ctrl + Space or using Edit | IntelliSense | Autocomplete main menu item.

IntelliSense suggestion box includes Smarty variables

and functions

Smarty context and dynamic help

The Dynamic Help window allows opening help topics automatically for an element when the pointer is placed on. Smarty plugin uses the for a quick search for relevant information.

To get help topics using Dynamic Help:

  • Place the pointer on the target element and press the F1 button.

  • Select Help | Context Help main menu item.

  • Click the topic item in the Dynamic Help window.


    To show Dynamic Help window select View | Panels | Dynamic Help main menu item.