We are working for update doc for SXIMO 5.1.7

Working with PHP and MySQL on static page

Page static support for php syntac . but you need to edit page file directly via editor . all pages stored at /protected/app/views/page/tempate/allpagesfiles I . Example php syntac on your page content

echo 'Hello im php inside page content ';
II. Example retrieve database rows from page content


$employee = DB::table('employee')--->get();

foreach($employee as $row ) 
  echo $row->FirstName .'<br>';
III. Example PHP and blade combination

<!--?php $employee = DB::table('employee')--->get(); ?>
@foreach($employee as $row)

{{ $row->FirstName }} <br>