Example #1
0
 static function switch_to($ver)
 {
     io::file_put_contents(SC_ROOT . '/' . 'sitecake.php', "<?php include 'sitecake/{$ver}/server/admin.php';");
 }
Example #2
0
 static function save_pages($newPages)
 {
     array_walk($newPages, function ($page) {
         io::file_put_contents($page['path'], $page['html']);
     });
 }