Get gallery pictures into news

Hey guys,

Another day another task Smile
I did a small gallery which stores the uploaded pictures in a folder . I didn't use database yet . I have one Controller and 2 libraries for this.
So now guys i want to input selected images to my newsfunction , so my newsposters can choose one(maybe more but one is enough for the moment) picture of the gallery and put it into their news.
How would you do it? Use a database? Check the URL and put into the news input value? Or what would be the easiest way for me to do that.

best regards



Ok i go another way . I will input a upload function into write News and use another folder to store. Into the news sql table i put the url of the image and display it with the news.
In the view i simply choose the uploaded url as img src . Hope this works Smile

best regards

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.