gleez / cms

GleezCMS - A Light, Simple, Flexible Content Management System
www.gleezcms.org
206 stars 83 forks source link

How can I override gleez class? #736

Closed Adam-Rollo closed 10 years ago

Adam-Rollo commented 10 years ago

Several month ago, overriding class(such as URL) is easy. Creating a class named URL that extend kohana_URL is ok. How can I override class now? copy entire URL class and put it in my new modules??

sergeyklay commented 10 years ago

Yes, now in Gleez 1.x this is best way. But you can commit your changes! Your changes may be in core classes in order to use them in the future.

Currently Gleez positioned as a CMS (like WordPress). You can just pick up and use it. Almost without programming. If you need an exotic functional - you write module. In the future, this situation will be simple. Gleez 2.x will be provide namespaces and some useful way for overriding core classes.

Thank you for using Gleez

Adam-Rollo commented 10 years ago

namespace plus autoloading is amazing. thx~