Yii Framework Forum: configuring extenstion dir - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

configuring extenstion dir Rate Topic: -----

#1 User is offline   Nayjest 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 05-June 10
  • Location:Ukraine, Kiev

Posted 28 October 2010 - 04:27 AM

It would be nice to add posibility to configure path to extensions directory without redefining __create() method of application.
Problem is that in this case:
$app=Yii::createWebApplication($config);
Yii::setPathOfAlias('ext',$pathToExt);
$app->run();

Yii autoload can't find classes.
Helps only using Yii::import('ext.path.ClassName') necessary with ClassName, but it isn't good.

Using other path alias for dir with extensions isn't good because some extensions use path aliases with 'ext.'
Web-superman. My blog about web development (russian).
0

#2 User is offline   Nayjest 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 85
  • Joined: 05-June 10
  • Location:Ukraine, Kiev

Posted 28 October 2010 - 05:03 AM

Setting application.extensionPath via config instead of using Yii::setPathOfAlias('ext',$pathToExt) helps, all works fine now.
Web-superman. My blog about web development (russian).
0

#3 User is offline   donal 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 27
  • Joined: 12-October 10

Posted 28 October 2010 - 10:52 PM

:mellow:
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users