Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[my_base_url]/versioning doesn't exists #7

Open
fdo36 opened this issue Mar 27, 2017 · 0 comments
Open

[my_base_url]/versioning doesn't exists #7

fdo36 opened this issue Mar 27, 2017 · 0 comments

Comments

@fdo36
Copy link

fdo36 commented Mar 27, 2017

I put my base url + /versioning and it throw me the 404 error.

My base url is "http://localhost/cms/web/". I have enabled the pretty url in the urlManager. So I try to go to "http://localhost/cms/web/versioning" and it doesn't work.

I've put those lines in web.php and console.php:


'bootstrap' => [
		...
		'amilna\versioning\components\Versioning',
		...
    	],   
'versioning' => [
		'class' => 'amilna\versioning\Module',
		'userClass' =>  'dektrium\user\models\User',//'common\models\User',            
		'defaults' => ["create"=>"create","view"=>"view"],
		//'onroutes' => ['yes/product','blog/post/update'], /* example to apply versioning on certain routes only */
		//'onmodels' => ['amilna\blog\models\BlogCatPos'], /* example to apply versioning on certain models only */
	]

Is there any examples with more details?

@fdo36 fdo36 changed the title http://localhost/cms/web/versioning doen't exists [my_base_url]/versioning doen't exists Mar 27, 2017
@fdo36 fdo36 changed the title [my_base_url]/versioning doen't exists [my_base_url]/versioning doesn't exists Mar 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant