A
A
Alexfixer2020-02-13 17:13:29
CodeIgniter
Alexfixer, 2020-02-13 17:13:29

How to display the success of adding a comment above the form when adding?

There are 2 methods in the posts controller,
1 view
method 2 comments method
In 1 method, the logic for displaying the publication and comments to it
In the 2 method, adding a comment (I load a new view, where I write that the comment has been added)
I need to display that the comment was added not in new form, but in the same one where I created the comment. And then some kind of derevnya turns out ... How to do it?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question