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 -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -