Hi,
My site structure:
-- app
-- config
-- db
-- lib
-- modules
-- tags
imageviewhelper.php
-- themes
-- tmp
-- uploads
-- vendor
-- bcosca
-- fatfree
index.php
My custom image tag class (imageviewhelper.php) is under app\tags, using the same namespace. I'm using the exact same code as provided in the sample.
Here is the code I'm using to register the tag, on index.php, before calling "run" function.
\Template::instance()->extend('testimage', 'app\tags\ImageViewHelper::render');
And on a view file (html), I'm using this code (I also tried with f3 prefix)
<f3:testimage src="{{ @BASE.'/'.@image.filepath }}" crop="true" width="100" height="100" />
<testimage src="{{ @BASE.'/'.@image.filepath }}" crop="true" width="100" height="100" />
I added a print in the beginning of the 'render' function and I never see the message... so it seems f3 never detects the tag. Is there a way to debug and see the tag list?
Notes:
- The image path is good, it works when using a standard <img> tag
- The namespace is good, f3 finds my class when I'm calling manually app\tags\ImageViewHelper::render("abcd") in the index.php file
- I also tried the different approach used in the fabulog demo site, and I have the same issue.
It might be something stupid....but what?
Thanks