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

ATK4 - Page_EntityManager

With Agile Toolkit, how should I link a column value in a row to a webpage using Page_EntityManager?
Manish
  • 41
  • 1
2
votes
1 answer

How to escape curly braces in Atk4 DQL

I have the following code in Atk4 model: $sql = 'REPLACE(\'[dnum]\', \'{DD}\', LPAD(DAY([issue_date]), 2, \'0\'))'; $f = $this->addExpression('calc_document_number', [$sql, 'type' => 'string', 'read_only' => true]); The code above should…
mvorisek
  • 3,290
  • 2
  • 18
  • 53
2
votes
1 answer

ATK4 Fatal Error atk4\core\Exception: Attempting to initialize twice

I am exploring the Atk4 UI. Below I am tried to use a View with several Table views (with array data), but the atk4 shows fatal error: Attempting to initialize twice. $mainDiv = new \atk4\ui\View(); $table = new \atk4\ui\Table(['celled' =>…
mvorisek
  • 3,290
  • 2
  • 18
  • 53
2
votes
1 answer

ATK4 autocomplete

I created an demo according https://github.com/atk4/money-lending-tutorial/blob/master/tutorial/en/step1.md , it works, but I can not manage to integrate the https://github.com/atk4/autocomplete addon. Can someone point me to: 1. how can I install…
mvorisek
  • 3,290
  • 2
  • 18
  • 53
2
votes
1 answer

Agile toolkit - how atk4_form.js is loaded?

I'm using agile toolkit version 4.2. I'm using a javascript function that creates a modal (popup) and the content is inserted via ajax call. The content was inserted via jquery's ".html()" function but in case of big data, this function is very…
Pascut
  • 3,291
  • 6
  • 36
  • 64
2
votes
1 answer

How do I render (get HTML of) a form object in Agile Toolkit?

I'm using PHP framework Agile Toolkit version 4.3.2 (latest at this moment). I'm on a page that extends the default Page class. Suppose I have a form object like: $form = $this->add('Form'); $form->addField('text', 'name',…
Pascut
  • 3,291
  • 6
  • 36
  • 64
2
votes
1 answer

How to change atk4 PathFinder search paths priority or prepend a location from addon?

I want to make a jQuery-mobile addon for atk4 (version 4.3.1). In test case I want to conditionally override the template path by prepending a location to pathfinder's 'template' locations from my addon. How can I do it?
gaabora
  • 332
  • 2
  • 6
2
votes
1 answer

Installing Agile Toolkit

Could someone please explain to me, how do I get Agile Toolkit up and running ? I've cloned atk4 repository to my machine, moved it to my MAMP's webroot. When I access it from my browser http://localhost/my_app I see 403 error. Does it mean there's…
2
votes
2 answers

Agile Toolkit: Any way to upload files and fetch directly from $_FILES['uploadedfile']['tmp_name']?

I wrote a simple script in plain PHP that uses $_FILES['uploadedfile']['tmp_name'] to fetch a freshly uploaded file and process its contents directly without permanently storing it. The idea is to allow the user to upload a file containing several…
2
votes
1 answer

hasOne filtered by value of previous hasOne?

In a 'Jobs' table / model, I have two fields using 'hasOne' to pull descriptions from Companies and People tables: $this->hasOne('Companies','companies_id','CompanyName')->caption('Company') …
Mark
  • 27
  • 5
2
votes
1 answer

ATK: Using link format with grid

I'm new with ATK, but couldn't find the solution for this. I found the example for using template on link here: https://agiletoolkit.org/whatsnew/apr2011 I create grid like this, and add…
Peter
  • 728
  • 3
  • 16
  • 34
2
votes
2 answers

Form submission not handled

Is there a way to detect why a form is giving the message "Form submission is not handled". I'm not posting code here, it's a simple form not based on models, but I have made some other forms. Is there any rule to consider or something that helps me…
AJM.MARTINEZ
  • 477
  • 2
  • 10
2
votes
1 answer

rendering radio instead of checkbox or select list in forms

I hav a form which has a model as a source: $form->setModel("test"); In model, we can define the field type, for example: boolean will make the checkbox in form. now how can we define the type which be rendered as Radio buttons?
webelizer
  • 418
  • 2
  • 11
2
votes
1 answer

Wrapping text in grid column

I want the text in a column of a grid to wrap. The grid is created with a model. I have found the format_wrap-method, but it does not seem to do anything: $grid->format_wrap('description'); What do I do wrong? Thanks, Jeppe
jeppeb
  • 103
  • 8
2
votes
1 answer

how to search the grid with the exact phrase?

this code uses %like% for searching. how can we define to search the exact phrase? $c->grid->addQuickSearch(array('status',"name")); for example if we have (1,12,13) in the grid and we search "1" I want to show just the 1.
webelizer
  • 418
  • 2
  • 11