I need to get theme's Default Title configuration value in my logo.phtml.
So after many searches, I'm using a bad way for do that! I'm using the Object Manager Instance directly in template file!
app\design\frontend\MyVendor\myTheme\Magento_Theme\templates\html\header\logo.phtml:
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$_pageConfig = $objectManager->get('Magento\Framework\View\Page\Config');
$_metaTitle = strip_tags($_pageConfig->getTitle()->getDefault());
And it works!
But how can I get anything from Configuration Values in overridden templates in proper way like Block Class or Layout stuff?!
By the way, I'm using Magento v2.1.9 with PHP 7.0.24.
var and pub/static folderand usedphp bin/magento setup:upgradeandphp bin/magento cache:flush. But nothing changed! – Mehran Zarei Nov 10 '17 at 17:49