VULAB-160: Create Generic app_controller.php

Metadata

Source
VULAB-160
Type
New Feature
Priority
Major
Status
Closed
Resolution
Incomplete
Assignee
Blake E
Reporter
Blake E
Created
2009-01-27T15:46:04.000-0500
Updated
2009-02-12T11:48:43.000-0500
Versions
  1. 0.6
Fixed Versions
  1. 0.6
Component
  1. Web

Description

CakePHP's controllers all extend Class: AppController and you can extend the native controller by creative an app_controller.php of your own.

So we need to add in functions that we want to be available to all controllers. (At this point, basic CRUD functions)

Attachments

Comments

  • Blake E commented 2009-01-27T15:49:13.000-0500

    vulab15

  • Blake E commented 2009-02-02T15:35:57.000-0500

    adds /app/app_controller.php to the svn which is the main controller that all controllers are extended from as the standard controller definition is:

    PageController extends AppController {
    ...
    }

    This goes into the /app/ folder and not into /app/controllers/ because it is a special case and is used as a parent controller to all controllers within the applicaiton. We need to put in methods that we want in all Controllers here.

    NOTE: at this point this controller may not be exactly how we want it, but I want it into svn as this point to patch off of for the future.