f3-fal icon indicating copy to clipboard operation
f3-fal copied to clipboard

could not find definition of 'interface FileSystem'

Open eliargon opened this issue 7 years ago • 2 comments

Hello, I am trying to use your FAL addon to F3 and I am getting this error Fatal error: Interface 'FAL\FileSystem' not found I looked through your code in fal.php and /fal folder and the entire f3 /lib directory and could not find one. I am using the examples in the readme.md file. Can you help please. Thanks. Eli Argon

eliargon avatar Jul 22 '17 07:07 eliargon

Hi. It's this file here: https://github.com/ikkez/f3-fal/blob/master/lib/fal/filesystem.php check if you have it

ikkez avatar Jul 22 '17 13:07 ikkez

I did not have that file. Now that I have it, it works and I was able to figure what you were doing.

FAL is creating one .meta file for each file and storing it in the same folder. That meta file stores the daata in a JSON formatted set of attributes. This is similar to creating sitecar XMP files http://www.photometadata.org/META-Resources-metadata-types-standards-XMP or embeding xmp data in adobe graphic formats (such as .psd) I wish there was an simple embeding standard for all media (graphic,audio,video) that would be easy to retrieve and set. well, I guess we are not there yet.

one little note: In order to make it work. I had to modify the FAL::instance() code: It insisted on parsing 'UI' and looking in $dir[0] but what if the $file is using another path rather than the ones defined in UI? I am using UI for template files and css/js/fonts (mine and vendors) for site data I usually follow anther path from the root. so I made this change in FAL: static public function instance() { $f3 = \Base::instance(); $dir = *array('./ ',0); *// was $f3->split($f3->get('UI')); $localFS = new \FAL\LocalFS($dir[0]); return new self($localFS); } Now the $file param used in $fal->load($file) would be the same one used to display the graphic in without prefixing it with element 0 from the UI's array.

...and a personal one. I have been following and playing with F3 for the last few years and my name is listed in Credits https://fatfreeframework.com/3.6/development#Credits. I am gratfull for such a great package and for the core team dedication. I would appreciate more examples (with source) of actual websites. combining F3 with Angular and other JS/CSS frameworks. Thanks again.

Eli Argon

Eli Argon אלי ארגון USA Phone: 240-390-2554 Israel Phone: 972-77-218-5877 Cell: 972-50-218-5877 Email: [email protected]

On Sat, Jul 22, 2017 at 4:16 PM, Christian Knuth [email protected] wrote:

Hi. It's this file here: https://github.com/ikkez/f3- fal/blob/master/lib/fal/filesystem.php check if you have it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ikkez/f3-fal/issues/1#issuecomment-317183162, or mute the thread https://github.com/notifications/unsubscribe-auth/AF-GywRqv_b-xczKqJSGIslnlZSkKGf0ks5sQfY4gaJpZM4OgGUx .

eliargon avatar Jul 23 '17 13:07 eliargon