Questions tagged [atk4]

Agile Toolkit is Object Oriented PHP framework for building rich Web UI

Agile Toolkit was refactored in 2016 and broken down into few modern PHP libraries which can be used independently or together:

ATK Data - Data Access abstraction framework designed for high-latency (Cloud) databases. Unlike ORM - uses extensions of individual database engines to run aggregation and calculations server-side reducing number of queries and amount of data exchanged. Supports SQL and NoSQL.

ATK UI - Object-oriented approach for building server-side Web UI. High level components make ATK UI very efficient to build Admin, ERP and other backend systems. Integrates and relies on ATK Data. Can be used in vanilla PHP or integrated into Wordpress or Laravel with 3rd party middleware.

ATK API - High-level framework for building RestAPI based on Zend Diactoros. Implements deep integration with ATK Data: type mapping, REST operations and authentication.

Other Resources

394 questions
41
votes
2 answers

Reasons to NOT use a PHP Framework?

I have always developed web software using a framework (Agile Toolkit) and it was helpful to me in all situations, but one question always concerned me: In which circumstances it's NOT advisable to use a framework? So a question to other veteran…
romaninsh
  • 10,068
  • 4
  • 46
  • 70
7
votes
2 answers

Recurring Billing Database Design

I'm writing an application that will involve recurring billing of a monthly (or weekly) fixed amount, and it can last until subscription is canceled. The customer can pay several periods in advance. He can cancel subscription, and then come back…
mcanedo
  • 445
  • 4
  • 10
6
votes
2 answers

Recursive tree rendering with Agile Toolkit

I have a following situation. I have a Model A with following properties: id int name varchar(255) parent_id int (references same Model A). Now, I need to render Tree View using that ModelA. Of course, I could just load all data, sort it properly by…
jancha
  • 4,873
  • 1
  • 21
  • 35
5
votes
3 answers

Agile Toolkit, worth using?

I'm considering using the Agile Toolkit, ATK4 to upgrade a number of web projects that I'm working on. I really like the idea/paradigm that the Agile Toolkit presents, but I'm worried about documentation. The agile website's documentation is…
Bennett
  • 407
  • 1
  • 5
  • 7
4
votes
3 answers

PHP Exception Arguments

I am working on a PHP library, which may be used in various environments by different PHP projects and I'm trying to be as minimalistic as possible. In some circumstances I have to throw exceptions, for instance. throw Exception('template has…
romaninsh
  • 10,068
  • 4
  • 46
  • 70
3
votes
2 answers

Creating a database query using dsql

Is it possible to make a query using any of the methods of dsql() ? something like: $dq=$this->api->db->dsql()->execute('insert into table xx (field1,field2) values ('a','b')'); Thanks
AJM.MARTINEZ
  • 477
  • 2
  • 9
3
votes
2 answers

Can I create a menu with sub-menus in Agile Toolkit?

The menu class documentation - and the provided example - do not seem to show any way for me to build a navigation menu with more than 1 level of navigation. What do I do if I want to build an 'app-style' menu - like 'File' or 'Edit' - which will…
3
votes
1 answer

How do you display info from a database

I have figured out how to add data from a model into a grid like the examples on the learning section of the Agile Toolkit website. But I'm looking for the correct way to show data from a database without a grid. Say I have a news database and I…
Losey
  • 137
  • 7
3
votes
1 answer

How to send mail using Tmail?

I went though the Tmail class but i dont how to load a template. can any body provide me a sample example...
3
votes
1 answer

ATK4 Form datePicker - default state is 'opened', can this be changed?

I'm using the following form, and everytime the page opens (it's in an expander on a grid) the datePicker is 'open', obscuring part of the text above it. function page_del() { $billingid = $_GET['id']; $now = date("Y-m-d H:i:s"); …
3
votes
3 answers

how to change CRUD "add" button name?

by default the CRUD add button name is the same as model name. how can we change that? $tabs->addTab('Users')->add('CRUD')->setModel('Admin_User');
webelizer
  • 316
  • 1
  • 11
3
votes
1 answer

MVCForm Agile Toolkit Form Update Record ID must be specified

hopefully simple questions regarding Agle Toolkit. Currently with the below code getting Error in AJAX response: SyntaxError: Unexpected token < BaseException Record ID must be specified, otherwise use loadAny() page\grant.php
Omar Mir
  • 1,378
  • 1
  • 17
  • 35
3
votes
1 answer

atk4 advanced crud?

I have the following tables: -- ----------------------------------------------------- -- Table `product` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `product` ( `id` INT NOT NULL AUTO_INCREMENT , …
thindery
  • 1,124
  • 4
  • 21
  • 37
3
votes
1 answer

How to perform multiple js actions from one button in atk4

--EDIT: This is now SOLVED. I want one button to do multiple js commands, e.g. $nextButton = $form->addButton('Next'); to do: $button_repopulate_address->js(true)->show() $street->js(true)->closest('fieldset')->show() when:…
Richard EB
  • 928
  • 10
  • 23
3
votes
1 answer

Form with two tables as source

I have two tables master and detail. When I add a new record to master, after that I need to add records to the detail table. Is it possible to have a form with tow "setSource()" methods ? Or do I have to make first one form, and then add a second…
AJM.MARTINEZ
  • 477
  • 2
  • 9
1
2 3
26 27