开发者

Autoload class with php with an ajax request

开发者 https://www.devze.com 2023-03-30 00:40 出处:网络
I have a function for autoloading my classes in the header file. So when my page loads, i am able to autoload my开发者_Python百科 class and use it in the body of my code. But i have a ajax request whi

I have a function for autoloading my classes in the header file. So when my page loads, i am able to autoload my开发者_Python百科 class and use it in the body of my code. But i have a ajax request which reloads only a part of my page. At this time the autoload function is not working cause its in my header. How do i make the autoload class to work while i am reloading only a part of my page.

Any help is appreciated. Thanks.


Add autoloader to the script that processes your AJAX request.

Remember: there is no such thing as 'reloading only a part of my page'. Each request is handled entirely on its own.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号