The City Attorney shall advise all officers and employees of the city relating to the duties of their respective offices, or employment and in all legal matters pertaining to the business of the city, giving when requested, his or her opinion in writing in relation thereto.
(Rev. Code 1954 § 1132)