Jump to content

Admin controller actions


cikcak
 Share

Recommended Posts

Hey friends,

 

could someone explain me how it works? For example, I have made admin controller where I print data from database. I used fields list to take variable from database and its automatically generate a table.

 

I add additional functions:

public function renderList()
    {
        $this->addRowAction('duplicate');
        $this->addRowAction('delete');
 
        return parent::renderList();
    }

And also see - ADD more function. But guys, how it works?

 

I tried to create a new class MlpdfOrders and add values to defination array (all variables from table where I put data).

 

Create a new public function renderForm() with a new form (all inputs to create a new row).

 

After I click add new I got error: Fatal error: Class 'MlpdfOrders' not found in localhost/ps/classes/controller/AdminController.php on line 1366

 

Is it any easier way to add a new row in database?

 

Thanks for any info

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More