Here is an example of how you can get root directory path. By ObjectManager: ... $this->_dir->getRoot(); // Output: /var/www/html/myproject.
確定! 回上一頁