My site was working all fine on localhost but since when i have uploaded. It is showing an error
include(CHTML.php) [<a href=‘function.include’>function.include</a>]:
failed to open stream: No such file or directory
I am searching it since long and did many things for it… Like importing ‘system.web.helpers.*’ in main.php,Still its not working.
Please somebody help and do help in detail, am new to YII.
Thanks in advance.
(Maurizio Domba Cerin)
Could be the problem with case-sensitivity… the proper case for this class is CHtml… not CHTML…
if you use CHTML in your code… Yii autoloader will look for the file/class CHTML.php… on windows this will work… but on linux you will get an error… as there is no file CHTML.php but CHtml.php in Yii
Thanks alooooooott brother…Love you…It works !!
Hey see my casing is correct.
CHtml.php) [<a href=‘function.include’>function.include</a>]: failed to open stream: No such file or directory
On linux giving this error. But working fine on windows.
PS: Giving this error only if I have this on CGridview widget and works fine on other pages !!!