I’m a little confused about the steps of the install. I dont like being a bother and normally I would just keep reading for days until I get it. I think I have read about everything there is this time Hopefully my questions will help another newbie down the road.
I’m on a newly created app just for the occasion.
[*]Put the distributive files into [protected/extensions] folder of your Yii application.
[*]Edit the config: add the AutoAdmin module and set urlManager rules (see below).
[*]Create any folder in [www] (your DocumentRoot) directory to serve as the point of entrance by web (e.g. /_admin/).
[*]Create module folder [autoadmin] in [protected/modules] directory using a standart Yii module structure, but without module class (which inherites CWebModule) - it will be included from the extension.
Unzipped yii-autoadmin_1.03.zip, renamed to autoadmin and moved it to protected/extensions.
Edit the config.
'basePath' => dirname(__FILE__).'/../modules/autoadmin',
'wwwDirName' => 'folder', //your DocumentRoot
// If removed, Gii defaults to localhost only. Edit carefully to taste.
and this is where I go wrong…
// autoadmin urls starts below here
'<controller:aa[a-z]+>/<action:\w+>' => 'autoadmin/<controller>/<action>',
'<controller:\w+>/foreign-<key:\w+>' => 'autoadmin/<controller>/foreign<key>',
//Module paths should be configured in a standart way
'/' => 'autoadmin/default/index',
'<controller:\w+>' => 'autoadmin/<controller>/index',
'<controller:\w+>/<action:\w+>' => 'autoadmin/<controller>/<action>',
I read that a separate config is recommended and I understand why. What is the best way to add a separate config file for AutoAdmin? I read up on it a little, seems to be straight forward enough.
hollowdevelopers.com/2011/05/14/yii-framework-separate-configurations-for-different-environments/ Only my second post, I can’t use links yet. Sorry.
Would this work?
Create a folder in your document root. For the sake of this, I just created ‘folder’ in the document root.
Create module folder autoadmin using the standard yii module architecture but without module class.
Step 4 - so it goes webroot/folder/protected/modules/autoadmin
Here is where the dumb question comes in. Do I generate an autoadmin module with gii or what do I put in here? It has me confused since step 1 I copied autoadmin to protected/extensions/autoadmin
I know this post is long. Thank you again for making the extensions and helping the new guy out. 6 months now I’ve been lurking and reading, not posted once for fear of asking them new guy questions. The gis extension has me all fired up though and excited. So i’m just gonna ask the new guy questions and get over my fear
Do you have a default install with autoadmin and yii archived somewhere so I could download it and see how it’s supposed to be structured?