cakephp complex query multiple ‘OR’ condition

 

3 ماه پیش

Cakephp using bindmodel to get to deep relations

http://mark-story.com/posts/view/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

http://blog.designs.codes/multi-language-website-using-cakephp/   Multiple languages in a CakePHP 2.* application in 5 steps https://book.cakephp.org/2.0/en/core-libraries/internationalization-and-localization.html  

4 ماه پیش

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 (…

7 ماه پیش

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

 

 

1 سال پیش

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…

3 سال پیش

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] =…

3 سال پیش