In this recipe, we will configure the read
and write
adapters to use it in this module. These adapters are used to connect the models with the database.
We will add the adapter configuration in the config.xml
file of the Packt_Helloworld
module. Open this file and get ready to add some configuration.
Follow the next steps to create the read
and write
connections of the Packt_Helloworld
module:
Navigate to the
<global>
tag and add the following configuration to it. This will register theread
adapter.<resources> <helloworld_read> <connection> <use>core_read</use> </connection> </helloworld_read> </resources>
Configure the
write
adapter to add the following in the<resources>
tag of the XML code. Your resources tag will look as follows:<resources> <helloworld_write> <connection> <use>core_write</use...