-
-
My Prog's
-
-
+
+
findAll();
+ $rows = ceil((count($all) / 4));
- foreach (Program::model()->findAll() as $record) {
- echo "
";
- echo nl2br(print_r($record->attributes, true));
- echo "
";
+ for ($i = 0; $i < $rows; $i++) {
+ echo '
';
+
+ foreach (array_slice(Program::model()->findAll(), $i * 4, 4) as $record) {
+ $this->widget('ThumbnailPreview',
+ [
+ 'caption' => $record->attributes['Thumbnailname'],
+ 'description' => $record->attributes['Description'],
+ 'category' => $record->attributes['Kategorie'],
+ 'language' => explode("|", $record->attributes['Language']),
+ 'image' => '/images/programs/thumbnails/' . $record->attributes['Name'] . '.jpg',
+ 'starcount' => $record->attributes['Sterne'],
+ 'downloads' => $record->attributes['Downloads'],
+ 'date' => new DateTime($record->attributes['add_date']),
+ ]);
+ }
+
+ echo '
';
}
-
-
?>
+
diff --git a/www/protected/views/site/debugerror.php b/www/protected/views/site/debugerror.php
new file mode 100644
index 0000000..e6df265
--- /dev/null
+++ b/www/protected/views/site/debugerror.php
@@ -0,0 +1,21 @@
+pageTitle=Yii::app()->name . ' - Error';
+
+ $this->breadcrumbs=array(
+ 'Error (debug)',
+ );
+
+ $content = $message. "\n\n" .
+ 'File:
' . $file. '
:
' . $line . "
\n\n" .
+ "Stacktrace:\n" .
+ '
' . $trace . '
' . "\n";
+
+
+ $this->widget('bootstrap.widgets.TbHeroUnit', array(
+ 'heading' => 'ERROR ' . $type . ': ' . $code,
+ 'content' => nl2br($content),
+ ));
+?>