I need help Any Body can do this? |
[eluser]Shahgeb[/eluser]
I am facing problem since last 24 hours and still i am unable to do this. The problem that i am facing is “A PHP Error was encountered Severity: Notice Message: Only variable references should be returned by reference Filename: helpers/modules_helper.php Line Number: 43 “ this happen when i was implementing given example on codeignitor.com/wiki/ with link “click here” on this page and code also there and i am posting link here too. http://codeigniter.com/wiki/Modular_Extensions_-_HMVC/ pleas again i am posting problem here help me.. “A PHP Error was encountered Severity: Notice Message: Only variable references should be returned by reference Filename: helpers/modules_helper.php Line Number: 43 “ and my classes code here. application/controller/default_controller.php: <?php class Default_controller extends Controller { function Default_controller() { parent::Controller(); $this->load->model('default_model'); //$this->load->language('home'); } function _remap($value) { $this->load->helper('Modules'); switch ($value) { case 'index': echo modules::run('home_page'); break; default: echo "do nothing"; break; } // $this->load->view('blogview' , $data); } } ?> module here application/modules/home.php <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Home extends Module { function Home() { parent::Module(); $this->load->model('blogmodel', 'Blog'); //modules::debug($this); } function index($data) { $data['hotpick_1'] = $this->load->view('hot_pick'); return $this->load->view('home_content', $data); } } ?> application/modules/home_page.php <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Home_page extends Module { function Home_page() { parent::Module(); } function index($data) { $data = array( 'home_page_content'=>modules::run($this->_parent.'/modules/'.get_class($this).'/modules/'.'home_page_a/home_page_a',$data) ); return $this->load->module->view($this->_parent.'/modules/'.get_class($this).'/home_page',$data,true);//$this->load->module->view('home_content', $data, TRUE); } } ?> This is all about my problem |
Messages In This Thread |
I need help Any Body can do this? - by El Forum - 05-14-2008, 04:05 AM
I need help Any Body can do this? - by El Forum - 05-14-2008, 04:22 AM
I need help Any Body can do this? - by El Forum - 05-14-2008, 05:04 AM
I need help Any Body can do this? - by El Forum - 05-14-2008, 05:10 AM
I need help Any Body can do this? - by El Forum - 05-14-2008, 05:19 AM
I need help Any Body can do this? - by El Forum - 05-14-2008, 05:26 AM
I need help Any Body can do this? - by El Forum - 05-14-2008, 05:42 AM
|