Welcome Guest, Not a member yet? Register   Sign In
Codeignier 3 blog application: update() post method needs improvement
#2

Initialize the $post_image with the default image.

If the user uploads a new image then assign that new image to $post_image.

This way you are getting rid of an extra image check.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Codeignier 3 blog application: update() post method needs improvement - by InsiteFX - 05-02-2018, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB