FUEL CMS Forum
Discussions
Activity
Home
›
Development
›
Modules
Sign In
·
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
3.3K
All Categories
255
FUEL CMS News
112
News & Announcements
101
Share
273
Support
115
Bug Reports
90
Installation
242
Development
68
Feature Requests
117
Modules
CRITICAL SECURITY VERSION UPDATE:
https://github.com/daylightstudio/FUEL-CMS/releases/tag/1.4.13
Tutorial: Creating Simple Modules
Carpintonto
September 2015
edited September 2015
in
Modules
I have encountered one little bust in
http://docs.getfuelcms.com/modules/tutorial
articles_model.php line # 40 is
$fields['content']['img_folder'] = 'images/articles/';
but in
FUEL-CMS-master/fuel/modules/fuel/assets/docs/fuel_modules_example/models/articles_model.php
and the same file available at
http://docs.getfuelcms.com/fuel/modules/fuel/assets/docs/fuel_modules_example.zip
the same line reads
$fields['content']['img_folder'] = 'articles/';
Neither one work to render an image
GET
http://localhost/FUEL-CMS-master/assets/images/images/articles/Big_chill_ver1.jpg
404 (Not Found)
images/images where do I fix that?
Comments
Carpintonto
September 2015
edited September 2015
seems lines 40-42 are correct - uploads to articles and thumbs work.
line # 63 should be
return img_path('articles/'.$this->image);
line # 68 should be
return img_path('articles/thumbs/'.$this->thumb_image);
admin
September 2015
edited 4:45AM
Thanks for the heads up. Those changes have been made.
Sign In
or
Register
to comment.
Forum Software Powered by Vanilla
Comments
line # 63 should be
return img_path('articles/'.$this->image);
line # 68 should be
return img_path('articles/thumbs/'.$this->thumb_image);