====== Nette Framework ====== http://nette.org/\\ http://pla.nette.org/ Stažení a rozbalení např. do **C:\work\PHP\Nette-2.2.8** ===== XAMPP ===== **Homepage:** https://www.apachefriends.org ==== Instalace Windows ==== Instalace např. do **C:/work/PHP/xampp** **XAMPP control panel**\\ {{::xampp-control-panel.png?600|}} ==== Skype port error ==== * Skype: Tools -> Options -> Advanced -> connection * disable the "Use port 80 and 443 for alternatives for incoming connections * close Skype * restart Apache ===== NetBeans ===== Integrace s NetBeans 8.0.2 ([[netbeans|o NetBeans IDE]]). ==== Nový projekt ==== * **File** -> **New Project...** * **Choose Project** * **PHP** -> **PHP application** * **Next >** * **Name and Location** * **Project Name**: Test * **Sources Folder:** C:\work\PHP\xampp\htdocs\Test * **PHP Version:** PHP 5.4 * **Default Encoding:** UTF-8 * **Next >** * **Run Configuration** * **Run As:** Local Web Site (running on local web server) * **Project URL:** http://localhost/Test * **Next >** * **PHP Frameworks** * check **Nette2 PHP Web Framework** * check **Copy Nette Framework source files to the new project?** * click on **Options...** //(blue link)// * **Nette:** C:\work\PHP\Nette-2.2.8\Nette * **Sandbox:** C:\work\PHP\Nette-2.2.8\sandbox * **OK** * **Next >** * **Composer** * **Finish** **NetBeans Nette Options**\\ {{::netbeans-nette-options.png?600|}} ==== Spuštění projektu ==== * Run **F6** otevře webový prohlížeč s URl http://localhost/Test/ * po kliknutí na adresář **www** se zobrazí výchozí Nette HomePage nového projektu **Nette default HomePage**\\ {{::nette-default-homepage.png?600|}}