@dsobiera: Please, please, please... read Quick Start Tutorial first more carefull.
I have read it until I am blue in the face. Although it does present a good description of TActiveRecord it does leave pieces as exercises to the reader.
There U have written that table is recognized
a) by name of active record class
b) if name of your active record is different that your table in database, then U must set static $_tablename property of Active Record class.
Second, this what jerrys said about storing database in one directory is good, but (!) storing database stuff under pages directory IMHO is one big missunderstood.
Third, after studing your post I'm really confused if you read whole tutorial.
Of course I did. Now did I miss comprehending something it? No doubt as my forehead is sore from hitting it on my desk

. But reading it 50 times without some guidance isn't going to assist me here.
If you have 3 different databases configure 3 differend connection in application.xml. Then in your code you can use:
$myActiveRecord = new MyActiveRecordClass(array(),$connection);
where $connection points to correct database connection.
If I am setting up my databases from the application.xml, where does it set the connection?
I'm also confused about way how you want to use acitveRecord.
How should I be looking to use ActiveRecord? I'm open to that ActiveRecord isn't doing what I am thinking it is doing. But, respectfully, telling a new user to RTFM isn't going to help new developers into this framework. Especially when he did RTFM.
Lets say that we have tablename: "example_table" in our database, this table have two fields: id and myValue. Your active record file should look like below
//this is namespace (path) which means:
// System - go to framework base directory
// and follow /data/activeRecord parh
// wgere you have TActiveRecord.php file with TActiveRecord class
PRADO::using('System.Data.ActiveRecord.TActiveRecord');
Tried that. First PRADO in all capital letters doesn't work for me. I needed to capitalize the first letter followed by lowercase.
Prado::using('System.Data.ActiveRecord.TActiveRecord');
class MyActiveRecordClass extends TActiveRecord {
public $id;
public $myValue;
public static $_tablename = 'example_table'; // <-- now actice record knows table name

protected static $_populateAsObject;
public static function finder() {
return self::getRecordFinder('MyActiveRecordClass'); // <-- important !!
}
}
Other than the _populateAsObject, isn't this what I have? BTW where did you find the _populateAsObject in that tutorial?
// I assume that $conn is bound
MyActiveRecordClass::getInstance()->setDbConnection($conn);
HOW is conn bound? If I don't use the [module] area in my application.xml file, I understand it is done with:
$dsn = 'mysql:host=localhost;dbname=test';
$conn = new TDbConnection($dsn, 'user','password');
When I put the stuff in application.xml, do I still need the dsn and conn in my code?
// an example which search for entries in table by primary key = 1
$recordFound = MyActiveRecordClass::finder()->findByPk(1);
I cannot even get that far. The line:
TActiveRecordManager::getInstance()->setDbConnection($conn);
in my code throws that not foud error I wrote of earlier.
2) Activate your connection $conn->active = true;
Activate WHERE? Could you (or someone) please please post a COMPLETE working trivial app that uses ActiveRecord. I am getting a lot of people trying to help but we are all using code segments. Could I actually get hold of something COMPLETE that WORKS so that I may learn from that? The tutorial doesn't quite do that for me.
I wish they had something like the radio button documentation that allows one to look at a functioning app and then the underlying code.