phpist

Untitled

Oct 27th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. ( ! ) Fatal error: Trait 'PHP7\Seo' not found in /var/www/php.xxx/PHP7/Page.php on line 10
  2.  
  3. Page.php
  4.  
  5.  
  6. <?php
  7. namespace PHP7;
  8. use \PHP7\Seo as Seo;
  9. use \PHP7\Tag as Tag;
  10.  
  11. // Класс страницы
  12. class Page
  13. {
  14. // Подключаем трейты
  15. use Seo, Tag;
  16.  
  17. // заголовок
  18. protected $title;
  19. // содержимое
  20. protected $content;
  21. // Конструктор класса
  22. public function __construct($title = '', $content = '')
  23. {
  24. $this->title = $title;
  25. $this->content = $content;
  26. }
  27. }
  28. ?>
Advertisement
Add Comment
Please, Sign In to add comment