Hai everybody,

i have two different layout.
this admin layout meta tag not display in my meta title,description..
what is the problem
and
i addded my action file inside,but not diplayed.

plz help me.

    public function executeContactus(sfWebRequest $request)
    {
    $this->setLayout('adminlayout');
    $response = $this->getResponse();
    $response->setContentType('text/html');
    $response->addMeta('title','Contact Us – Give us your feedback, comments and questions');
    $response->addMeta('title','Talk to us. We would love to hear from our users on how we can improve to provide the best plan sharing experience.');

    }


<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name = "viewport" content = "width = 1080" />

        <meta name="title" content="symfony project" />
        <meta name="description" content="Social Network  sharing." />
        <meta name="keywords" content="S Catalog, Reservation, Advertisement" />
        <meta name="language" content="en" />
        <meta name="robots" content="index, follow" />

        <link rel="stylesheet" type="text/css" href="../css/reset.css"/>
        <link rel="stylesheet" type="text/css" href="../css/admin.css"/>

        <link rel="shortcut icon" href="/favicon.ico" /> 
        <script language="JavaScript" type="text/javascript" src="../js/jquery.min.js"></script>





        <script>



        </script>

        </head>  



    <body>

`

Re: how to set different meta title in different pages? 80 80

What are you asking? Are you asking about the addMeta() functions? If you are, look at what you are doing? You are overwriting the first function with the second. If you need to have them displayed on two different pages try adding some logic.

if( is_some_page() ){
$response->addMeta('title','something');
}else{
$response->addMeta('title','something');
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.