I downloaded and manually installed the writeAndReadFileModules extension in both extensions folders as follows.:
extensions
www (Web Root Folder)
-extensions (inside the Web Root Folder)
In Wappler, it would not recognize the extensions folder inside the Web Root Folder in order for the extension to appear. It would not execute on the frontend unless the extensions folder is inside the Web Root Folder. Thus, I have 2 identical extensions folders. Shouldn't Wappler use the extensions folder in the Web Root Folder in both instances? It appears that Wappler is not factoring in the Web Root Folder location.
Possible bug in PHP model?
PS: I tried to install it using Project Settings > Extensions > New Extension, but got lost so I went with manual installation.
Sorry, this is server side for me, not tried any app connect
Basically i have to put the extensions folder in the ftp root to get the HJSON recognised but have to duplicate the extensions folder in www to have the associated php function run.
In tried the php own server first which i have seen on the forum creates a www folder.
After the issues i though i would resolve this by switching to own server and using Wamp.
It still created www sub folder inside the local project root which frankly suprised me
Is this not your normal experience with wappler? It creates www subfolder then remaps the site root to the www subfolder
We have moved all new php projects to use a www subfolder for webroot, already for some time now. Just as we already do for NodeJS and mobile projects.
Existing project can also be migrated by just entering www as webroot folder in the project options, the files will be move there then.
There are many advantages to have the web files in separate subfolder, so we can but project related build artifacts and extension files in the main folder that are not needed on the live website.
i get that, my confusion is why he cant install third pary extensions?
If his project root and web root are the same, i would not expect this bug to effect him?
Also @george, can you confirm PHP extensions can be sent to the npm repository and the method is the same as node? I didn't realise that was an option.
All of my projects were created pre Wappler 6 and did not create the www folder.
Are you saying I can just enter www in the setting and my files will be moved there? How does that affect my targets? Do I manukau have to create a www folder on them to? Or does the www folder get ignored on publish?
Yes Wappler php extensions canine also fully installed with npm. That is why we require that you have a www folder as a webroot so that is what is uploaded to your live website and not any files outside of it so we can fully have there own node_modules as well other build tools
So i just add "serverModel: ['node', 'PHP']," to the head of the HJSON, put the .js and .php files in the same place and npm will install for both platforms.