The city attorney shall receive a salary which shall be fixed by ordinance. The city attorney shall attend all cases wherein the city is a party, in all courts; he or she shall draft all ordinances, contracts, agreements, etc.; he or she shall attend all meetings of the council, and shall be under the immediate control of the governing body.
K.S.A. 13-516