hi i have a class albums and another is media
what i want is
-
that when ever an item of album is deleted it should first check that if there is a media item for it or not and warn the user.
-
if media items are found then delete those media items on confirmation of user(all of them at once)
currently i have done is, when an album delete action is called it searches for media items for that album
but i cant figure out how to show user a message from that actionDelete in controller and how to delete the media items from here??
can anyone tell me how to do this in yii?