-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated docs #165
updated docs #165
Conversation
- includes example of requiring a different script.
Codecov Report
@@ Coverage Diff @@
## 2.0 #165 +/- ##
=======================================
Coverage 58.52% 58.52%
=======================================
Files 5 5
Lines 311 311
=======================================
Hits 182 182
Misses 129 129 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks pretty good!
I might flush it out a bit more - show the class CustomLocator extends Locator
declaration at the top of the php example so it's more clear that we're extending the base class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is in pretty good shape. Saw the one thing with the class declaration in the example, otherwise it seems pretty well put together.
docs/en/code/index.md
Outdated
This example shows how to reference custom templates and a custom data location. It is recommended to copy the custom script from the [Locator Controller](../../../code/pages/Locator.php#L273-L298) and modify it. | ||
|
||
```php | ||
class Locator_ControllerExtension extends DataExtension |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is applied to the Locator_Controller
it should extend Extension
rather than DataExtension
.
Now includes an example of requiring a different script.