msruby64 Posted August 11, 2017 Share Posted August 11, 2017 I've been able to create static pages through the SiteController using the ViewAction class. One thing I have not been able to figure out is whether it's possible to have static views using the Yii convention for views of lowerCamelcase but have the url have hyphens in it. For example, if I name the static view file designProcess.php, then www.domain.com/designProcess will display the view file properly. However, if I want to use www.domain.com/design-process, then I have not been able to figure out a way to route that to display the designProcess.php file. I can rename the view file design-process.php, but that goes against the Yii naming convention. I realize I could create a function actionDesignProcess() in the SiteController and with the proper rule in the urlManager, route design-process to actionDesignProcess(), but I'd prefer to use the ViewAction class for static pages. Any help would be appreciated. Thanks, Mitchell Link to comment Share on other sites More sharing options...
Recommended Posts