Cookbook 33: Front-end and Back-end setup for Extention

I followed the instruction as per the cookbook, with one difference as in http://www.yiiframew…pic,1921.0.html for the config files.

The configs are in

/config

    main.php

    backend.php

Now, I m using JUI extension, I see no reason why it needs to be duplicated . How can I avoid this. Any help appreciated. Thanks. 

You may put it under protected/extensions

qiang,

When I put the extension folder under the back-end it works.

The moment I take it out I get an error. I am not sure where do I tell the back-end application to seek the protection/extensions.

I tried this - but still did not work:

    'import'=>array(

        'tenant.models.*',

        'tenant.components.*',

        'application.models.*',

        'application.components.*',

        'application.extensions.*',

    ),

Here is the error I got:

YiiBase::require(G:home/www/yii_learn/protected /tenant/extensions/juiEJqueryUiInclude.php) [<a href=‘yiibase.require’>yiibase.require</a>]: failed to open stream: No such file or directory

The extension path must be ApplicationBasePath/extensions, (i.e., the path aliased as application.extensions)

Thanks you,

As per your instruction I tried 'application.extensions.jui', and it works. Thank you once again.