I would like to setup a Drupal with PostgreSQL for writeonly and readonly databases. I have gone through lots of article but something is missing from my side on implementation. I have following configuration in the settings.php file. Do I need any other changes any where else? Mainly would like to implement two database 1) write only (DB1) - All the write queries such as insert, update, delete etc and 2) readonly (DB2) - all the select queries. Will this implementation help me to achieve if DB1 goes down still all the traffic goes to DB2 (ReadOnly)?
Hi, I created a form and in the buildForm I define some fields. One of them is a table field ('#type' => 'table')
After choosing the field and pressing the button, I execute some code that updates the table field by adding rows and updating the fields.
At the end I would like to display the result obtained by displaying the table field. But I didn't understand how to do it.
If I put the code in the buidForm everything is fine but I can't choose the date
Is there a system?