pageTitle=Yii::app()->name; $this->breadcrumbs= [ 'Index' ]; $this->selectedNav = 'index'; ?>
getLayoutFile('main'); ?>
db; $command=$connection->createCommand("SELECT * FROM programme"); $command->execute(); // a non-query SQL statement execution // or execute an SQL query and fetch the result set $reader=$command->query(); // each $row is an array representing a row of data $dbgtxt = ""; foreach($reader as $row) { $dbgtxt = $dbgtxt . print_r($row, true); } echo TbHtml::textArea('dbgtxt', $dbgtxt, array('rows' => 5)); ?>
Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui.
Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.