Skip to content
Browse files

Update README2.md

Added visibility keywords
  • Loading branch information...
1 parent cfcb978 commit 966c079c35c30f80cb16971998cc910497f47302 @destinydriven destinydriven committed Jul 25, 2012
Showing with 11 additions and 11 deletions.
  1. +11 −11 README2.md
View
22 README2.md
@@ -10,13 +10,13 @@ Because of this, the wizard action itself can be very basic. It merely needs to
<pre><code>&lt;?php
class SignupController extends AppController {
- var $components = array('Wizard');
+ public $components = array('Wizard');
- function beforeFilter() {
+ public function beforeFilter() {
$this-&gt;Wizard-&gt;steps = array('account', 'address', 'billing', 'review');
}
- function wizard($step = null) {
+ public function wizard($step = null) {
$this-&gt;Wizard-&gt;process($step);
}
}
@@ -41,20 +41,20 @@ So lets create some basic process callbacks. Real world examples would most like
<pre><code>&lt;?php
class SignupController extends AppController {
- var $uses = array('Client', 'User', 'Billing');
- var $components = array('Wizard');
+ public $uses = array('Client', 'User', 'Billing');
+ public $components = array('Wizard');
- function beforeFilter() {
+ public function beforeFilter() {
$this-&gt;Wizard-&gt;steps = array('account', 'address', 'billing', 'review');
}
- function wizard($step = null) {
+ public function wizard($step = null) {
$this-&gt;Wizard-&gt;process($step);
}
/**
* [Wizard Process Callbacks]
*/
- function processAccount() {
+ public function processAccount() {
$this-&gt;Client-&gt;set($this-&gt;data);
$this-&gt;User-&gt;set($this-&gt;data);
@@ -64,7 +64,7 @@ class SignupController extends AppController {
return false;
}
- function processAddress() {
+ public function processAddress() {
$this-&gt;Client-&gt;set($this-&gt;data);
if($this-&gt;Client-&gt;validates()) {
@@ -73,7 +73,7 @@ class SignupController extends AppController {
return false;
}
- function processBilling() {
+ public function processBilling() {
$this-&gt;Billing-&gt;set($this-&gt;data);
if($this-&gt;Billing-&gt;validates()) {
@@ -82,7 +82,7 @@ class SignupController extends AppController {
return false;
}
- function processReview() {
+ public function processReview() {
return true;
}
}

0 comments on commit 966c079

Please sign in to comment.
Something went wrong with that request. Please try again.