官术网_书友最值得收藏!

  • Mastering Symfony
  • Sohail Salehi
  • 198字
  • 2021-07-16 11:28:55

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We can inherit other templates through the use of the extends() tag."

A block of code is set as follows:

public function aboutAction($name)
{
  $em = $this->container->get('doctrine')->getManager();
  $repo = $em->getRepository('ProjectBundle:Assignee');
  $photographer = $repo->findOneBy(array('name' =>$name));
  return $this->render('ProjectBundle:Default:about.html.twig',
                        array('Assignee' =>$Assignee));
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

public function aboutAction($name)
{
  $em = $this->container->get('doctrine')->getManager();
  $repo = $em->getRepository('ProjectBundle:Assignee');
 $photographer = $repo->findOneBy(array('name' =>$name));
  return $this->render('ProjectBundle:Default:about.html.twig',
                        array('Assignee' =>$Assignee));
}

Any command-line input or output is written as follows:

app/console doctrine:fixtures:load --append

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "in Symfonyprofiler page click on the Security button to see if the current user is authenticated".

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 旺苍县| 太仓市| 望城县| 和政县| 阿拉尔市| 宜黄县| 三都| 砚山县| 兴安盟| 塔河县| 赤壁市| 南溪县| 共和县| 永丰县| 景洪市| 秀山| 高密市| 绥宁县| 彭州市| 昆山市| 阜新市| 彰化县| 贵港市| 康定县| 临潭县| 烟台市| 金平| 莫力| 房产| 乐山市| 丰原市| 九台市| 黔江区| 余江县| 手游| 新巴尔虎右旗| 盐源县| 美姑县| 大理市| 峨眉山市| 施甸县|