Ticket #750 (closed Patch: fixed)
Default 'welcome' controller isn't working in latest SVN version
| Reported by: | rawb | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.2 |
| Component: | Core | Version: | SVN HEAD |
| Keywords: | Cc: |
Description
The default "welcome" controller appears to be broken in the latest trunk due to the switch to Template_Controller. It's setting the template to 'kohana/template', and then trying to load 'views/welcome' (which is pretty much the same template) in the 'content' variable. I fixed this by:
1. Copying views/welcome.php to system/views/kohana/template.php
2. Removing views/welcome.php
3. Changed controllers/welcome.php to use 'views/welcome_content' for the 'content' variable
I've attached a patch of the changes (to welcome.php and template.php) that fixed it for me. I've only been using Kohana for about a week, so I'm not sure if this is the best way to fix this problem. :)
