Skip to content
Browse files

added url and url-id to __map options

  • Loading branch information...
1 parent a9cb2e9 commit 1aaad670a3335e81ad48634ffa55f63fca6f5166 @KellyLSB KellyLSB committed Apr 16, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 library/model.php
View
6 library/model.php
@@ -112,6 +112,12 @@ public function __map($return = 'map') {
case 'bundlename':
return $this->_bundle . '.' . $this->_name;
break;
+ case 'url':
+ return $this->_bundle . '/' . $this->_name;
+ break;
+ case 'url-id':
+ return $this->_bundle . '/' . $this->_name . '/' . $this->id;
+ break;
case 'map':
default:
return $this->_bundle . '.' . $this->_name . ':' . $this->id;

0 comments on commit 1aaad67

Please sign in to comment.
Something went wrong with that request. Please try again.