Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 148 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 148 Revision 991
Zeile 1... Zeile -...
1
spacify {#language.modifier.spacify}
-
 
2
=======
1
# spacify
Zeile 3... Zeile 2...
3
 
2
 
4
`spacify` is a way to insert a space between every character of a
3
`spacify` is a way to insert a space between every character of a
5
variable. You can optionally pass a different character or string to
4
variable. You can optionally pass a different character or string to
Zeile -... Zeile 5...
-
 
5
insert.
-
 
6
 
6
insert.
7
## Basic usage
7
 
-
 
8
   Parameter Position    Type    Required     Default    Description
-
 
-
 
8
```smarty
Zeile -... Zeile 9...
-
 
9
{$myVar|spacify}
Zeile 9... Zeile -...
9
  -------------------- -------- ---------- ------------- -----------------------------------------------------------------
-
 
-
 
10
```
-
 
11
 
-
 
12
## Parameters
Zeile 10... Zeile -...
10
           1            string      No      *one space*  This what gets inserted between each character of the variable.
-
 
-
 
13
 
Zeile 11... Zeile 14...
11
 
14
| Parameter Position | Type   | Required | Default     | Description                                                     |
-
 
15
|--------------------|--------|----------|-------------|-----------------------------------------------------------------|
Zeile 12... Zeile -...
12
 
-
 
13
    <?php
-
 
14
 
16
| 1                  | string | No       | *one space* | This what gets inserted between each character of the variable. |
Zeile -... Zeile 17...
-
 
17
 
Zeile 15... Zeile 18...
15
    $smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.');
18
## Examples
16
 
-
 
17
    ?>
-
 
Zeile -... Zeile 19...
-
 
19
 
-
 
20
```php
-
 
21
<?php
-
 
22
 
18
 
23
$smarty->assign('articleTitle', 'Something Went Wrong in Jet Crash, Experts Say.');
Zeile 19... Zeile 24...
19
       
24
 
Zeile -... Zeile 25...
-
 
25
```
-
 
26
 
-
 
27
Where template is:
-
 
28
 
-
 
29
```smarty
Zeile 20... Zeile -...
20
 
-
 
21
Where template is:
-
 
22
 
-
 
23
 
-
 
24
    {$articleTitle}
-
 
25
    {$articleTitle|spacify}
-
 
26
    {$articleTitle|spacify:"^^"}
30
{$articleTitle}
27
 
31
{$articleTitle|spacify}