Blame view

src/lib/seo_url.php 834 Bytes
1ea3b987   Administrator   maby first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  <?php

  

  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

  

  namespace

  {

  

      class seo_url extends \core

      {

          private  $link;

  

          function getLink()

          {

              $link = $_SERVER['REQUEST_URI'];

              $link = explode("/", $link);

              $this->link = array_pop($link);

              return $this->link;

          }

  

          function getSeoData()

          {

              $link = $this->getLink();

              $data = $this->models->getSeoInfo()->getByUrl($link);

              return $data;

          }

  

      }

  }

  

  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////