Yii Framework Forum: SiteControll alias path to module - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

SiteControll alias path to module create alias to use in URI for module? Rate Topic: -----

#1 User is offline   WAS 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 17-January 15
  • Location:Seattle, WA

Posted 03 May 2015 - 11:39 PM

I'm trying to decipher Path Alias and Namespace (Documentation) but it's really confusing for me.

I use HumHub which customizes a bit of Yii but not too much. But some methods are a bit confusing from Yii documentation. One thing I can't figure out is how to create a new url path for a module. Currently modules are based on their module ID for paths, and I would like to create a alias within the module to use instead of the ID. Is this possible?

For example, here is the ViewController.php for a HumHub application. it relies on the ID of the module to use as the path, so you end up with mysite.com/custom_pages/ID which is very unattractive on a front-end stand point.
0

#2 User is offline   WAS 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 13
  • Joined: 17-January 15
  • Location:Seattle, WA

Posted 08 May 2015 - 06:47 PM

Can anyone help explain this further please?
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users