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

SchemaGenerator additional VARCHAR field, why?

When generating a table from this model: function init() { parent::init(); $this->addField('person_id')->refModel('Model_Person')->mandatory(true); $this->addField('username')->mandatory(true); …
Jmsegrev
  • 251
  • 1
  • 2
  • 10
2
votes
1 answer

How to implement image verification using ATK4

I am developing a simple web form to collect feedback from visitors of my website. Since the visitor is not authenticated, I would like to implement an image verification step for the users. I have searched in atk4 documentation and couldn't find…
libregeek
  • 1,264
  • 11
  • 23
2
votes
3 answers

What is the correct way of handling duplicate errors in db

I'm implementing a subscription in a DB. The email must be unique, so I have a UNIQUE index in the database. I have this code in my page init: $f =…
The Elter
  • 235
  • 1
  • 9
2
votes
2 answers

Populate dropdown in ATK4

function init(){ parent::init(); $f = $this->add('Form'); $f->addField('dropdown', 'Label:')->setModel('User'); } So this code will output a dropdown list populated by the values in the table asosiated with the model User, but the…
Jmsegrev
  • 251
  • 1
  • 2
  • 10
2
votes
0 answers

Video Player for Agile Toolkit

I'm looking for an add-on implementing a basic video player for Agile Toolkit. Does anyone have anything to contribute? Here is the code I'd expect to write to use it: $player = $video->add('VideoPlayer_YouTube'); $player->setSource($url); But…
romaninsh
  • 10,606
  • 4
  • 50
  • 70
2
votes
1 answer

How to define new Model in ATK4

From: http://agiletoolkit.org/learn/understand/model/add class Model_MyModel extends Model_Table { function init(){ parent::init(); $this->addField('name'); } } From: http://agiletoolkit.org/intro/models class Model_MyModel…
2
votes
1 answer

ATK4 What is the procedure for setting up an Admin Area?

I have setup a CRUD area on my frontendAPI.php file (testing my models)... and I even managed to secure it. I would like to do this the proper way... I would like to establish a separate directory/ Page for the Admins. Please advise on this.
CAM
  • 185
  • 13
2
votes
2 answers

Passing parameters to ->redirect() via $_GET

Hi I have this sentence $g->addButton('')->set('NEW ACTIVITY')->js('click')->univ()->redirect('newactivity'); Is it possible to call the "redirect" method and passing parameters via $_GET ? so in the page "newactivity" I can ask for…
AJM.MARTINEZ
  • 477
  • 2
  • 10
2
votes
1 answer

How would i set order of MVCLister?

How would i properly sort output of a MVClister? add('MVCLister',null,'News','News')->setModel('News'); …
Losey
  • 137
  • 7
2
votes
1 answer

How do I associate a database table with a model in ATK?

I have legacy code which stores temporary data in the context. I would like to store this in the DB using the following model: class Model_MyModel extends Model_Table { function init(){ parent::init(); …
2
votes
1 answer

Associating an uploaded File (id) with another table

I'm using Filestore to make uploads in a form. It's a great implementation but I've a doubt about associating that file uploaded with a register in a table. When I run the filestore.001.sql, it add 4 tables in Database (filestore_image,…
AJM.MARTINEZ
  • 477
  • 2
  • 10
2
votes
1 answer

reference field on form

I think I'm not understanding the reference field. I have a simple form add('Form'); $f->setSource('ticket'); …
AJM.MARTINEZ
  • 477
  • 2
  • 10
2
votes
2 answers

Agile Toolkit (ATK4) documentation or tutorial to create a membership site?

I'd like to get started with testing the ATK4 (Agile Toolkit - http://agiletoolkit.org/). Does anyone have any suggestion regarding where to find a tutorial for using ATK4 with: Template development User management Registration, login, and other…
Calle
  • 1,690
  • 1
  • 17
  • 34
2
votes
1 answer

how do i access the session variables in the pages

how do i access the session variables in the pages in agile toolkit. i am using $this->getUser() but it is not working
2
votes
3 answers

Adding custom meta

How can I add custom tags (for SEO) in Agile Toolkit (atk4)?
1 2
3
26 27