FIX changed MultiForm namespace

This commit is contained in:
Franco Springveldt 2017-09-12 11:51:17 +12:00
parent e25af03f6d
commit 2aa75d758c
4 changed files with 9 additions and 9 deletions

View File

@ -94,7 +94,7 @@ First of all, we need to create a new subclass of *MultiForm*.
For the above example, our multi-form will be called *SurveyForm*
```php
use SilverStripe\MultiForm\Models\MultiForm;
use SilverStripe\MultiForm\Forms\MultiForm;
class SurveyForm extends MultiForm {
@ -127,7 +127,7 @@ subclass of MultiForm, SurveyForm, and tell it that SurveyFormPersonalDetailsSte
is the first step.
```php
use SilverStripe\MultiForm\Models\MultiForm;
use SilverStripe\MultiForm\Forms\MultiForm;
class SurveyForm extends MultiForm
{
@ -393,7 +393,7 @@ So, we must write some code on our subclass of *MultiForm*, overloading
Here is an example of what we could do here:
```php
use SilverStripe\MultiForm\Models\MultiForm;
use SilverStripe\MultiForm\Forms\MultiForm;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\EmailField;
@ -580,7 +580,7 @@ For example:
```php
use SilverStripe\Dev\Debug;
use SilverStripe\MultiForm\Models\MultiForm;
use SilverStripe\MultiForm\Forms\MultiForm;
use SilverStripe\MultiForm\Models\MultiFormStep;
class SurveyForm extends MultiForm

View File

@ -1,20 +1,20 @@
<?php
namespace SilverStripe\MultiForm\Models;
namespace SilverStripe\MultiForm\Forms;
use SilverStripe\Control\Controller;
use SilverStripe\Control\HTTPResponse;
use SilverStripe\Control\Session;
use SilverStripe\Core\Convert;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Forms\FieldList;
use SilverStripe\Forms\Form;
use SilverStripe\Forms\FormAction;
use SilverStripe\Forms\HiddenField;
use SilverStripe\MultiForm\Models\MultiFormSession;
use SilverStripe\MultiForm\Models\MultiFormStep;
use SilverStripe\ORM\ArrayList;
use SilverStripe\ORM\DataList;
use SilverStripe\ORM\DataObject;
use SilverStripe\View\SSViewer;
/**
* MultiForm manages the loading of single form steps, and acts as a state

View File

@ -7,7 +7,7 @@ use SilverStripe\Control\Session;
use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Injector\Injector;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\MultiForm\Models\MultiForm;
use SilverStripe\MultiForm\Forms\MultiForm;
use SilverStripe\MultiForm\Models\MultiFormSession;
use SilverStripe\MultiForm\Tests\Stubs\MultiFormTestController;
use SilverStripe\MultiForm\Tests\Stubs\MultiFormTestForm;

View File

@ -3,7 +3,7 @@
namespace SilverStripe\MultiForm\Tests\Stubs;
use SilverStripe\Dev\TestOnly;
use SilverStripe\MultiForm\Models\MultiForm;
use SilverStripe\MultiForm\Forms\MultiForm;
class MultiFormTestForm extends MultiForm implements TestOnly
{