CakePHP: Reorder lft rght columns in Tree models
If you are using the Tree Behavior sometimes the lft and rght columns get out of sync, especially if you are adding and deleting records during development. Add the following method to your...
View ArticleMediawiki CSV Import ver 2.2.1 Released (Coupon Codes!)
PRONIQUE Software is proud to announce a new version Mediawiki CSV Import. Version 2.2.1 introduces the Dataset Library, a collection of contributed datasets that you can import and use to build your...
View ArticleHowto recover deleted php files using scalpel
span.path { padding:0 5px; font-family: Courier New; background:#e8e8e8; } Several times in the past I’ve accidentally overwritten a file or used a greedy wildcard with rm -rf. If you find yourself in...
View ArticleInstalling MongoDB on Windows the WAMP way
This guide is geared towards web developers using wamp. As you know, wamp keeps your filesystem tidy by installing apache, mysql, and php all inside c:\wamp. My setup is a Windows 7 64bit machine...
View ArticleInstall and reuse CakePHP across multiple projects
Update: I have created a command line tool that provides the functionality explained in detail below. Check-out CakeCore and learn more. How to maintain one copy of each major version of the CakePHP...
View ArticleInstalling CakePHP 2.1 with git clone
If you have ssh shell access to you web server installing CakePHP very simple using git. First, determine if you have git installed. At the command line type git --help If you get a response like “No...
View Article[CakePHP] Modeling a simple accounting system with estimates, invoices, and...
Database tables and Model classes are where most CakePHP applications begin. With this example, we will focus on Model associations rather than providing a complete tutorial of an application. Consider...
View ArticleEnable CSV Import for all controllers/models in a CakePHP 2.x project
I often use phpMyAdmin to import csv data into projects I am building, this can be tedious as phpMyAdmin requires the number of fields and field order to match exactly for the csv import to work. This...
View ArticleCsvExport Behavior for CakePHP 2
This behavior is the exact opposite of the CsvImport behavior included in the Utils plugin from CakeDC. This Behavior will end on github but for now, here is the source code and instructions on how to...
View ArticleHow to Create your own Scaffolding plugin for CakePHP 2
CakePHP’s builtin scaffolding is great but sometimes I wish it would do more or behave a little differently. Until recently, I assumed this couldn’t be accomplished with the way scaffolding was baked...
View Article