Hi,
I have uploaded a theme and all seems to be going well. All the css, images, and views are beautifully preceding the default MW functionality.
I now am faced with a slightly more complex requirement. I would like a model function to take preference over the default function.
As an example. I want to make the GravatorUrl to have a difference default thumbnail. So, i need to change the getGravatarUrl function in \apps\customer\models\Customer. I obviously do not want to amend it there. I would like to amend it in my theme directory.
Firstly, is it possibly to only have that single function amended in the theme directory. Secondly, how do I call that from the theme run function. Is it something like: Yii::import('theme-mytheme.models.*');
I have checked out Landond and blue advanced theme for help with this, but am a bit stuck!
I have uploaded a theme and all seems to be going well. All the css, images, and views are beautifully preceding the default MW functionality.
I now am faced with a slightly more complex requirement. I would like a model function to take preference over the default function.
As an example. I want to make the GravatorUrl to have a difference default thumbnail. So, i need to change the getGravatarUrl function in \apps\customer\models\Customer. I obviously do not want to amend it there. I would like to amend it in my theme directory.
Firstly, is it possibly to only have that single function amended in the theme directory. Secondly, how do I call that from the theme run function. Is it something like: Yii::import('theme-mytheme.models.*');
I have checked out Landond and blue advanced theme for help with this, but am a bit stuck!