Good example of CRUD |
this is how i update in a model , to do with updating a blog article . If logged in then i can access simple menu, to pick blog i want to edit. Current data of blog is output to a form, to do the editing .
Form goes to a controller and gets the info i need. Final bit is where model does the updating allowed field of model Code: class BlogModel extends Model Code: public function amendBlog($blogId,$title,$article,$slug) but to be honest i don't like things being done for me, if i write my own code, at least i know how validating is done and whats involved |
Messages In This Thread |
Good example of CRUD - by joho - 04-18-2023, 03:25 AM
RE: Good example of CRUD - by captain-sensible - 04-18-2023, 04:03 AM
RE: Good example of CRUD - by joho - 04-18-2023, 06:21 AM
|