Problems publishing June 08, 2020, 05:19:43 PM Hi 2 All; I am new to PHPRad and I'am using the trial version, I am trying to publish a tiny app; Only one table "products" with an Id and description field but when I try to publish it, the "publisher" doesn't create the tables's pages, in the menu there is a link to Products but if I click it, the app gives an "Object not found" page; also looking in the htdocs folders there is no a products directory.I'am using Windows 7, 64bits, 16gb ram, XAMPP 5.6. (local server)The database and table I create in PHPRad is there in MariaDB. (using PHPMyAdmin)When I create a project; In the Server Radio buttom, if I choose "PHP Internal server" it creates all the pages but using "Web Server (Apache)", it doesn't .Any idea which is the problem?Thx in Adv.Carlos Quote Selected
Re: Problems publishing Reply #1 – June 09, 2020, 03:15:08 PM @Carlopiza please confirm that your publish directory is set to publish the project to your xampp htdocs folder. Quote Selected
Re: Problems publishing Reply #2 – June 09, 2020, 05:58:00 PM Yeps, In 01.System Info - Project Directory is "C:\xampp-5.6.30\htdocs\test1\"Publish creates the standart PHPRad system files:C:\xampp-5.6.30\htdocs\test1\languagesC:\xampp-5.6.30\htdocs\test1\libsC:\xampp-5.6.30\htdocs\test1\logsC:\xampp-5.6.30\htdocs\test1\systemC:\xampp-5.6.30\htdocs\test1\uploadsC:\xampp-5.6.30\htdocs\test1\vendorC:\xampp-5.6.30\htdocs\test1\.htaccessC:\xampp-5.6.30\htdocs\test1\composer.jsonC:\xampp-5.6.30\htdocs\test1\composer.lockC:\xampp-5.6.30\htdocs\test1\config.phpC:\xampp-5.6.30\htdocs\test1\index.phpC:\xampp-5.6.30\htdocs\test1\appC:\xampp-5.6.30\htdocs\test1\assetsC:\xampp-5.6.30\htdocs\test1\helpersbut no the specifically project files like (in my case):http://localhost/test1/products Quote Selected
Re: Problems publishing Reply #4 – June 09, 2020, 09:57:56 PM PHP : v5.6.30MySQL : 10.1.21-MariaDB Quote Selected
Re: Problems publishing Reply #5 – June 12, 2020, 02:20:17 PM @Carlopiza please check that you can see the file ProductsController.php in C:\xampp-5.6.30\htdocs\test1\app\controllers. Quote Selected
Re: Problems publishing Reply #6 – June 13, 2020, 01:34:39 AM Quote from: willvin – June 12, 2020, 02:20:17 PM@Carlopiza please check that you can see the file ProductsController.php in C:\xampp-5.6.30\htdocs\test1\app\controllers.Yeps, it's there. Quote Selected
Re: Problems publishing Reply #7 – June 13, 2020, 09:16:48 AM @Carlopiza please make sure the following functions exist in that file.Code: [Select]function index() {} function edit() {} function view() {} function listedit() {} function delete() {}If they do exist, please publish your project to a different folder. Quote Selected
Re: Problems publishing Reply #8 – June 13, 2020, 09:38:28 PM Yeps, the functions are there (full of code of course); Publish to a different carpet (\test2), but the same problem, it doesn't create the products folder; Later will install to Win10, maybe is a Win7 problem. Quote Selected
Re: Problems publishing Reply #9 – June 15, 2020, 01:01:28 PM @Carlopiza please note that phprad uses MVC framework and not procedural, so do not expect a products folder in the root folder. If you see the Controller file I ask you earlier and this C:\xampp-5.6.30\htdocs\test1\app\views\products folder exists with at least one file, then it should work. If you need better support please provide a full screenshot of the error page, thanks. Quote Selected