V
V
vlad_lutsky2017-10-19 21:14:55
Laravel
vlad_lutsky, 2017-10-19 21:14:55

How to call a plugin function?

The essence of the question is how to access the user plugin function for october cms. data update function - I want users to be able to update the data themselves.
data update code

{{ form_ajax('user::onUpdate', { model: user }) }}

                            <div class="form-group">
                                <label for="accountName">Full Name</label>
                                <input name="name" type="text" class="form-control" id="accountName" value="{{ form_value('name') }}">
                            </div>
                        
                            <div class="form-group">
                                <label for="accountEmail">Email</label>
                                <input name="email" type="email" class="form-control" id="accountEmail" value="{{ form_value('email') }}">
                            </div>
                        
                            <div class="form-group">
                                <label for="accountPassword">New Password</label>
                                <input name="password" type="password" class="form-control" id="accountPassword">
                            </div>
                        
                            <div class="form-group">
                                <label for="accountPasswordConfirm">Confirm New Password</label>
                                <input name="password_confirmation" type="password" class="form-control" id="accountPasswordConfirm">
                            </div>
                        
                            <button type="submit" class="btn btn-default">Save</button>
                        
                        {{ form_close() }}

error
"AJAX handler 'user::onUpdate' was not found."

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vlad_lutsky, 2017-10-19
@vlad_lutsky

Everything turned out to be quite simple - just connect the component.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question