0

I want to create external php file with function in it. How to call the function from controller ?

Thank you

1 Answer 1

1

if you create php comman function file so create your file in application/library folder and add your file in autoload.php in library and you can use any ware

Sign up to request clarification or add additional context in comments.

2 Comments

I did it but i receive error csrf_token. SyntaxError. Unexpected token in JSON at position ...
Hi, i know why error, it's because i tried to echo in function from external php. It's hit security csrf token issue. Thank you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.