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

396 questions
2
votes
1 answer

how to use my own form structure in agile toolkit?

in agile toolkit we only can change the form style but is it possible to change the form body and it's structure? I want to change HTML... something like this: $form->htmlsource();
webelizer
  • 418
  • 2
  • 11
2
votes
2 answers

need simple examples for hasone and hasmany usage

I have watched the movies and read the documents but I can't understand the usage of hasone and hasmany in agile toolkit! can anybody give me some simple examples for these? Thanks.
webelizer
  • 418
  • 2
  • 11
2
votes
1 answer

Captcha plugin for Agiletoolkit

Is there any addon which adds captcha to Form_Field? Like $f = $this->add('Form'); $f->addField('Line','captcha')->addCaptcha();
Vadym
  • 749
  • 3
  • 15
2
votes
1 answer

ATK4 - Update a form field value based on change in related dropdown

I am trying to fill in a form field with a certain value from my DB whenever a related dropdown changes and I don't understand why: I can successfully use the js()->val() of my dropdown to set the val() of the field I'm trying to populate ($price)…
2
votes
1 answer

Change field value with javascript on submit

I need to execute something like this in a CRUD form (simplified example): $crud->form->js('submit',$crud->form->getElement('data')->js()->val('My text')); I need to change data field before submit. The event is executed but field is not updated. I…
Jaume
  • 63
  • 4
2
votes
1 answer

How to connect to a SQLite DB with Agile Toolkit 4?

I'd like to use SQLite3 with Agile Toolkit. I found it in the documentation that the SQLite driver is included with atk4, but I couldn't find any examples of how to connect to a SQLite DB. I tried to change the DB connection of the example…
richk
  • 1,719
  • 3
  • 12
  • 12
2
votes
1 answer

How to add Form into the CompleteLister ATK4

I want to add a simple form to each row of CompleteLister. I've tried this: add('Lister_Comment',null,'comm_list_spot','comm_list_spot'); …
Kostiantyn
  • 1,792
  • 2
  • 16
  • 21
2
votes
1 answer

How to set default value in dropdown

I have a form with a drop down that has a list of states set like this. $this->addfield('State','state')->setValueList(array('Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia',…
Ralanyo
  • 61
  • 9
2
votes
2 answers

Agile toolkit : how to automatically reload grid

Using Agile toolkit to generate a grid, I'm trying to get an automatic reload of a grid but I can't figure how :/ I dug into the js() function and saw the first parameter is $when but, how to set up an interval? Reload on event like button click is…
2
votes
1 answer

Invalid date value storing in atk4 MVCForm

I have created a form using MVCForm and set Model class extended Model_Table. In model class I have a date field. I tried to edit existing record (using GET and loadData() in model), but date field populating with invalid data for example if I saved…
Vinay
  • 63
  • 1
  • 7
2
votes
1 answer

Using ref() with linking tables in ATK

I've been working on the Student enrollment example/tutorial for ATK and am stuck on the use of ref()'s via linking tables. A basic ER of the system is below: [Student] ||---|< [class_has_student] >|---|| [class] >|----|| [subject] Where a Subject…
LostInTheWeb
  • 187
  • 1
  • 11
2
votes
1 answer

Controllers to import different formats of supplier data with ATK4

I like to understand conceptually how to setup controller / model in case I want to import supplier data (csv/xml/soap/..) via different controllers. I simplified my case for better focus. In ATK4 I have Model_Supplier. The main fields are:…
Bob Siefkes
  • 1,133
  • 9
  • 11
2
votes
1 answer

Intergrating ATK4 with wordpress development

I found a article on the atk4 blog http://agiletoolkit.org/blog/integrating-agile-toolkit-with-wordpress/ I followed the instructions and i get a error and it says the ApiWeb Class not found. Then I looked in index.php on the real framework that you…
2
votes
2 answers

Initialize atk4 js after loading a page via ajax

I'm trying to use atk4 in a project started some months ago. This project is a app that has a menu and load pages in a div via ajax. Menu is fixed and never reloaded. I want to use atk4 to generate new pages and do the database work, leaving what is…
Jaume
  • 63
  • 4
2
votes
1 answer

QuickSearch on a details page not keeping id when refreshing

I have a Grid for which I have a column formatted to a link. Once I click on a link that is being generated, this link will take me to a page for which the url looks like ?page=details&id=10. This works fine, so far. On this details page I have…
zadof
  • 69
  • 5