X

An Oracle blog about NetBeans for PHP

[UPDATED] Smarty update - custom delimiters

Guest Author

Thanks to Martin Fousek again! 

Project related custom delimiters can be set in Project Properties of every project which contains Smarty template files. Default empty fields mean use global settings for them.

Smarty Delimiters for Project

Global settings is accessible from Tools -> Options -> PHP -> Smarty. By default are standard "{" and "}" used.

Default Smarty Delimiters

As before please report all issues you find in NetBeans IssueZilla > contrib > Smarty, thanks.

UPDATE: If your project is not recognized as a "Smarty" project, as a work around, put a Smarty file (usually any TPL file) directly in your Source Files. We know about this problem and it will be fixed soon. If this work around does not work for you, please, report issue, provide your NetBeans and Smarty pluginn versions and attach a sample project we can investigate. Thanks a lot for your cooperation.

Join the discussion

Comments ( 17 )
  • Pet Thursday, April 15, 2010

    Using PHP build 2010-04-14_15-04-28 and updated all plugins. In project properties there is no Frameworks entry and no Smarty entry.

    Smarty Version: 1.20


  • Martin Fousek Thursday, April 15, 2010

    To Pet: There is needed to be recognized usage of Smarty. For now it's based on searching Smarty template in main dir and subdirs of you project. Already more people announce your troubles, could you please enter an issue for that with attached project structure? Thanks.

    http://netbeans.org/bugzilla/enter_bug.cgi?product=contrib&component=Smarty


  • Pet Thursday, April 15, 2010
  • Pet Thursday, April 15, 2010
  • Martin Fousek Thursday, April 15, 2010

    To Pet: Thanks for entering issues. Actually custom delimiters work (if you don't hit issue 184261), rest of issues are some troubles with hints. I will take a look on that soon.


  • Pet Thursday, April 15, 2010

    I've defined custom delimiters globally, and template is full of those errors. And it makes IDE very slow and unusable. Will add additional info in tracker


  • Tomas Mysik Thursday, April 15, 2010

    To Pet:

    Profile-me snapshots [1] would be useful.

    Thanks,

    Tomas

    [1] http://wiki.netbeans.org/FitnessViaPartnership


  • Pet Thursday, April 15, 2010

    @Tomas

    Sorry, our firm policy doesn't allow send any firm related data outside


  • Tomas Mysik Thursday, April 15, 2010

    To Pet:

    And where do you see that any private data would be send to us? The Profile-me button creates snapshot of threads currently running in NetBeans - can be easily verified, just open the created snapshot in NetBeans itself (Profile > Load Snapshot...).

    Tomas


  • Mario Bittencourt Thursday, April 15, 2010

    How can I enable the smarty function? I have yesterday's build.


  • Tomas Mysik Friday, April 16, 2010

    To Mario Bittencourt:

    I updated the blog post.


  • Kris Friday, April 16, 2010

    Cant install smarty

    INFO [org.netbeans.modules.autoupdate.services.InstallSupportImpl]: Timeout waiting for loading module org.netbeans.modules.php.smarty/1.20

    INFO [org.netbeans.modules.autoupdate.ui.wizards.InstallStep]: timeout of loading PHP Smarty Framework[org.netbeans.modules.php.smarty/1.20]

    org.netbeans.api.autoupdate.OperationException: timeout of loading PHP Smarty Framework[org.netbeans.modules.php.smarty/1.20]

    at org.netbeans.modules.autoupdate.services.InstallSupportImpl$3.call(InstallSupportImpl.java:435)

    at org.netbeans.modules.autoupdate.services.InstallSupportImpl$3.call(InstallSupportImpl.java:302)

    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

    at java.util.concurrent.FutureTask.run(FutureTask.java:138)

    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

    [catch] at java.lang.Thread.run(Thread.java:619)


  • guest Friday, April 16, 2010

    @Tomas Mysik

    I've uploaded dump and sample project see #184263


  • Martin Fousek Monday, April 19, 2010

    To Kris: Please could you try it again with clean userdir? Or better solution would be just raise an issue for that in http://netbeans.org/bugzilla/enter_bug.cgi?product=contrib&component=Smarty and we can discuss it there. Thanks a lot.


  • Kris Monday, April 19, 2010

    I've tried again and again, and finally it worked


  • Sabyasachi Ruj Tuesday, May 11, 2010

    How can I put the "Smarty Template" directly in the context menu under "New"?

    Currently I have to:

    right click -> new -> other -> Smarty Template.

    It would be nice if I can:

    right click -> new -> Smarty Template.

    Like the "PHP File", "SQL File", etc. comes directly.


  • Martin Fousek Tuesday, March 8, 2011

    @Sabyasachi Ruj: Please enter an enhancement for that, I will try to take a look on that.

    http://netbeans.org/bugzilla/enter_bug.cgi?product=contrib&component=Smarty&cf_bug_type=ENHANCEMENT


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.