Skip to content

PHP code snippet – How to call a function in model from a controller?

ModelName::FunctionName(Parameters);

make sure the function in the model is static
See also  TypeScript code snippet - How to label points in scatter plot in python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.