Po 1.
Temat: MVCPo 2.
if(isset($_POST['nazwa'])) {
if(!file_exists($p = 'application/controller/'.ucfirst(strtolower($_POST['nazwa'])).'Controller.php')) {
$tresc = '<?php class '.ucfirst(strtolower($_POST['nazwa'])).'Controller extends Controller {'."\r\n\t".'public function IndexAction() {'."\r\n\t".'//action index'."\r\n\t".'}'."\r\n".'}';
file_put_contents($p, $tresc);
file_put_contents
('application/view/'.strtolower($_POST['nazwa']).'/index.phtml',''); }else echo('Taki controller istnieje'); }
Co to w zasadzie jest?
Po 3. w zasadzie tak, jest to MVC.
Po 4. Czy Ty już nie zakładałeś takiego tematu ostatnio?