I have created my first Yii application. I used Gii Model generator for creating models.For example, I created my Model Class name as ProductManager and in the CURD generator the Controller ID as productManager. Everything was working fine in my XAMPP server, but when I uploaded it to my online linux hosting.
I got the php include file error. It is looking for models/Productmanager.php, but when I changed the file name from ProductManager.php to Productmanager.php there is error in another model file.
Also I have to use the Camel case URL name for Controllers in the online server. Can anyone please explain how to configure the Gii , so that it will work without any problems in linux hosting servers.
I have created my first Yii application. I used Gii Model generator for creating
Share
Gii uses the name of your table to create the model name. Did you name your table productmanager or product_manager? The latter will allow Gii to automatically create a model with the name ProductManager (CamelCase), else it will be Productmanager.
Hope this helps.