TC
Twill CMSgeetpurwar

Creating Posts/Models programatically from controller.

Hi, Is it possible to create blocks/modules/model/repeater content programatically from controller or any function. Please advise. Thanks.
I
ifox326d ago
Hi, definitely possible. The models/tables structure is quite simple, so you can do this in different ways: - writing directly to DB - using eloquent models - using Twill's module repository class, by passing the same structure than what the browser is sending when you submit a form in Twill
G
geetpurwar324d ago
May I request for an example. I have created a Block Editor (Slider.php) with Title and Image that we are using for creating page. How do I create page for eloquent model or function using this Block (Slider.php)