cakephp3 disable deprecation warnings by setting

cakephp3 You can disable deprecation warnings by setting Error.errorLevel to E_ALL & ~E_USER_DEPRECATED in your config/app.php


2 سال پیش

cakephp complex query multiple ‘OR’ condition


3 سال پیش

Cakephp using bindmodel to get to deep relations   Now we want to find the Division that a particular Item belongs to. In normal SQL we could do Show…

3 سال پیش

Cakephp Multiple languages   Multiple languages in a CakePHP 2.* application in 5 steps  

3 سال پیش

Using The WordPress Debug Log

define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_DISPLAY’, false ); define( ‘WP_DEBUG_LOG’, true ); if ( ! function_exists(‘write_log’)) { function write_log (…

3 سال پیش

The request has been black-holed – when reloading a page with post data



4 سال پیش

Creating a simple admin center

Creating a simple admin center If you need to create an administrative back-end for your CakePHP site and would like…

5 سال پیش

Count how many queries were executed on a page

$sources = ConnectionManager::sourceList(); $logs = array(); foreach ($sources as $source): $db = ConnectionManager::getDataSource($source); if (!method_exists($db, ‘getLog’)): continue; endif; $logs[$source] =…

6 سال پیش