CakePHP 2.x Articles & Posts

How 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 in. Thanks to the clever way CakePHP handles includes, we can easily use our own scaffolding implementation by adding 2 lines to AppController.

In this tutorial we will built a scaffolding plugin that is aware of the TreeBehavior (continue reading…)

Keywords:

  • pronique com
  • cakephp generate list scaffolding
  • cakephp 2 1 tutorial
  • https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1826 EsMth8tTuXWjKrXbZzdzY65wr_NFWffrQVtXL2YeJCaAZWYxBNUHZFKn4Il9AAMk 1b0b3d8f5f84453e2719d6c54d2bbd7ae3406c79&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme

CsvExport 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 use the Behavior. (continue reading…)

Keywords:

  • cakephp csv
  • https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1822 Wxi0xLClze6SJ7ltIEifN_MVkrjC4Ckv0LQaA5ZQH02X1yL84-0x73EkiAp5CEMV a6836b413b3f8b295f93680b45c33af3b730f8f1&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme

Enable CSV Import for all controllers/models in a CakePHP 2.x project

CakePHP LogoI 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 frustration prompted me to explore the (continue reading…)

Keywords:

  • cakephp csv import
  • cakephp import csv
  • https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1824 7nj6Ujv3flCfAgmR-MSjw42Mlo2tt9qURB2QEVd0RzybsaiwfJrlaQe5osiV83L_ 83273bcb931f3c3ec966ba9628a366a523707870&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme

[CakePHP] Modeling a simple accounting system with estimates, invoices, and payments.

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 this a solid foundation for building an Accounting Web App, this is the M in MVC.

The idea behind what we are modeling today is a simple accounting web app similar to Freshbooks or something QuickBooks offers. The model definitions and relationships are as follows. (continue reading…)

Keywords:

  • cakephp accounting system
  • cakephp invoice
  • invoice program in cakephp

Install 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 Core library. Making upgrades to new versions of the framework effortless even across many applications.

I use CakePHP for the majority of web-based applications I create. Before developing this convention I would end up with many redundant copies of the Core library floating around taking up disk space, and making upgrade tedious. (continue reading…)

Keywords:

  • cakephp multiple apps
  • removemfr

  • Copyright © 1996-2012 PRONIQUE Software. All rights reserved.