CakePHP Tips & Tricks
A place to post all your tips and tricks for CakePHP
Moderators: admin, trevor
A place to post all your tips and tricks for CakePHP
Moderators: admin, trevor
![]() ![]() |
| Topics | Post Date | Replies | Views | Last Post |
||
| SQL output from a shell - If you are using shells and want to output SQL for debugging, simply do this:
In your shell or other accessible file, create this function:
public function
sqlDump($dbCon
fig = &
;#039;default�
39;, $exit 
;= true) {
&n
bsp;
ConnectionManag
er::getDataSource($d
bConfig)->sho
wLog();
if
($exit){
 
; &
nbsp; &nb
sp;exit;
 
; }
}
Next, in ... Posted by: admin |
Dec 25, 2011 at 4:21 PM | 0 | 70 | No New Posts | ||
| Forums » PHP » CakePHP Tips & Tricks |
|
||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||











