Category Archives: HINTS (tehnice)
Migrare la new conta core

Aceasta migrare, in teorie, se face o singura data, la release-ul lui alpha10. Pasii de urmat: Step 1. Se ruleaza…

Editable widget IMPORTANT INFO

print Editable::widget([ ‘name’ => “theName”,//label_chk_{$baseId} ‘value’ => $treeItem[‘name’], ‘size’ => ‘md’, ‘inputType’ => Editable::INPUT_TEXT, ‘format’ => Editable::FORMAT_LINK, ‘editableValueOptions’ => [‘class’…

Create link

Url::To

Get account debit/credit initialisations which were not done

SELECT cac . * FROM `company_account_catalog` cac LEFT JOIN company_balance ON cac.id = company_balance.accountCatalogId WHERE cac.companyId =8 AND company_balance.id IS…

Order By an arbitrary expression

$children = CompanyAccountCatalog::find() ->where(“companyId=$companyId”) ->andWhere($parentId > 0 ?”parentId=$parentId” :”parentId<=0 OR parentId is null”) ->orderBy(new Expression(“apAccountId asc, (apAccountId IS NOT NULL…

View all delete-able company_account_catalog items

SELECT company_account_catalog . * FROM `company_account_catalog` LEFT JOIN company_balance ON company_account_catalog.id = company_balance.accountCatalogId WHERE company_balance.id IS NULL AND company_account_catalog.companyId =8…

Execute a raw SQL

Executam un sql fara return : $rez = Yii::$app->getDb()->createCommand($sql)->execute(); Executam un sql cu return : $rez = Yii::$app->getDb()->createCommand($sql)->queryAll() ;  …

Create new translation category to be used with Yii:t()

http://www.yiiframework.com/forum/index.php/topic/53332-unable-to-locate-message-source-for-category/

Adding popup procedure

adauga butoanele in modal Save Back Add Close redenumeste id-urile adauga in tagul de iframe onload=”handlePopupButtonsVisibility(this, ‘add-stock’, ‘submit-stock’, ‘back-stock’ );”…

$_REQUEST

$_REQUEST contine nu numai $_Post  Conform manualului ( http://php.net/manual/ro/reserved.variables.request.php ) : An associative array that by default contains the contents of $_GET, $_POST și $_COOKIE.

Previous Page · Next Page