ameed
(Ameed Farabi)
September 8, 2011, 6:51am
1
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.
mdomba
(Maurizio Domba Cerin)
September 8, 2011, 7:14am
2
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
ameed
(Ameed Farabi)
September 8, 2011, 8:50am
3
mdomba:
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.
Please help.
PS: Giving this error only if I have this on CGridview widget and works fine on other pages !!!