php - Is it possible to create custom functions when use sqlite in cakephp -


i need create custom function silimar mysql. must in sqlite run tdd.

i have not found how in documentation or in code structure.

reference: http://php.net/manual/en/pdo.sqlitecreatefunction.php

thanks.

you can pdo connection

$pdo = $this->somemodel->getdatasource()->getconnection(); 

and use reference.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Socket.connect doesn't throw exception in Android -

SPSS keyboard combination alters encoding -