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

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -