New to OOP in PHP question about defining classes -
i am, title says, new oop self taught in php. have system running built in procedural php getting bit difficult modify due size. investigating re-write in php oop make easier maintain.
i making lists of classes @ moment. our system administering driving schools have school, instructors, pupils , lessons can see objects , hence classes. question comes fact have 1 school many instructors, pupils , lessons when building program need display lists of these objects. therefore list of of them considered class in own right or when comes programming necessary create instance each instructor, pupil , lesson. or missing fundamental in design of oop system.
as say, working out oop please gentle me.
many colin
thanks comments far. more think more realise, @ least me. list of in system object. imagine each item in list form, now, selection of item result in new script being run create new instance of pupil, instructor etc. along executing methods new instance.
i forget frameworks....each has own nuances. don't bother following mvc correctly (symfony) , many have conflicting tutorials otherwise positive frequent version updates (zend) real basic grasp of oop concepts first, learn specifics of framework of choice when , if choose go route. while i'm certified on zend, work daily in symfony , have used ci quite bit, still prefer rolling own, when working in heavily ajaxed applications.
this worked me quite while back: http://www.killerphp.com/tutorials/object-oriented-php/
good luck. keep open mind , patient. while seems it'll take lot more time, after while becomes second nature , beneficial.
Comments
Post a Comment