Wiring a solar panel via a solar charge controller
Solar charge controllers are extremely simple to wire. Most only require four connections. Two wires - positive and negative - run from the solar panel to the charge controller, and another two wires run from the charge controller to the battery bank. That's it!

The cable from the charge controller to the battery should be kept short, and needs to have sufficient cross-section to avoid voltage drop. Voltage drop not only wastes power by heating up the cables, but prevents the charge controller sensing the battery voltage correctly.
We always recommend putting a fuse in the positive line between the charge controller and the battery. That way if you make a mistake while wiring, or if a wire subsequently comes loose, you don't run the risk of short circuiting the battery bank.