summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAndrew Dawes <andrewsdawes@gmail.com>2022-10-22 22:08:38 +0200
committerGitHub <noreply@github.com>2022-10-22 22:08:38 +0200
commitf81720941c07c76ad5ee25d0d69682463acb504b (patch)
tree6cdefcf17249942ab008e78ac50ae125e345bd25 /docs
parent1ff79c6c38a73253304f761a8b387598d084f11c (diff)
downloadsmarty-f81720941c07c76ad5ee25d0d69682463acb504b.tar.gz
smarty-f81720941c07c76ad5ee25d0d69682463acb504b.tar.bz2
smarty-f81720941c07c76ad5ee25d0d69682463acb504b.zip
Fixed several typos and grammar errors (#821)
Diffstat (limited to 'docs')
-rw-r--r--docs/appendixes/troubleshooting.md2
-rw-r--r--docs/designers/language-builtin-functions/language-function-block.md6
-rw-r--r--docs/designers/language-builtin-functions/language-function-extends.md4
-rw-r--r--docs/designers/language-builtin-functions/language-function-for.md2
-rw-r--r--docs/designers/language-builtin-functions/language-function-include.md2
-rw-r--r--docs/designers/language-builtin-functions/language-function-insert.md2
-rw-r--r--docs/designers/language-builtin-functions/language-function-section.md4
-rw-r--r--docs/designers/language-builtin-functions/language-function-setfilter.md2
-rw-r--r--docs/designers/language-custom-functions/language-function-fetch.md2
-rw-r--r--docs/designers/language-custom-functions/language-function-html-image.md2
-rw-r--r--docs/designers/language-modifiers.md2
-rw-r--r--docs/designers/language-modifiers/language-modifier-from-charset.md2
-rw-r--r--docs/designers/language-modifiers/language-modifier-to-charset.md2
-rw-r--r--docs/designers/language-variables/language-variables-smarty.md4
-rw-r--r--docs/programmers/advanced-features/advanced-features-objects.md2
-rw-r--r--docs/programmers/advanced-features/advanced-features-security.md8
-rw-r--r--docs/programmers/advanced-features/advanced-features-template-inheritance.md2
-rw-r--r--docs/programmers/advanced-features/advanced-features-template-settings.md2
-rw-r--r--docs/programmers/api-functions/api-create-data.md2
-rw-r--r--docs/programmers/api-functions/api-disable-security.md2
-rw-r--r--docs/programmers/api-functions/api-enable-security.md2
-rw-r--r--docs/programmers/api-functions/api-mute-expected-errors.md2
-rw-r--r--docs/programmers/api-functions/api-register-default-plugin-handler.md2
-rw-r--r--docs/programmers/api-functions/api-test-install.md2
-rw-r--r--docs/programmers/api-variables/variable-compile-id.md4
-rw-r--r--docs/programmers/api-variables/variable-locking-timeout.md2
-rw-r--r--docs/programmers/api-variables/variable-use-sub-dirs.md2
-rw-r--r--docs/programmers/caching/caching-groups.md4
-rw-r--r--docs/programmers/charset.md2
-rw-r--r--docs/programmers/resources/resources-extends.md6
-rw-r--r--docs/programmers/resources/resources-file.md2
31 files changed, 43 insertions, 43 deletions
diff --git a/docs/appendixes/troubleshooting.md b/docs/appendixes/troubleshooting.md
index fe012c12..d605dd2b 100644
--- a/docs/appendixes/troubleshooting.md
+++ b/docs/appendixes/troubleshooting.md
@@ -109,7 +109,7 @@ the corresponding error is in the template.
-- This means that your application registered a custom error hander
+- This means that your application registered a custom error handler
(using [set\_error\_handler()](&url.php-manual;set_error_handler))
which is not respecting the given `$errno` as it should. If, for
whatever reason, this is the desired behaviour of your custom error
diff --git a/docs/designers/language-builtin-functions/language-function-block.md b/docs/designers/language-builtin-functions/language-function-block.md
index 941997a5..82659852 100644
--- a/docs/designers/language-builtin-functions/language-function-block.md
+++ b/docs/designers/language-builtin-functions/language-function-block.md
@@ -3,14 +3,14 @@
`{block}` is used to define a named area of template source for template
inheritance. For details see section of [Template
-Interitance](#advanced.features.template.inheritance).
+Inheritance](#advanced.features.template.inheritance).
The `{block}` template source area of a child template will replace the
-correponding areas in the parent template(s).
+corresponding areas in the parent template(s).
Optionally `{block}` areas of child and parent templates can be merged
into each other. You can append or prepend the parent `{block}` content
-by using the `append` or `prepend` option flag with the childs `{block}`
+by using the `append` or `prepend` option flag with the child's `{block}`
definition. With the {\$smarty.block.parent} the `{block}` content of
the parent template can be inserted at any location of the child
`{block}` content. {\$smarty.block.child} inserts the `{block}` content
diff --git a/docs/designers/language-builtin-functions/language-function-extends.md b/docs/designers/language-builtin-functions/language-function-extends.md
index 9559e7c5..59f24645 100644
--- a/docs/designers/language-builtin-functions/language-function-extends.md
+++ b/docs/designers/language-builtin-functions/language-function-extends.md
@@ -3,7 +3,7 @@
`{extends}` tags are used in child templates in template inheritance for
extending parent templates. For details see section of [Template
-Interitance](#advanced.features.template.inheritance).
+Inheritance](#advanced.features.template.inheritance).
- The `{extends}` tag must be on the first line of the template.
@@ -33,5 +33,5 @@ Interitance](#advanced.features.template.inheritance).
-See also [Template Interitance](#advanced.features.template.inheritance)
+See also [Template Inheritance](#advanced.features.template.inheritance)
and [`{block}`](#language.function.block).
diff --git a/docs/designers/language-builtin-functions/language-function-for.md b/docs/designers/language-builtin-functions/language-function-for.md
index 0545c172..5445f6f3 100644
--- a/docs/designers/language-builtin-functions/language-function-for.md
+++ b/docs/designers/language-builtin-functions/language-function-for.md
@@ -2,7 +2,7 @@
=====
The `{for}{forelse}` tag is used to create simple loops. The following
-different formarts are supported:
+different formats are supported:
- `{for $var=$start to $end}` simple loop with step size of 1.
diff --git a/docs/designers/language-builtin-functions/language-function-include.md b/docs/designers/language-builtin-functions/language-function-include.md
index 512f14a3..bda2d802 100644
--- a/docs/designers/language-builtin-functions/language-function-include.md
+++ b/docs/designers/language-builtin-functions/language-function-include.md
@@ -131,7 +131,7 @@ cache lifetime of 500 seconds.
In this example included template will be cached independent of the
-global cahing setting.
+global caching setting.
{include 'sub_template.tpl' caching}
diff --git a/docs/designers/language-builtin-functions/language-function-insert.md b/docs/designers/language-builtin-functions/language-function-insert.md
index e37c7389..e5bc7dcb 100644
--- a/docs/designers/language-builtin-functions/language-function-insert.md
+++ b/docs/designers/language-builtin-functions/language-function-insert.md
@@ -65,7 +65,7 @@ and display the returned results in place of the {insert} tag.
The path can be either absolute, or relative to
[`$trusted_dir`](#variable.trusted.dir). If security is enabled,
then the script must be located in the `$trusted_dir` path of the
- securty policy. See the [Security](#advanced.features.security)
+ security policy. See the [Security](#advanced.features.security)
section for details.
The Smarty object is passed as the second argument. This way you can
diff --git a/docs/designers/language-builtin-functions/language-function-section.md b/docs/designers/language-builtin-functions/language-function-section.md
index 0bab5c71..b28bb924 100644
--- a/docs/designers/language-builtin-functions/language-function-section.md
+++ b/docs/designers/language-builtin-functions/language-function-section.md
@@ -251,8 +251,8 @@ The above example will output:
{section}\'s can be nested as deep as you like. With nested
{section}\'s, you can access complex data structures, such as
-multi-dimensional arrays. This is an example `.php` script thats
-assign\'s the arrays.
+multi-dimensional arrays. This is an example `.php` script that
+assigns the arrays.
<?php
diff --git a/docs/designers/language-builtin-functions/language-function-setfilter.md b/docs/designers/language-builtin-functions/language-function-setfilter.md
index 381c191a..c7f99e78 100644
--- a/docs/designers/language-builtin-functions/language-function-setfilter.md
+++ b/docs/designers/language-builtin-functions/language-function-setfilter.md
@@ -10,7 +10,7 @@ The filter can be:
- A variable filter plugin specified by it\'s name.
-- A modidier specified by it\'s name and optional additional
+- A modifier specified by it\'s name and optional additional
parameter.
`{setfilter}...{/setfilter}` blocks can be nested. The filter definition
diff --git a/docs/designers/language-custom-functions/language-function-fetch.md b/docs/designers/language-custom-functions/language-function-fetch.md
index 2277f505..3dbc5610 100644
--- a/docs/designers/language-custom-functions/language-function-fetch.md
+++ b/docs/designers/language-custom-functions/language-function-fetch.md
@@ -22,7 +22,7 @@ ftp and display the contents.
>
> If security is enabled and you are fetching a file from the local
> file system, `{fetch}` will only allow files from within the
- > `$secure_dir` path of the securty policy. See the
+ > `$secure_dir` path of the security policy. See the
> [Security](#advanced.features.security) section for details.
- If the `assign` attribute is set, the output of the `{fetch}`
diff --git a/docs/designers/language-custom-functions/language-function-html-image.md b/docs/designers/language-custom-functions/language-function-html-image.md
index 76740a1f..e21f2a12 100644
--- a/docs/designers/language-custom-functions/language-function-html-image.md
+++ b/docs/designers/language-custom-functions/language-function-html-image.md
@@ -19,7 +19,7 @@ automatically calculated from the image file if they are not supplied.
from. If not given, the web server\'s document root
`$_ENV['DOCUMENT_ROOT']` is used as the base. If security is
enabled, then the image must be located in the `$secure_dir` path of
- the securty policy. See the [Security](#advanced.features.security)
+ the security policy. See the [Security](#advanced.features.security)
section for details.
- `href` is the href value to link the image to. If link is supplied,
diff --git a/docs/designers/language-modifiers.md b/docs/designers/language-modifiers.md
index 4cb69cd1..4626dbe5 100644
--- a/docs/designers/language-modifiers.md
+++ b/docs/designers/language-modifiers.md
@@ -115,7 +115,7 @@ These parameters follow the modifier name and are separated by a `:`
- Secondly - if security is enabled, all php-functions that are to
be used as modifiers have to be declared trusted in the
- `$modifiers` property of the securty policy. See the
+ `$modifiers` property of the security policy. See the
[Security](../programmers/advanced-features/advanced-features-security.md) section for details.
See also [`registerPlugin()`](../programmers/api-functions/api-register-plugin.md), [combining
diff --git a/docs/designers/language-modifiers/language-modifier-from-charset.md b/docs/designers/language-modifiers/language-modifier-from-charset.md
index 8b7fdd50..1c301c3b 100644
--- a/docs/designers/language-modifiers/language-modifier-from-charset.md
+++ b/docs/designers/language-modifiers/language-modifier-from-charset.md
@@ -15,5 +15,5 @@ modifier](#language.modifier.to_charset).
> modifier should only be used in cases where the application cannot
> anticipate that a certain string is required in another encoding.
-See also [Charset Enconding](#charset), [from\_charset
+See also [Charset Encoding](#charset), [from\_charset
modifier](#language.modifier.from_charset).
diff --git a/docs/designers/language-modifiers/language-modifier-to-charset.md b/docs/designers/language-modifiers/language-modifier-to-charset.md
index 6c53232c..a0d95f53 100644
--- a/docs/designers/language-modifiers/language-modifier-to-charset.md
+++ b/docs/designers/language-modifiers/language-modifier-to-charset.md
@@ -15,5 +15,5 @@ modifier](#language.modifier.from_charset).
> modifier should only be used in cases where the application cannot
> anticipate that a certain string is required in another encoding.
-See also [Charset Enconding](#charset), [from\_charset
+See also [Charset Encoding](#charset), [from\_charset
modifier](#language.modifier.from_charset).
diff --git a/docs/designers/language-variables/language-variables-smarty.md b/docs/designers/language-variables/language-variables-smarty.md
index f9aa2330..e2949e0e 100644
--- a/docs/designers/language-variables/language-variables-smarty.md
+++ b/docs/designers/language-variables/language-variables-smarty.md
@@ -157,13 +157,13 @@ Returns the version of Smarty the template was compiled with.
----------------------
Returns block text from child template. See [Template
-interitance](#advanced.features.template.inheritance).
+inheritance](#advanced.features.template.inheritance).
{\$smarty.block.parent} {#language.variables.smarty.block.parent}
-----------------------
Returns block text from parent template. See [Template
-interitance](#advanced.features.template.inheritance)
+inheritance](#advanced.features.template.inheritance)
{\$smarty.ldelim}, {\$smarty.rdelim} {#language.variables.smarty.ldelim}
------------------------------------
diff --git a/docs/programmers/advanced-features/advanced-features-objects.md b/docs/programmers/advanced-features/advanced-features-objects.md
index 6b4870b5..88bd647a 100644
--- a/docs/programmers/advanced-features/advanced-features-objects.md
+++ b/docs/programmers/advanced-features/advanced-features-objects.md
@@ -29,7 +29,7 @@ determined by your needs, but use the first method whenever possible to
keep template syntax to a minimum.
If security is enabled, no private methods or functions can be accessed
-(beginningwith \'\_\'). If a method and property of the same name exist,
+(beginning with \'\_\'). If a method and property of the same name exist,
the method will be used.
You can restrict the methods and properties that can be accessed by
diff --git a/docs/programmers/advanced-features/advanced-features-security.md b/docs/programmers/advanced-features/advanced-features-security.md
index 15755b42..730915f1 100644
--- a/docs/programmers/advanced-features/advanced-features-security.md
+++ b/docs/programmers/advanced-features/advanced-features-security.md
@@ -2,7 +2,7 @@ Security {#advanced.features.security}
========
Security is good for situations when you have untrusted parties editing
-the templates eg via ftp, and you want to reduce the risk of system
+the templates e.g. via ftp, and you want to reduce the risk of system
security compromises through the template language.
The settings of the security policy are defined by properties of an
@@ -10,7 +10,7 @@ instance of the Smarty\_Security class. These are the possible settings:
- `$secure_dir` is an array of template directories that are
considered secure. [`$template_dir`](#variable.template.dir)
- concidered secure implicitly. The default is an empty array.
+ considered secure implicitly. The default is an empty array.
- `$trusted_dir` is an array of all directories that are considered
trusted. Trusted directories are where you keep php scripts that are
@@ -27,7 +27,7 @@ instance of the Smarty\_Security class. These are the possible settings:
like authentication-tokens).
The expression `'#https?://.*smarty.net$#i'` would allow accessing
- the follwing URIs:
+ the following URIs:
- `http://smarty.net/foo`
@@ -140,5 +140,5 @@ Smarty\_Security class or create an instance of it.
> **Note**
>
> Most security policy settings are only checked when the template gets
-> compiled. For that reasion you should delete all cached and compiled
+> compiled. For that reason you should delete all cached and compiled
> template files when you change your security settings.
diff --git a/docs/programmers/advanced-features/advanced-features-template-inheritance.md b/docs/programmers/advanced-features/advanced-features-template-inheritance.md
index 25295c38..ce47310c 100644
--- a/docs/programmers/advanced-features/advanced-features-template-inheritance.md
+++ b/docs/programmers/advanced-features/advanced-features-template-inheritance.md
@@ -33,7 +33,7 @@ can override all or some of the parent named block areas.
you can define the whole template inheritance tree in the PHP script
when you are calling [`fetch()`](#api.fetch) or
[`display()`](#api.display) with the `extends:` template resource
- type. The later provides even more flexibillity.
+ type. The later provides even more flexibility.
> **Note**
>
diff --git a/docs/programmers/advanced-features/advanced-features-template-settings.md b/docs/programmers/advanced-features/advanced-features-template-settings.md
index df1f86a8..b06430ff 100644
--- a/docs/programmers/advanced-features/advanced-features-template-settings.md
+++ b/docs/programmers/advanced-features/advanced-features-template-settings.md
@@ -8,7 +8,7 @@ Modifications done to the Smarty object will be global for all
templates.
However the Smarty class variables and functions can be accessed or
-called by induvidual template objects. Modification done to a template
+called by individual template objects. Modification done to a template
object will apply only for that template and its included subtemplates.
diff --git a/docs/programmers/api-functions/api-create-data.md b/docs/programmers/api-functions/api-create-data.md
index 2d9f281b..7e083776 100644
--- a/docs/programmers/api-functions/api-create-data.md
+++ b/docs/programmers/api-functions/api-create-data.md
@@ -26,7 +26,7 @@ the following parameters:
variables assigned to any of the objects in it\'s parent chain.
Data objects are used to create scopes for assigned variables. They can
-be used to have controll which variables are seen by which templates.
+be used to control which variables are seen by which templates.
<?php
diff --git a/docs/programmers/api-functions/api-disable-security.md b/docs/programmers/api-functions/api-disable-security.md
index efbaa355..1166828e 100644
--- a/docs/programmers/api-functions/api-disable-security.md
+++ b/docs/programmers/api-functions/api-disable-security.md
@@ -9,7 +9,7 @@ string
disableSecurity
-This disables securty checking on templates.
+This disables security checking on templates.
See also [`enableSecurity()`](#api.enable.security), and
[Security](#advanced.features.security).
diff --git a/docs/programmers/api-functions/api-enable-security.md b/docs/programmers/api-functions/api-enable-security.md
index 3326900d..72ee38bb 100644
--- a/docs/programmers/api-functions/api-enable-security.md
+++ b/docs/programmers/api-functions/api-enable-security.md
@@ -25,7 +25,7 @@ string
enableSecurity
-This enables securty checking on templates. It uses the following
+This enables security checking on templates. It uses the following
parameters:
- `securityclass` is an optional parameter. It\'s the name of the
diff --git a/docs/programmers/api-functions/api-mute-expected-errors.md b/docs/programmers/api-functions/api-mute-expected-errors.md
index 1ce45d49..c0c29c06 100644
--- a/docs/programmers/api-functions/api-mute-expected-errors.md
+++ b/docs/programmers/api-functions/api-mute-expected-errors.md
@@ -16,6 +16,6 @@ given error was produced deliberately and must be ignored, or should be
passed on to the next error handler.
`Smarty::unmuteExpectedErrors()` removes the current error handler.
-Please note, that if you\'ve registerd any custom error handlers after
+Please note, that if you\'ve registered any custom error handlers after
the muteExpectedErrors() call, the unmute will not remove Smarty\'s
muting error handler, but the one registered last.
diff --git a/docs/programmers/api-functions/api-register-default-plugin-handler.md b/docs/programmers/api-functions/api-register-default-plugin-handler.md
index 9447d962..03547df7 100644
--- a/docs/programmers/api-functions/api-register-default-plugin-handler.md
+++ b/docs/programmers/api-functions/api-register-default-plugin-handler.md
@@ -18,7 +18,7 @@ not find a definition for a tag otherwise. It uses the following
parameters:
If during compilation Smarty encounters tag which is not defined
-internal, registered or loacted in the plugins folder it tries to
+internal, registered or located in the plugins folder it tries to
resolve it by calling the registered default plugin handler. The handler
may be called several times for same undefined tag looping over valid
plugin types.
diff --git a/docs/programmers/api-functions/api-test-install.md b/docs/programmers/api-functions/api-test-install.md
index 3afe5ec1..918bd220 100644
--- a/docs/programmers/api-functions/api-test-install.md
+++ b/docs/programmers/api-functions/api-test-install.md
@@ -10,7 +10,7 @@ void
testInstall
This function verifies that all required working folders of the Smarty
-installation can be accessed. It does output a corresponding protocoll.
+installation can be accessed. It does output a corresponding protocol.
<?php
diff --git a/docs/programmers/api-variables/variable-compile-id.md b/docs/programmers/api-variables/variable-compile-id.md
index c63f75ab..ca2b08fb 100644
--- a/docs/programmers/api-variables/variable-compile-id.md
+++ b/docs/programmers/api-variables/variable-compile-id.md
@@ -1,7 +1,7 @@
\$compile\_id {#variable.compile.id}
=============
-Persistant compile identifier. As an alternative to passing the same
+Persistent compile identifier. As an alternative to passing the same
`$compile_id` to each and every function call, you can set this
`$compile_id` and it will be used implicitly thereafter.
@@ -10,7 +10,7 @@ post-filters](#plugins.prefilters.postfilters) you must use a unique
`$compile_id` to keep the compiled template files separated.
For example a [prefilter](#plugins.prefilters.postfilters) that
-localizes your templates (that is: translates language dependend parts)
+localizes your templates (that is: translates language dependent parts)
at compile time, then you could use the current language as
`$compile_id` and you will get a set of compiled templates for each
language you use.
diff --git a/docs/programmers/api-variables/variable-locking-timeout.md b/docs/programmers/api-variables/variable-locking-timeout.md
index fdfdc087..82fd0568 100644
--- a/docs/programmers/api-variables/variable-locking-timeout.md
+++ b/docs/programmers/api-variables/variable-locking-timeout.md
@@ -2,6 +2,6 @@
==================
This is maximum time in seconds a cache lock is valid to avoid dead
-locks. The deafult value is 10 seconds.
+locks. The default value is 10 seconds.
See also [`$cache_locking`](#variable.cache.locking)
diff --git a/docs/programmers/api-variables/variable-use-sub-dirs.md b/docs/programmers/api-variables/variable-use-sub-dirs.md
index a95ac415..d973c240 100644
--- a/docs/programmers/api-variables/variable-use-sub-dirs.md
+++ b/docs/programmers/api-variables/variable-use-sub-dirs.md
@@ -10,7 +10,7 @@ environments do not allow PHP processes to create directories, so this
must be disabled which is the default.
Sub directories are more efficient, so use them if you can.
-Theoretically you get much better perfomance on a filesystem with 10
+Theoretically you get much better performance on a filesystem with 10
directories each having 100 files, than with 1 directory having 1000
files. This was certainly the case with Solaris 7 (UFS)\... with newer
filesystems such as ext3 and especially reiserfs, the difference is
diff --git a/docs/programmers/caching/caching-groups.md b/docs/programmers/caching/caching-groups.md
index 98e5d45c..7e248b2f 100644
--- a/docs/programmers/caching/caching-groups.md
+++ b/docs/programmers/caching/caching-groups.md
@@ -25,10 +25,10 @@ like.
- You CANNOT remove a specified template name under multiple cache
groups such as `'/a/b/*/foo.tpl'`, the cache grouping works
left-to-right ONLY. You will need to group your templates under a
- single cache group heirarchy to be able to clear them as a group.
+ single cache group hierarchy to be able to clear them as a group.
Cache grouping should not be confused with your template directory
-heirarchy, the cache grouping has no knowledge of how your templates are
+hierarchy, the cache grouping has no knowledge of how your templates are
structured. So for example, if you have a template structure like
`themes/blue/index.tpl` and you want to be able to clear all the cache
files for the "blue" theme, you will need to create a cache group
diff --git a/docs/programmers/charset.md b/docs/programmers/charset.md
index c8476d86..9dedf4dc 100644
--- a/docs/programmers/charset.md
+++ b/docs/programmers/charset.md
@@ -15,7 +15,7 @@ Smarty recognizes `UTF-8` as the internal charset if
> `ISO-8859-1` has been PHP\'s default internal charset since the
> beginning. Unicode has been evolving since 1991. Since then it has
> become the one charset to conquer them all, as it is capable of
-> encoding most of the known characters even accross different character
+> encoding most of the known characters even across different character
> systems (latin, cyrillic, japanese, ...). `UTF-8` is unicode\'s most
> used encoding, as it allows referencing the thousands of character
> with the smallest size overhead possible.
diff --git a/docs/programmers/resources/resources-extends.md b/docs/programmers/resources/resources-extends.md
index ad2e8f5d..d7213d89 100644
--- a/docs/programmers/resources/resources-extends.md
+++ b/docs/programmers/resources/resources-extends.md
@@ -3,20 +3,20 @@ Extends Template Resources {#resources.extends}
The `extends:` resource is used to define child/parent relationships for
template inheritance from the PHP script. For details see section of
-[Template Interitance](#advanced.features.template.inheritance).
+[Template Inheritance](#advanced.features.template.inheritance).
As of Smarty 3.1 the `extends:` resource may use any available [template
resource](#resources), including `string:` and `eval:`. When [templates
from strings](#resources.string) are used, make sure they are properly
(url or base64) encoded. Is an `eval:` resource found within an
inheritance chain, its \"don\'t save a compile file\" property is
-superseeded by the `extends:` resource. The templates within an
+superseded by the `extends:` resource. The templates within an
inheritance chain are not compiled separately, though. Only a single
compiled template will be generated.
> **Note**
>
-> Use this when inheritance is required programatically. When inheriting
+> Use this when inheritance is required programmatically. When inheriting
> within PHP, it is not obvious from the child template what inheritance
> took place. If you have a choice, it is normally more flexible and
> intuitive to handle inheritance chains from within the templates.
diff --git a/docs/programmers/resources/resources-file.md b/docs/programmers/resources/resources-file.md
index 986cfffc..e49f4737 100644
--- a/docs/programmers/resources/resources-file.md
+++ b/docs/programmers/resources/resources-file.md
@@ -47,7 +47,7 @@ Templates from a specific \$template\_dir {#templates.from.specified.template.di
Smarty 3.1 introduced the bracket-syntax for specifying an element from
[`$template_dir`](#variable.template.dir). This allows websites
employing multiple sets of templates better control over which template
-to acces.
+to access.
The bracket-syntax can be used from anywhere you can specify the `file:`
resource type.