<img source="captcha_code.php" not working in phalcon ???

In view I have code <img id="captcha_code" source="captcha_code.php" /> create captcha with ajax and captcha_code.php file not found press f12 in browser. What problem? Can you help me, please!

Where is your captcha_code.php file located?? try renaming it to a .phtml or.volt file

edited 19d ago

file in public/files and public folder - files folder create by phalcon tool! .phtml and .volt not working too!

edited 19d ago

file in public/files and public folder - files folder create by phalcon tool! .phtml and .volt not working too!

Try registering captcha_code.php as a service (object/Class) and use it via the Dipendecy Injection to enable you using it anywhere in your application. using this method, you will have to change its location

First, the img tag of html has nothing to do with Phalcon

Second is <img src="..."> insteand of <img source="">

Good luck