How To Modify Csqldataprovider Reference ?

Hi all…

i copy cdbcommandbuilder.php and rename to sphinxcdbcommandbuilder.php

usualy all of function on csqldataprovider.php will call cdbcommandbuilder.php class.

my question :

how to change sqldataprovider class reference. ?

i want to change all of reference function on csqldataprovider.php move to new sphinxcdbcommandbuilder.php class


Rather than copying the whole code from a class, why not extend the csqldataprovider.php class and then, in your new class, write your own custom functions?

PHP documentation on extending a class

StackOverflow - where to place your custom classes files in Yii