Skip to main content

variables from frontend.php head

ClassiBase classifieds script Forums General help variables from frontend.php head

This topic contains 1 reply, has 1 voice, and was last updated by  ClassiBase 5 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #1339 Reply



    I’m trying to use the title and description from frontend.php but I’m not doing it well.
    The idea is to use a variable that stores the title and the description from frontend.php and the way I’m doing it is:
    $_site_description = View::escape(Config::option(‘site_description’));
    $data = $meta->title ? $meta->title : Config::option(‘site_title’);
    $data .= ‘ ‘;
    $data .= $meta->description ? $meta->description : $_site_description;
    However, at every page loaded, my $data is always the same, even though the title and description varies according with the page.
    Can you guide me, please?
    Thank you.

    #1424 Reply


    Where are you using this code? It will work only if used in frontend.php or files in /view/ folder of your theme.

    I can’t see any error in your code.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: variables from frontend.php head
Your information:

  • Classifieds Business Newsletter

    Get discounts and tips about growing your classifieds website.