3212 Posts in 847 Topics by 809 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 570 Views |
-
www.domain.com/USERNAME -> template question

8 March 2011 at 7:16am
hi,
I have a own controller to handle request like http://www.domain.com/USERNAME
For this request I call the UController:class UController extends Page_Controller
{public function init() {
parent::init();
}public function index() {
print_r($this->request);
return $this->renderWith("Page.ss");}
public function someaction() {
// no renderWidth, so no theme/template ???
}
}
If I call such a URL like http://www.domain.com/USERNAME the page is white, empty, without a template.
How can I set a own theme for such URLs which fits for all actions?thx
-
Re: www.domain.com/USERNAME -> template question

9 March 2011 at 3:57am
I did it this way:
public function handleAction($request) {
....
return $this->renderWith('U');
}... or are there other ways ... ?
| 570 Views | ||
|
Page:
1
|
Go to Top |

