Skip to main content
7 events
when toggle format what by license comment
Aug 11, 2017 at 20:29 comment added Nagarjun JComponentHelper::getParams('com_mycomponent'); should never return null. So either you are calling different model or the populateState method is not getting called. Try to call this method in your __construct constructor of your model.
Aug 10, 2017 at 21:21 comment added chavab_1 I tried that with your revised code but I'm still getting the same error message. After reading @Terry Carter 's response You think it might be because I don't have any global parameters set up for my component? My problem was that I was trying to make my component work like com_component. It has global parameters that it's referencing in its template. I was trying to do the same thing but I realized I can't access its parameters. Thanx for your help.
Aug 10, 2017 at 13:41 history edited Nagarjun CC BY-SA 3.0
deleted 44 characters in body
Aug 10, 2017 at 13:34 comment added Nagarjun See my edited code. Use JComponentHelper::getParams('com_mycomponent'); to get params instead
Aug 10, 2017 at 13:34 history edited Nagarjun CC BY-SA 3.0
added 29 characters in body
Aug 9, 2017 at 16:32 comment added chavab_1 Yeah, I had tried that before but my populateState method was a bit different. I tried your code and I still get the same results. Fatal error: Call to a member function get() on null And it points to $this->params = $this->state->get('params') Any other suggestions? Thanx
Aug 9, 2017 at 8:10 history answered Nagarjun CC BY-SA 3.0