I have an add.ctp file, which will enable the user to add new entries, there is another view.ctp file which will list all the existing entries from the database. How would I include these existing entries within the add view page, So that user should be able to view the existing entries at the bottom of the page when he is making a new entry from add page?
Thanking you
You could extract the view code you want to use in both views into an element.
or load the view underneath through an ajax call when an entry is clicked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With