Monday, March 7, 2022

[FIXED] how to integrate hebo html template into yii framework

Issue

I am new to using yii framework. I do not have much time to learn it thoroughly. I have found one html5 web application template for yii named hebo. But i am not able to make it work by copying that template into yii folder.

Please anyone instruct me with the steps to integrate any external (not created using yiic) html templates into yii.


Solution

  • Create a new yii project

  • Copy the hebo folder into webroot/themes and in your configuration file you have to set the param theme to hebo

here is an example from one of my project:

return array(
   'basePath' => dirname(__FILE__) . DIRECTORY_SEPARATOR . '..',
    'name' => 'myProject',
    'theme' => 'version_3',//so in webroot/themes I have a folder named "version_3"
    'language' => 'fr',
  • Then you'll have to put your view in the theme folder ( WebRoot/themes/hebo/views)


Answered By - darkheir

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.