About 6 results: "php strtolower repo:tquensen/MiniMVC"
Page 1 of 1
Filter Results
Sources
Languages
Filter Results
Try Search On
Generate.php in MiniMVC https://github.com/tquensen/MiniMVC.git | 569 lines | PHP
  1.         mkdir($path . '/view');
  2.         mkdir($path . '/view/'.strtolower($controller));
  3.         $replace = array(
  4.             strtolower(substr($params['module'], 0, 1)) . substr($params['module'], 1),
  5.             strtolower(substr($controller, 0, 1)) . substr($controller, 1),
  6.             strtolower(preg_replace('/(?!^)[[:upper:]]+/', '_$0', $controller)),
  7.         file_put_contents($path . '/view/'.strtolower($controller).'/index.json.php', str_replace($search, $replace, file_get_contents($dummy . '/index.json.php')));
  8.         file_put_contents($path . '/view/'.strtolower($controller).'/widget.html.php', str_replace($search, $replace, file_get_contents($dummy . '/widget.html.php')));
  9. //        file_put_contents($path . '/view/'.strtolower($controller).'/new.html.php', str_replace($search, $replace, file_get_contents($dummy . '/new.html.php')));
  10. //        file_put_contents($path . '/view/'.strtolower($controller).'/new.json.php', str_replace($search, $replace, file_get_contents($dummy . '/new.json.php')));
  11.         file_put_contents($path . '/view/'.strtolower($controller).'/create.html.php', str_replace($search, $replace, file_get_contents($dummy . '/create.html.php')));
  12.         file_put_contents($path . '/view/'.strtolower($controller).'/create.json.php', str_replace($search, $replace, file_get_contents($dummy . '/create.json.php')));
  13.         file_put_contents($path . '/view/'.strtolower($controller).'/show.html.php', str_replace($search, $replace, file_get_contents($dummy . '/show.html.php')));
  14.         file_put_contents($path . '/view/'.strtolower($controller).'/show.json.php', str_replace($search, $replace, file_get_contents($dummy . '/show.json.php')));
  15. //        file_put_contents($path . '/view/'.strtolower($controller).'/edit.html.php', str_replace($search, $replace, file_get_contents($dummy . '/edit.html.php')));





Text.php in MiniMVC https://github.com/tquensen/MiniMVC.git | 77 lines | PHP
  1.         }
  2.         return $lower ? strtolower($output) : $output;

Back to Top