Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: Problems publishing (Read 2300 times) previous topic - next topic

Problems publishing

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




Re: Problems publishing

Reply #2
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\languages
C:\xampp-5.6.30\htdocs\test1\libs
C:\xampp-5.6.30\htdocs\test1\logs
C:\xampp-5.6.30\htdocs\test1\system
C:\xampp-5.6.30\htdocs\test1\uploads
C:\xampp-5.6.30\htdocs\test1\vendor
C:\xampp-5.6.30\htdocs\test1\.htaccess
C:\xampp-5.6.30\htdocs\test1\composer.json
C:\xampp-5.6.30\htdocs\test1\composer.lock
C:\xampp-5.6.30\htdocs\test1\config.php
C:\xampp-5.6.30\htdocs\test1\index.php
C:\xampp-5.6.30\htdocs\test1\app
C:\xampp-5.6.30\htdocs\test1\assets
C:\xampp-5.6.30\htdocs\test1\helpers

but no the specifically project files like (in my case):

http://localhost/test1/products





Re: Problems publishing

Reply #3
php and mysql version?

Re: Problems publishing

Reply #4
PHP : v5.6.30
MySQL : 10.1.21-MariaDB



 


Re: Problems publishing

Reply #7
@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. 

Re: Problems publishing

Reply #8
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.


Re: Problems publishing

Reply #9
@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.