Hi,
I am very new to FuelPHP, but have been using CodeIgniter for a while now.
I am adapting the brilliant StationWagon (FuelPHP app) and so far it's working really well.
I have adapted it (with some help) to allow multiple images to be uploaded to the server alongside each article.
However, I am thinking it would make more sense if I had 2 Tables: 1) Articles and 2) ArticleImages. I would use a Foreign Key to associate each Image with a specific Article.
So when publishing an article it would add the article data to 'Articles' table and move each image to a new row in 'ArticleImages'.
So ultimately my 'ArticleImages' table could be: ID | ImageURL | ArticleID
Here is my current portion of code: http://pastebin.com/eAzwAX2m.
Can someone explain how I modify my 'action_add' code to achieve this?
Many thanks for any help.
It looks like you're new here. If you want to get involved, click one of these buttons!