Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit 9868c20

Browse files
committed
[doc] [gentle-introduction] fixed image references
1 parent ed9d8a5 commit 9868c20

10 files changed

+47
-47
lines changed

gentle-introduction/en/02-Exploring-Symfony-s-Code.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ The MVC architecture separates the business logic (model) and the presentation (
1818

1919
Figure 2-1 - The MVC pattern
2020

21-
![The MVC pattern](/images/book/F0201.png "The MVC pattern")
21+
![The MVC pattern](http://www.symfony-project.org/images/book/1_4/F0201.png "The MVC pattern")
2222

2323
### MVC Layering
2424

@@ -332,7 +332,7 @@ And the last thing is that the view logic can be easily translated as a simple c
332332

333333
Figure 2-2 - Symfony workflow
334334

335-
![Symfony workflow](/images/book/F0202.png "Symfony workflow")
335+
![Symfony workflow](http://www.symfony-project.org/images/book/1_4/F0202.png "Symfony workflow")
336336

337337
That means that the list of posts described in our example would require only three files to work in symfony, as shown in Listings 2-11, 2-12, and 2-13.
338338

@@ -419,7 +419,7 @@ Figure 2-3 shows a sample code organization for a weblog project, in a project/a
419419

420420
Figure 2-3 - Example of code organization
421421

422-
![Example of code organization](/images/book/F0203.png "Example of code organization")
422+
![Example of code organization](http://www.symfony-project.org/images/book/1_4/F0203.png "Example of code organization")
423423

424424
### File Tree Structure
425425

gentle-introduction/en/04-The-Basics-of-Page-Creation.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The default `index` action will not be used in this chapter, so you can remove t
5353
5454
Figure 4-1 - The default generated index page
5555

56-
![The default generated index page](/images/book/F0401.jpg "The default generated index page")
56+
![The default generated index page](http://www.symfony-project.org/images/book/1_4/F0401.jpg "The default generated index page")
5757

5858
Adding a Page
5959
-------------

gentle-introduction/en/06-Inside-the-Controller-Layer.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ The default login and secure pages are pretty simple, and you will probably want
627627

628628
Figure 6-1 - The default secure action page
629629

630-
![The default secure action page](/images/book/F0601.jpg "The default secure action page")
630+
![The default secure action page](http://www.symfony-project.org/images/book/1_4/F0601.jpg "The default secure action page")
631631

632632
Listing 6-22 - Default Security Actions Are Defined in `apps/frontend/config/settings.yml`
633633

@@ -745,7 +745,7 @@ Symfony actually sees the processing of a request as a chain of filters. When a
745745

746746
Figure 6-3 - Sample filter chain
747747

748-
![Sample filter chain](/images/book/F0603.png "Sample filter chain")
748+
![Sample filter chain](http://www.symfony-project.org/images/book/1_4/F0603.png "Sample filter chain")
749749

750750
This process justifies the structure of the filter classes. They all extend the `sfFilter` class, and contain one `execute()` method, expecting a `$filterChain` object as parameter. Somewhere in this method, the filter passes to the next filter in the chain by calling `$filterChain->execute()`. See Listing 6-28 for an example. So basically, filters are divided into two parts:
751751

gentle-introduction/en/07-Inside-the-View-Layer.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The template shown in Listing 7-1 is not a valid XHTML document. The `DOCTYPE` d
130130
131131
Figure 7-1 - Decorating a template with a layout
132132

133-
![Decorating a template with a layout](/images/book/F0701.png "Decorating a template with a layout")
133+
![Decorating a template with a layout](http://www.symfony-project.org/images/book/1_4/F0701.png "Decorating a template with a layout")
134134

135135
Listing 7-5 shows the default page layout, located in the application `templates/` directory.
136136

@@ -226,7 +226,7 @@ A partial is a reusable chunk of template code. For instance, in a publication a
226226

227227
Figure 7-2 - Reusing partials in templates
228228

229-
![Reusing partials in templates](/images/book/F0702.png "Reusing partials in templates")
229+
![Reusing partials in templates](http://www.symfony-project.org/images/book/1_4/F0702.png "Reusing partials in templates")
230230

231231
Just like templates, partials are files located in the `templates/` directory, and they contain HTML code with embedded PHP. A partial file name always starts with an underscore (`_`), and that helps to distinguish partials from templates, since they are located in the same `templates/` folders.
232232

@@ -318,7 +318,7 @@ For this example, shown in Listings 7-11 and 7-12, the component will be kept in
318318

319319
Figure 7-3 - Using components in templates
320320

321-
![Using components in templates](/images/book/F0703.png "Using components in templates")
321+
![Using components in templates](http://www.symfony-project.org/images/book/1_4/F0703.png "Using components in templates")
322322

323323
Listing 7-11 - The Components Class, in `modules/news/actions/components.class.php`
324324

@@ -384,7 +384,7 @@ Imagine a layout with one zone for the template and two slots: one for the sideb
384384

385385
Figure 7-4 - Layout slots defined in a template
386386

387-
![Layout slots defined in a template](/images/book/F0704.png "Layout slots defined in a template")
387+
![Layout slots defined in a template](http://www.symfony-project.org/images/book/1_4/F0704.png "Layout slots defined in a template")
388388

389389
Seeing some code will clarify things further. To include a slot, use the `include_slot()` helper. The `has_slot()` helper returns `true` if the slot has been defined before, providing a fallback mechanism as a bonus. For instance, define a placeholder for a `'sidebar'` slot in the layout and its default content as shown in Listing 7-14.
390390

gentle-introduction/en/08-Inside-the-Model-Layer.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ How do you translate a database structure into a schema? An example is the best
6363

6464
Figure 8-1 - A blog database table structure
6565

66-
![A blog database table structure](/images/book/F0801.png "A blog database table structure")
66+
![A blog database table structure](http://www.symfony-project.org/images/book/1_4/F0801.png "A blog database table structure")
6767

6868
The related `schema.yml` file should look like Listing 8-3.
6969

gentle-introduction/en/09-Links-and-the-Routing-System.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ This URL conveys information about the application's architecture and database.
2626

2727
Figure 9-1 - URLs appear in many places, such as in search results
2828

29-
![URLs appear in many places, such as in search results](/images/book/F0901.png "URLs appear in many places, such as in search results")
29+
![URLs appear in many places, such as in search results](http://www.symfony-project.org/images/book/1_4/F0901.png "URLs appear in many places, such as in search results")
3030

3131
* If one URL has to be changed (for instance, if a script name or one of its parameters is modified), every link to this URL must be changed as well. It means that modifications in the controller structure are heavyweight and expensive, which is not ideal in agile development.
3232

@@ -52,7 +52,7 @@ The benefits are immense:
5252

5353
Figure 9-2 - URLs can convey additional information about a page, like the publication date
5454

55-
![URLs can convey additional information about a page, like the publication date](/images/book/F0902.png "URLs can convey additional information about a page, like the publication date")
55+
![URLs can convey additional information about a page, like the publication date](http://www.symfony-project.org/images/book/1_4/F0902.png "URLs can convey additional information about a page, like the publication date")
5656

5757
* URLs written in paper documents are easier to type and remember. If your company website appears as `http://www.example.com/controller/web/index.jsp?id=ERD4` on your business card, it will probably not receive many visits.
5858
* The URL can become a command-line tool of its own, to perform actions or retrieve information in an intuitive way. Applications offering such a possibility are faster to use for power users.

gentle-introduction/en/12-Caching.markdown

+5-5
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Actions displaying static information (not depending on database or session-depe
3636

3737
Figure 12-1 - Caching an action
3838

39-
![Caching an action](/images/book/F1201.png "Caching an action")
39+
![Caching an action](http://www.symfony-project.org/images/book/1_4/F1201.png "Caching an action")
4040

4141
For instance, consider a `user/list` action that returns the list of all users of a website. Unless a user is modified, added, or removed (and this matter will be discussed later in the "Removing Items from the Cache" section), this list always displays the same information, so it is a good candidate for caching.
4242

@@ -96,7 +96,7 @@ Chapter 7 explained how to reuse code fragments across several templates, using
9696

9797
Figure 12-2 - Caching a partial or component
9898

99-
![Caching a partial or component](/images/book/F1202.png "Caching a partial or component")
99+
![Caching a partial or component](http://www.symfony-project.org/images/book/1_4/F1202.png "Caching a partial or component")
100100

101101
For instance, Listing 12-4 shows how to edit the `cache.yml` file to enable the cache on a `_my_partial.php` partial located in the `user` module. Note that the `with_layout` setting doesn't make sense in this case.
102102

@@ -141,7 +141,7 @@ Action caching applies to only a subset of actions. For the other actions--those
141141

142142
Figure 12-3 - Caching a template fragment
143143

144-
![Caching a template fragment](/images/book/F1203.png "Caching a template fragment")
144+
![Caching a template fragment](http://www.symfony-project.org/images/book/1_4/F1203.png "Caching a template fragment")
145145

146146
For instance, you may have a list of users that shows a link of the last-accessed user, and this information is dynamic. The `cache()` helper defines the parts of a template that are to be put in the cache. See Listing 12-5 for details on the syntax.
147147

@@ -485,7 +485,7 @@ The last number on the right side of the debug toolbar is the duration of the re
485485

486486
Figure 12-4 - Web debug toolbar for pages using caching
487487

488-
![Web debug toolbar for pages using caching](/images/book/F1204.png "Web debug toolbar for pages using caching")
488+
![Web debug toolbar for pages using caching](http://www.symfony-project.org/images/book/1_4/F1204.png "Web debug toolbar for pages using caching")
489489

490490
The debug toolbar also shows the number of database queries executed during the processing of the request, and the detail of the durations per category (click the total duration to display the detail). Monitoring this data, in conjunction with the total duration, will help you do fine measures of the performance improvements brought by the cache.
491491

@@ -501,7 +501,7 @@ When the web debug toolbar is enabled, the cached elements are identified in a p
501501

502502
Figure 12-5 - Identification for cached elements in a page
503503

504-
![Identification for cached elements in a page](/images/book/F1205.png "Identification for cached elements in a page")
504+
![Identification for cached elements in a page](http://www.symfony-project.org/images/book/1_4/F1205.png "Identification for cached elements in a page")
505505

506506
HTTP 1.1 and Client-Side Caching
507507
--------------------------------

0 commit comments

Comments
 (0)