0

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>

`

2
Contributors
1
Reply
13
Views
4 Years
Discussion Span
Last Post by gabrielcastillo
0

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');
}
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.