Tutorial: Creating Simple Modules

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

  • 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);
  • edited 4:45AM
    Thanks for the heads up. Those changes have been made.
Sign In or Register to comment.