mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
Merge pull request #66 from creative-commoners/pulls/2.0./multiform-namespace-fix
FIX changed MultiForm namespace
This commit is contained in:
commit
7730d807a5
@ -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
|
||||
|
@ -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
|
@ -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;
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user