The ActiveRecord class defines a static $table variable, which is subsequently overridden by the Customer and Sales subclasses to specify the SQL table names custdb and salesdb.
ActiveRecord 类定义一个静态的 $table 变量,它会相继被 Customer 和 Sales 子类覆盖来指定 SQL 表名 custdb 和 salesdb。
They are most effective when you keep your include file names static rather than variable-driven, so it's important to try to do this whenever possible.
当您将include文件名保留为静态而非变量驱动的时,它们最有效,因此尽可能尝试这样做很有用。
应用推荐