powered by UserVoice

Feature Requests Forum

Log in or Sign up |

11 votes

Shorter method names in templates

Add very shorrt shrotcuts for often used smarty methods. E.g a modifier called "t" instead of "oxmultilangassign" or "c" as an alias for oxcontent. This makes writing templates much more convinient

  1. Comments
  1. 3 1-465d33f61082e937_normal

    @Tibor: @Martin is right, I was talking about smarty functions and only about a few (3 or 4) I know that short names are hard to read but in case of "oxmultilang" it would be ok to use "t" I think.....

  2. Default-avatar

    I guess he meant Smarty-Functions/-Inserts/-Modifiers, not view-/core-objects and there methods.

  3. Yui_bitconstructor

    Using short words ins contraproductive. You save a few seconds in writing the code will be thankfull if there are longer function names then "c" "f" and "z".

    e.g. $b->z("ab")->f($x);

    Proper variables are $oProduct, $sProductName (hints the type and describes the content)

Log in to leave a comment

powered by UserVoice