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
0
votes
1 answer

Atk4 form Columns

I'm trying to use columns in a form. I have the next code, that produces the The code is this: $col=$this->add('Columns'); $left=$col->add($f->addField('text','observaciones')); $right=$col->add($f->addField('line','cantidad_de_bocas')); the…
AJM.MARTINEZ
  • 477
  • 2
  • 10
0
votes
1 answer

Form with style

I'm using version 4.1.4 Is it possible to create a form having some fields with a background color ? something like the next image. Thanks Alejandro
AJM.MARTINEZ
  • 477
  • 2
  • 10
0
votes
2 answers

How to do math operations with model fields or expressions in Agile Toolkit

atk4.2.1 I have this model: class Model_Cargo extends Model_Table { public $table='cargo'; function init(){ parent::init(); $this->hasOne('Alumno'); $this->hasOne('Plan'); $this->addField('fecha')->type('date'); …
mcanedo
  • 445
  • 4
  • 10
0
votes
2 answers

Enhancing CRUD with selected columns and custom layout?

just learning agiletoolkit so I'm going to have some questions... First, I have it up and running with a database with some data in it, several tables in fact. Nothing too major. I have all the tables editable with basic CRUD but I'd like to know if…
Trevor
  • 11
  • 1
  • 4
0
votes
2 answers

how to have a button trigger a database update in ATK4?

I'm using ATK4 4.1.1 and have added a button to a page. I want this button to trigger an update to a database table when it is pressed and so have created code like this in a page. …
Trevor North
  • 2,286
  • 1
  • 16
  • 19
0
votes
2 answers

Accessing Arguments using $_GET

I am adding an email validation step to my user registration. I cannot seem to get access to the arguments that are being passed in the emailed link; link: activation.php?email=someone@somewhere.com&key=5614c46be05a95f55f2231d8dea41418d17b197a Here…
Micheal
  • 105
  • 7
0
votes
3 answers

center form content modifying form.html template

I'm still using 4.1 and I'm trying to center a form content on screen. When I add a new form it stays on the "left" of the screen. I've tried to change form.html (temmplates/shared) adding a div with a style like this: margin-left : 10%;…
AJM.MARTINEZ
  • 477
  • 2
  • 10
0
votes
3 answers

Implementing a search form that updates grid or lister

I am trying to implement a search form which would show results gotten from the db when given (a) keyword(s), then updating a grid or lister with the search results. Only i'm a bit lost as to how to update the grid... I've looked at some similar…
gsteenss
  • 68
  • 5
0
votes
1 answer

Adding authentication throws an error on successful login (Using Agile Toolkit)

I tried to add $this->api->auth->check(); to my test.php page and it throws an error when I correctly type in the login credentials: Error in AJAX response: SyntaxError: invalid XML attribute value Exception_Logic Method is not defined for this…
mdietz
  • 33
  • 1
  • 1
  • 6
0
votes
2 answers

Is it possible to force the value of a new CRUD form field?

I am using Agile Toolkit. I have a drop-down field in my CRUD. How can I make the "New" button display different set of values in this drop-down to when the "Edit" button is clicked? Here is my code: class page_things extends Page { function…
0
votes
1 answer

atk V4.2.1 Working example sha256/salt

new to atk and going well until I started to implement UserAuth using sha256/salt. I can register and it creates and stores an encrypted password but I cannot login. It works with no encryption. Has anyone implemented sha256/salt password encryption…
Micheal
  • 105
  • 7
0
votes
0 answers

how to use atk4 filestore file upload

I'm having an issue using the atk4 filestore file upload. I copied the fileadmin.php from the atk4-addons into my page directory and created the tables using a the filestore_001.sql script which created four tables. I've added the following data…
Trevor North
  • 2,286
  • 1
  • 16
  • 19
0
votes
1 answer

atk4 error unable to cut object with name=..., It wasn't initialised

In agiletoolkit, i have a set of views displayed and in the View, have set the outer div to have id= 1
2
3 4
5
6 …
Trevor North
  • 2,286
  • 1
  • 16
  • 19
0
votes
1 answer

Changing values in BeforeInsert or BeforeSave hooks

I'm doing this with a very simple class, just to learn, but I'm not able to have it working like I see in http://agiletoolkit.org/learn/understand/model/actions This is the class definition: class Model_Task extends Model_Table { public…
Jaume
  • 63
  • 4
0
votes
1 answer

How to assign different color to even rows in grid in atk 4.2.1

even css class does not seem to work in 4.2.1 to assign a different color to even rows, is there a new method to do it?
mcanedo
  • 445
  • 4
  • 10