Yii Framework Forum: Troubles with aliases - Yii Framework Forum

Jump to content

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

Troubles with aliases Rate Topic: -----

#1 User is offline   frantic 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 172
  • Joined: 01-March 10
  • Location:Saint-Petersburg

Posted 21 June 2010 - 10:45 AM

Hi to all!

I have some extensions used by only one module, so I want to place ones in module directory. But in this case I have an exception:
Alias "modules.admin.extensions.trash.Trash" is invalid. Make sure it points to an existing directory or file.


The piece of code from the view file:
<?php $this->widget('modules.admin.extensions.trash.Trash',array(


If to place the extesion to root path with other extensions all is working:
<?php $this->widget('ext.trash.Trash',array(


but portability of the module will be break :huh:
0

#2 User is offline   andy_s 

  • Random Member Title
  • Yii
  • Group: Moderators
  • Posts: 1,526
  • Joined: 22-June 09
  • Location:Russia, Kostroma

Posted 21 June 2010 - 11:18 AM

You should use "application.modules.admin.extensions.trash.Trash" or "admin.extensions.trash.Trash".
1

#3 User is offline   frantic 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 172
  • Joined: 01-March 10
  • Location:Saint-Petersburg

Posted 21 June 2010 - 11:41 AM

Thanks :)
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