Creating Admin Module

Hi,


http://localhost/proton_system/admin/default/index.php

i cant access my defult admin after creating module? why?

why when i create admin module and generate. i get only this file, and no other


modules\admin\AdminModule.php	 (diff)	overwrite 

modules\admin\controllers\DefaultController.php	 unchanged

modules\admin\views\default\index.php

Hi

did you add ‘admin’ in ‘modules’ block of config/main.php ?

did you modify the AdminModule.php ? by default gii generates the three above files

yes something like this:


'modules'=>array(

		// uncomment the following to enable the Gii tool

		

		'gii'=>array(

			'class'=>'system.gii.GiiModule',

			'password'=>'z',

			// If removed, Gii defaults to localhost only. Edit carefully to taste.

			'ipFilters'=>array('127.0.0.1','::1'),

		),

		'admin',

	),

no, i did not modify any thing

what is the error message ?

Also set YII_DEBUG = true to get more details

the used link is incorrect




http://localhost/proton_system/admin/default/index.php



why ‘.php’ ?

use




http://localhost/proton_system/admin/default/index



or




http://localhost/proton_system/admin/default



read the code in the AdminModule.php, you can set a default controller, and in controller u can set a default action

Rajith has right! I didn’t see the ‘.php’!

Now I think that everything is ok!

same problem, 404 NOT FOUND and why i get only 3 module file when i generate it. where should i get wrong?

Did you set UrlManager in protected/config/main.php ?

if it is true then disable that and check

http: //localhost/proton_system?r=admin/default/index

Hi,

please see this

http://www.benjaminlhaas.com/blog/installing-yii-users-and-rights-5-steps

it may be helpful…