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

CURD - please help make this work #21

Open
RobertMassart opened this issue Jun 2, 2020 · 6 comments
Open

CURD - please help make this work #21

RobertMassart opened this issue Jun 2, 2020 · 6 comments

Comments

@RobertMassart
Copy link

Added event panel into atk-wordpress-demo:

Error: Call to a member function add() on null (in C:\www\peernet\html\wp-content\plugins\atk-wordpress-demo\vendor\atk4\ui\src\View.php:1187)

Code:
//Executor may already had been add to layout. Like in CardDeck.
if (!isset($this->app->html->elements[$ex->short_name])) {
$ex = $this->app->html->add($ex)->setAction($action);
}

is failing because $this->app->thml is null.

Adding check for null does not help , you just get this error instead:

Critical Error:
atk4\ui\Exception Action must be set prior to assign trigger.

I really need CURD working, just not sure what I need to do to get it functional.

@ibelar
Copy link
Owner

ibelar commented Jun 2, 2020

@RobertMassart - Which version are you using? if you are on latest develop, you might encounter some problems because atk-wordpress develop branch use atk4/ui v2.0.4 which is not stable enough at this point. I am waiting for a stable 2.1 from atk4/ui to update this repository. Meanwhile, you should use atk-wordpress v1.5 which uses atk4/ui v1.7 and should be working correctly.

@RobertMassart
Copy link
Author

RobertMassart commented Jun 2, 2020 via email

@RobertMassart
Copy link
Author

RobertMassart commented Jun 2, 2020 via email

@RobertMassart
Copy link
Author

RobertMassart commented Jun 2, 2020 via email

@RobertMassart
Copy link
Author

RobertMassart commented Jun 3, 2020 via email

@ibelar
Copy link
Owner

ibelar commented Jun 3, 2020

@RobertMassart - Understand the frustration. I will try to get back at it when atk4/ui v2.1 is finally release and when I can find time for it. I will let you know when ready for sure.

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

2 participants