cakephp-sandbox
cakephp-sandbox copied to clipboard
Templating Icon fa6 example is using fa5
https://sandbox.dereuromark.de/sandbox/templating-examples/icon-sets/fa6
has
<link rel="stylesheet" href="/assets/fontawesome-free/css/solid.css">
which goes to fa5. I noticed this because I was doing the exact same error in my project so I checked your sandbox and found the same thing 😄
Where did you see this linked? I think I removed that a while ago It is after all only a showcase of the plugin and possible sets Currently only fa4 should be available via https://sandbox.dereuromark.de/sandbox/templating-examples/icons
If you have a fix on how to pull fa6, maybe you can make a PR here, and we can reactivate that link/action too :)
Lol I'm not sure where I got to that link from. Google somewhere maybe?
I was unable to get a version of sandbox going to test my changes.
AssetCompress couldn't find the correct files and then also didn't have an assets folder in webroot so I ended up with "Cannot find meta data file path /web/cakephp-sandbox/webroot/assets/font-awesome/less/variables.less for Templating\View\Icon\FontAwesome4Icon."
Not sure if I missed a step of grabbing those.
Regardless, essentially https://github.com/dereuromark/cakephp-sandbox/blob/master/plugins/Sandbox/templates/TemplatingExamples/icon_sets.php has it loading solid.css, but what's at solid.css is font-awesome 5.15.4 from https://sandbox.dereuromark.de/assets/fontawesome-free/css/solid.css , not fa6. In my case I just changed the CDN to the fa6 link rather than the fa5 link.
Check setup.sh and build.sh They Show the steps
The assets folder should be Auto created using the setup.sh
Ah. I totally didn't read SETUP.md lol. Ok I'll look later.
@umer936 Did you have a chance to revisit?
I did but kept getting stuck. I tried just running it but I don't have php or composer installed on the host system, just in docker containers. So then I tried https://github.com/dereuromark/sandbox-docker which also relies on php.
So I spun up a devcontainer + docker-compose with php and mysql and ran the setup with just the main project and it mostly succeeded but then I ended up with asset_compress issues likely because I didn't have certain build packages from npm. The webpage shows "could not locate bootstrap.css in css-combined."
Try ddev It usually ships with a lot out of the box
As for bootstrap.css missing: Did you run composer assets etc as per build.sh? That all assets are downloaded before you try building the asset compress file(s)?
I still use devilbox by the way: https://github.com/devilbox-community/devilbox
Nowadays I use ddev, I updated the local docs/README accordingly. Should work out of the box.
https://github.com/dereuromark/cakephp-sandbox/commit/9a2e334f0e90796f5ab1cc433dc721bb71ffb248