I am using a plugin, So i have defined some functions in model of plugin. So how to call those in main controller but not in plugin controller.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use:
This will load:
The bolded part (DebugKit.ToolbarAccess) is the so-called plugin syntax.
Now in your controller you should be able to access the ToolbarAccess model like this (example):
You can also try
$this->loadModel(DebugKit.ToolbarAccess);from the controller.