Giter Site home page Giter Site logo

Comments (7)

borodulin avatar borodulin commented on August 23, 2024

Hi zhang-hang!
These CRUD were generated by the conquer/gii-modal.
I recommend you not to use these CRUD, and generate your own for the conquer\oauth2\models\Client model. So, you will be able to customize access and views for your needs.

from yii2-oauth2-server.

borodulin avatar borodulin commented on August 23, 2024

But if you still want to use these CRUD, include conquer/gii-modal in you composer.json.

from yii2-oauth2-server.

zhang-hang avatar zhang-hang commented on August 23, 2024

Thanks for your reply,

I just quickly install yii2-oauth2-server functionality. do not want to use CRUD.

Because, see the directory has oauth2 / views / client / _form.php, create.php, index.php, view.php, update.php files. I was lazy and would like to be able to use it directly.

Ha ~ :-)

from yii2-oauth2-server.

zhang-hang avatar zhang-hang commented on August 23, 2024

\vendor\conquer\oauth2\views\client\index.php

conquer\gii\GiiAsset::register($this);

What does this mean? Must be used in gii in it?

from yii2-oauth2-server.

borodulin avatar borodulin commented on August 23, 2024

These assets makes the Modal dialogs functionality. You should add "conquer/gii-modal": "*" in your composer.json, then run php composer.phar update.
When you click on view or edit button link in the GridView actions column, modal dialog will be opened.

from yii2-oauth2-server.

zhang-hang avatar zhang-hang commented on August 23, 2024

OK, I have installed "conquer / gii-module", but still can not access \vendor\conquer\oauth2\views\client\index.php , Only one empty page ... 🎱

from yii2-oauth2-server.

borodulin avatar borodulin commented on August 23, 2024

I see. There is not implemented layout...
So, just generate CRUD for the conquer\oauth2\models\Client in your application, it's a simple operation and your lazyness will not suffer. I will remove these controllers and views, to not confuse developers. There is no need to include such functionality in the extension, because views and user access depends of the business logic of the application.

from yii2-oauth2-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.