@@ -76,12 +76,13 @@ There are two ActiveRecord methods for querying data from database:
...
@@ -76,12 +76,13 @@ There are two ActiveRecord methods for querying data from database:
-[[yii\db\ActiveRecord::find()]]
-[[yii\db\ActiveRecord::find()]]
-[[yii\db\ActiveRecord::findBySql()]]
-[[yii\db\ActiveRecord::findBySql()]]
Both methods return an [[yii\db\ActiveQuery]] instance, which extends [[yii\db\Query]], and thus supports the same set of flexible and powerful DB query methods. The following examples demonstrate some of the possibilities.
Both methods return an [[yii\db\ActiveQuery]] instance, which extends [[yii\db\Query]], and thus supports the same set
of flexible and powerful DB query methods. The following examples demonstrate some of the possibilities.
```php
```php
// to retrieve all *active* customers and order them by their ID:
// to retrieve all *active* customers and order them by their ID:
'An internal server error occurred.'=>'Der opstod en intern server fejl.',
'An internal server error occurred.'=>'Der opstod en intern server fejl.',
'Are you sure to delete this item?'=>'Er du sikker på, at du vil slette dette element?',
'Are you sure you want to delete this item?'=>'Er du sikker på, at du vil slette dette element?',
'Delete'=>'Slet',
'Delete'=>'Slet',
'Error'=>'Fejl',
'Error'=>'Fejl',
'File upload failed.'=>'Upload af fil fejlede.',
'File upload failed.'=>'Upload af fil fejlede.',
...
@@ -32,8 +32,8 @@ return array (
...
@@ -32,8 +32,8 @@ return array (
'No help for unknown command "{command}".'=>'Ingen hjælp til ukendt kommando "{command}".',
'No help for unknown command "{command}".'=>'Ingen hjælp til ukendt kommando "{command}".',
'No help for unknown sub-command "{command}".'=>'Ingen hjælp til ukendt under-kommando "{command}".',
'No help for unknown sub-command "{command}".'=>'Ingen hjælp til ukendt under-kommando "{command}".',
'No results found.'=>'Ingen resultater fundet.',
'No results found.'=>'Ingen resultater fundet.',
'Only files with these MIME types are allowed: {mimeTypes}.'=>'Kun filer med følgende MIME-typer er tilladte: {mimeTypes}.',
'Only files with these extensions are allowed: {extensions}.'=>'Kun filer med følgende filtyper er tilladte: {extensions}.',
'Only files with these extensions are allowed: {extensions}.'=>'Kun filer med følgende filtyper er tilladte: {extensions}.',
'Only files with these mimeTypes are allowed: {mimeTypes}.'=>'Kun filer med følgende mime-typer er tilladte: {mimeTypes}.',
'Page not found.'=>'Siden blev ikke fundet.',
'Page not found.'=>'Siden blev ikke fundet.',
'Please fix the following errors:'=>'Ret venligst følgende fejl:',
'Please fix the following errors:'=>'Ret venligst følgende fejl:',
'Please upload a file.'=>'Venligst upload en fil.',
'Please upload a file.'=>'Venligst upload en fil.',
...
@@ -56,6 +56,12 @@ return array (
...
@@ -56,6 +56,12 @@ return array (
'Yes'=>'Ja',
'Yes'=>'Ja',
'You are not allowed to perform this action.'=>'Du har ikke tilladelse til at udføre denne handling.',
'You are not allowed to perform this action.'=>'Du har ikke tilladelse til at udføre denne handling.',
'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.'=>'Du kan højst uploade {limit, number} {limit, plural, one{fil} other{filer}}.',
'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.'=>'Du kan højst uploade {limit, number} {limit, plural, one{fil} other{filer}}.',
'{attribute} "{value}" has already been taken.'=>'{attribute} "{value}" er allerede i brug.',
'{attribute} "{value}" has already been taken.'=>'{attribute} "{value}" er allerede i brug.',
'{attribute} cannot be blank.'=>'{attribute} må ikke være tom.',
'{attribute} cannot be blank.'=>'{attribute} må ikke være tom.',
...
@@ -78,4 +84,22 @@ return array (
...
@@ -78,4 +84,22 @@ return array (
'{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.'=>'{attribute} skal mindst indeholde {min, number} {min, plural, one{tegn} other{tegn}}.',
'{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.'=>'{attribute} skal mindst indeholde {min, number} {min, plural, one{tegn} other{tegn}}.',
'{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.'=>'{attribute} skal højst indeholde {min, number} {min, plural, one{tegn} other{tegn}}.',
'{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.'=>'{attribute} skal højst indeholde {min, number} {min, plural, one{tegn} other{tegn}}.',
'{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.'=>'{attribute} skal indeholde {length, number} {length, plural, one{tegn} other{tegn}}.',
'{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.'=>'{attribute} skal indeholde {length, number} {length, plural, one{tegn} other{tegn}}.',