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…

7 سال پیش

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  

7 سال پیش

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 سال پیش

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…

9 سال پیش

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

10 سال پیش