Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Tag Model #141

Closed
sergeyklay opened this issue Mar 12, 2013 · 3 comments
Closed

Tag Model #141

sergeyklay opened this issue Mar 12, 2013 · 3 comments
Assignees

Comments

@sergeyklay
Copy link
Contributor

We have some problems with Tag Model.

Code in line 115:

   // Model specefic links; view, edit, delete url's.
   if ($field === 'url'  OR $field === 'link')
      return ($path = Path::load($this->rawurl) ) ? $path['alias'] : $this->rawurl;

calls $this->rawurl:

  if ($field === 'rawurl')
    return Route::get($this->type)->uri( array('action' => 'tag', 'id' => $this->id));

but we don't have requested route post

@sergeyklay
Copy link
Contributor Author

If I go to the address that the exception occurs admin/tags

Kohana_Exception [ 0 ]: The requested route does not exist: post

in SYSPATH/classes/kohana/route.php file:

public static function get($name)
{
        if ( ! isset(Route::$_routes[$name]))
        {
            throw new Kohana_Exception('The requested route does not exist: :route',
                array(':route' => $name));
        }

        return Route::$_routes[$name];
}

@sandeepone
Copy link
Member

Recently i removed some unused code regarding to Post, needs revision i think. I'll do it immediately.

@ghost ghost assigned sandeepone Mar 12, 2013
@sergeyklay
Copy link
Contributor Author

done

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants