[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jfw] Access config in Model

Hello Everyone,

I'm new in Joomla framework. In Joomla Framework I want to access config file in the model file. 

I have tried it by following ways, but I'm not able to access it. 

1. $this->getApplication()->config->get();
2. $this->getContainer()->config->get();

And one more question is, how to access getApplication(function in Model file?

Framework source code: https://github.com/joomla/joomla-framework
Visit http://developer.joomla.org for more information about developing with Joomla!
You received this message because you are subscribed to the Google Groups "Joomla! Framework Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-framework+unsubscribe AT googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-framework.