how can i get the relative path(basePath) in config file "main.php" ?
The problem: i need configure the “widgetFactory” themeurl. I can’t use /css/jqueryui because the correct path is /boletim/css/jqueryui(is not in root directory, but this can change in future).
Not is possible use Yii::app()->getXXXXX because i think the application is not ready.
You can consider changing the widgetFactory properties at a later stage.
E.g in the Gii-generated base controller
public function init()
{
// show the widgetFactory object
echo '<pre>'; print_r(Yii::app()->widgetFactory); echo '</pre>';
}
Edit:
I totally forgot about other ways to override factory properties like skins and createWidget calls.
(Really have to do some Yii programming soon.)
Edit 2:
Read your first post again. You are probably looking for a url relative to the application (assuming that with boletim you mean the application directory)
This thread by Eddie Parker introduces a solution for selecting jui themes in a common place for all jui widgets. I think it could be enhanced with the possibility to select themeUrl and others.
Then this could be specified in config to be evaluated on instantiation of widgets