Warning - 2011-10-29 21:47:11 --> Fuel\Core\Request::execute - The Topbox\Controller_Topbox::after() method should accept and return the Controller's response, empty return for the after() method is deprecated. Warning - 2011-10-29 21:47:11 --> Fuel\Core\Request::execute - The Topbox\Controller_Topbox controller should return a string or a Response object, support for the $controller->response object is deprecated.The module is very simple:
<?php namespace Topinfo; //================================= class Controller_Topinfo extends \Controller{ // public $response; //================================= public function action_index() { return 'action_index()'; } //================================================= public function after($response) { return $response; } }
<?php namespace Topbox; //================================================= Class Controller_Topbox extends \Controller{ //================================================= public function action_index() { $this->render('_topbox'); } //================================================= public function after($response) { return $this->response; } }
Jelmer Schreuder wrote on Sunday 30th of October 2011:Not sure what is happening but all that is not true: Hi Jelmer, Many thanks for your response. http://fuel.johns-jokes.com/modules/single/topinfo.html I am trying to build the above app to take full advantage of Modules. The application above uses Fuel 1.1 Dev As you may see from the Topinfo module the size of the log file is zero bytes. The bottom of the displayed page shows the source for Module Topinfo. The update to Fuel 1.1 RC1 has not been easy. The old code produced numerous errors and warnings. I am gradually working my way clearing the log file. The source provided does actually work for all Modules Topbox, Topinfo, Menuvert, etc and does not produce any errors or warnings. I appreciate your comments about "all that is not true" and would be grateful if you could supply the following using the latest Fuel Version 1.1 RC1 1. instantiate a Module in a Class
2. create the Module and Module View
3. call the Module in a Class View By the way I previously tried using Request, View and ViewModel and they all produced errors.
It looks like you're new here. If you want to get involved, click one of these buttons!