adding image upload to existing function |
[eluser]DumpProgrammer[/eluser]
I have followed a tutorial to create my first CI blog and I am looking at expanding it, bit by bit to match my needs. I now need to add images to the blog entries and I have done this tutorial . The problem is this tutorial uses controllers instead of the models where I have put my functions so is it possible then to add these same functions to the models folder and pass the imaage files as a variable in controller? In the controller I would then call the model.
[eluser]DumpProgrammer[/eluser]
I managed to add the function into my model and also created a thumbnail in the process making my life easier. Here is the model below Code: function addPost(){ |
Welcome Guest, Not a member yet? Register Sign In |