Migration to version 4.1


Field values conventions

Now language phrase key for field is based as follows: field_{$field.item}_{$}
if you want to print a value of an item from dropdown, combo, etc. = it should be printed as follows {lang key="field_{$item.item_name}_{$item.field_name}+{$item.condition}"}
Note + sign.

Admin actions

Now you can use existing phrase key as button key. it will be used as a title for action.

<action name="news_add" url="news/add/" icon="plus" pages="news,news_edit">Add News</action>

should be
<action name="add_news" url="news/add/" icon="plus" pages="news,news_edit"><![CDATA[]]></action>

As we already have phrase with add_news key.



'printImage' call has been replaced by 'ia_image' function. All the arguments remain the same except the following:

— 'imgfile' parameter should be replaced to just 'file'

— 'field' parameter introduced - standard array with field settings, should be passed where possible. Information how to display the image will be brought from these settings.

- 'type' param can be passed. Default is 'thumbnail', large or original can be also passed


iaCore::factoryPackage() and iaCore::factoryPlugin()

No more naming classes in plural, all class names should be written in singular. 'Factory' methods perform replacement the next char of underscore symbol in arguments to capital letter, for example if class name is 'iaCartItem', then argument should be passed as 'cart_item' and file name should be 'ia.admin.cart_item.php'.


The new 'iaField::uploadImage()' should be used by plugins instead.


Should be replaced by 'iaField::deleteUploadedFile()'.

Updated by Vasily Bezruchkin over 4 years ago · 5 revisions