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
2 answers

Junction Table with mutiple primary keys

I started to learn Atk just a week ago and I decided to reimplement the business intranet which is becoming unmaintainable. The model abstraction is very cool to use but I wonder how to specify multiple primary keys for my junction tables. For…
Steff
  • 41
  • 6
0
votes
1 answer

atk4 4.2.5 Schema generator issue

I'm learning agile toolkit by following the jobeet tutorial, but the schema generator doesn't work. It throws the following error: Error in AJAX response: SyntaxError: Unexpected token < Fatal error: Call to a member function getAllHash() on a…
roco3d
  • 3
  • 2
0
votes
1 answer

ATK4 & cron job, using of ds-addons/Scheduler

I need cron job for my new application and found a nice add-on by DarkSide, but im having some difficulties using it. The add-on is here: https://github.com/romaninsh/TemaOrig/tree/master/ds-addons/Scheduler I have installed it till step 3, where…
Peter
  • 728
  • 3
  • 16
  • 34
0
votes
1 answer

ATK4 Autocomplete submit form on select or Enter

I've got a form with an Autocomplete/Basic that works as expected (I suppose). I type three characters, get matches, etc. When I select a match, either with keys (and confirm with Enter) or mouse click it takes another Enter to submit the form. This…
0
votes
2 answers

Multiple dropdown with default selected values

I'm adding multiple dropdown to form, but i would like to have some values selected by default. form->addField('DropDown', 'fieldname','Field Caption')->setAttr('multiple')->setModel('SomeModel'); So when the user would open this form, values with…
Peter
  • 728
  • 3
  • 16
  • 34
0
votes
0 answers

Extended CRUD, function formSubmit don't get all form elements?

i have a problem, i cannot get values (added with $form->addField) from form in CRUD. I just get what's in the model, but there just isn't extra values... MODEL: class Model_Admin extends Model_Table { public $table ='admin'; function…
Peter
  • 728
  • 3
  • 16
  • 34
0
votes
2 answers

How to implement CRUD with many:many relationship

I'm new to atk4, but I couldn't find some simple examples for using CRUD with many:many relationships between tables. I read in some instructions that M:M is best implemented with intermediate table, which seems logical. For example Model ONE…
Peter
  • 728
  • 3
  • 16
  • 34
0
votes
1 answer

ATK CRUD with one:many relationship

I'm a beginner and searched documentation, but can't find this how to do this: I have two tables, admin and application. Admin can have many applications. ADMIN: class Model_Admin extends Model_Table { public $entity_code='admin'; function…
Peter
  • 728
  • 3
  • 16
  • 34
0
votes
1 answer

Generating values for dropdown ONLY for 'C' of CRUD

When choosing 'Add' in CRUD, how best to generate a list of choices to pick from a dropdown? For U/update - just display what's there... The field contents starts with a letter, followed by five numeric digits:{A-I,K-N,Z}##### Each letter has a…
Mark
  • 27
  • 5
0
votes
1 answer

How to log Atk4 auth/login event

I'm new to Agile Toolkit and I'm trying to make some sort of trigger/log on user auth. For example, after successful login, I want to execute some query like: UPDATE `user_login` SET `user_id` = XXX, `login_date` = NOW(); I've searched…
Dusty Raven
  • 183
  • 1
  • 8
0
votes
1 answer

using addRef with CRUD

I'm trying to learn how to use addRef. I think I need a way to tell addRef which field should link with 'id' in Master? To test, I have a 'master' table:
Mark
  • 27
  • 5
0
votes
1 answer

AGILETOOLKIT :: js()->..->execute() must be used in response to form submission or AJAX operation only

I am getting this error when i do form submit. here is my code: View class View_Tabs_Activities extends View { function init() { parent::init(); $f = $this->add('Form', null, 'PostForm'); $f->setModel('Post'); …
Zeeshan Abbas
  • 821
  • 6
  • 20
0
votes
1 answer

Field with this name is already defined error

I have a field 'slug' in my model and I set this field at $id_field property, but I got a error: 'Application Error: Field with this name is already defined'. I need to show this fild on the page, how can I do that? model source:
Rakshazi
  • 75
  • 1
  • 10
0
votes
1 answer

Model refs and Lister

I have a question - how can I get and show data from referenced model in Lister? referenced table structure (model User): id | login | password | realName | email reference logic (Model Post): $this->hasOne('User', 'author'); template: Author:…
Rakshazi
  • 75
  • 1
  • 10
0
votes
1 answer

How to display image from filestore/Field_Image in agiletoolkit?

I have a model Profile add('filestore/Field_Image'); } } Now in my index.php, i am trying to set the full…
Zeeshan Abbas
  • 821
  • 6
  • 20