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

394 questions
0
votes
1 answer

is defineAuditFields() deprecated in 4.2.1?

If I use defineAuditFields in my models I get the error ->exception("Method is not defined for this object", "Logic") is defineAuditFields() deprecated in 4.2.1? Is there a new method?
mcanedo
  • 445
  • 4
  • 10
0
votes
1 answer

BasicAuth in 4.2.1

I have noted that BasicAuth does no longer works by simply uncomented //->check in Frontend.php It seems like now it requires a Model... what are the requirements for that model? how do I create it? And how do I know use BasicAuth? Thanks
mcanedo
  • 445
  • 4
  • 10
0
votes
1 answer

Have database considerations changed in 4.2

There where some database considerations in previouse documentation of agiletoolkit, that I can't find anymore. Have those changed? For example are booleans still needed to be enum('Y','N')??
mcanedo
  • 445
  • 4
  • 10
0
votes
1 answer

CRUD, after click Save in Add or Edit

/var/www/page/page/video.php: add('Form'); $d=$this->add('Tabs'); …
0
votes
2 answers

Form with head and detail

some time ago I've asked for something similar, but now I'm picking up with this, so asking again. Maybe this question can sound simple but it's not for me. I have two tables: header (id,date,field1,field2) // This has One entry on the table detail…
AJM.MARTINEZ
  • 477
  • 2
  • 9
0
votes
1 answer

Adding where 'id IN ' clause to Model with addCondition()

I was wondering if I can use addCondition() to add a where clause of the type: 'id IN (1,2,3,4)' to an existing model? according to the comments in Model_Tabel it would need to be possible if I give it an DB_dsql instance: function…
gsteenss
  • 68
  • 5
0
votes
1 answer

Does the Page_SchemaGenerator class work in Agiletoolkit?

I am looking at atk4 (http://agiletoolkit.org/) for a project. However the Page_SchemaGenerator is not working for me: Method is not defined for this object Additional information: Raised by object: Object…
fcrossen
  • 13
  • 2
0
votes
1 answer

Available Movies as in example is not showing correct calculated field

the link http://agiletoolkit.org/learn/app/logic is followed and calculated field in // add into Model_DVD_InStore function dsql_count(){ return $this ->dsql(null,false) ->field('count(*)') …
0
votes
3 answers

Example of using multiSelect on a form

Does anybody have a good example on how to use multiSelect field on a form? There is nothing in the documentation about it. If I add it like any other field I get an error. I am using atk 4.2. This code: $f = $form->addField('multiSelect', 'name',…
zadof
  • 69
  • 5
0
votes
1 answer

CRUD ignores $display_field during Add

I've found a problem with the CRUD and hasOne() where the $display_field is ignored in the "add" form. If the referenced model has a 'name' field, then the drop down menu in the Add form of the CRUD is populated correctly. However, if the hasOne()…
LostInTheWeb
  • 177
  • 1
  • 9
0
votes
1 answer

PathFinder_Exception Unable to include Model/Model/ using setModel

I'm trying to create a reference manually from one Model to another model, using the example given in http://agiletoolkit.org/doc/modeltable/reference. I'm using the following tables and models: Person Table id: primary key name: char room_number:…
LostInTheWeb
  • 177
  • 1
  • 9
0
votes
0 answers

addCondition with addQuickSearch

I have a condition that I'm always adding on some of the models on the init. It's a authorization condition. When I add a grid with a model that has this condition, and I add a quick search I get unexpected behavior. Both conditions are there, the…
zadof
  • 69
  • 5
0
votes
1 answer

Form update() not returning id in 4.2

I have been experimenting with ATK4 for a while now and it's just wonderful! Migrating to 4.2 I came across a problem with Forms updated and not returning the inserted id. Here is an example: class page_kids_new extends Page { function init() { …
0
votes
1 answer

BasicAuth and setting a User model which reference e-mail address

I'm just getting to grips with the shiny new ATK 4.2 which looks very nice. However, I'm having trouble with the BasicAuth class. I want to extend the BasicAuth using the User model. However, my User model does not contain an 'email' field, rather…
LostInTheWeb
  • 177
  • 1
  • 9
0
votes
2 answers

ATK Radio Buttons with a model field

How can I define radio buttons for a model field. class Model_Campaign extends Model_Table { public $entity_code = 'campaign'; function init() { parent::init(); $this->addField('nombres')->mandatory(TRUE); …
Braulio Soncco
  • 253
  • 4
  • 20
1 2 3
26
27