Difference between #1 and #2 of
Inline views, write less

Revision #2 has been created by Firebreaker on Jun 5, 2013, 7:08:58 AM with the memo:

Summary text
« previous (#1)

Changes

Title unchanged

Inline views, write less

Category unchanged

Tips

Yii version unchanged

Tags unchanged

active record, URL, model, views

Content changed

[...]
public function url($options=array(),$defaultView='view')
{
if($this->slug!=null)
return
 array($defaultView,array('slug'=>$this->slug),$options); else return array($defaultView,array('id'=>$this->id),$options); } } ```
3 0
3 followers
Viewed: 11 918 times
Version: Unknown (update)
Category: Tips
Written by: Firebreaker
Last updated by: Firebreaker
Created on: Jun 3, 2013
Last updated: 11 years ago
Update Article

Revisions

View all history