Yii – Theming
Theming helps you replace a set of views with another one without the need of modifying original view files. You should set the theme property of the view application component to use…
Theming helps you replace a set of views with another one without the need of modifying original view files. You should set the theme property of the view application component to use…
During the developing of a database-driven application, the database structure evolves with the source code. Yii provides the database migration feature that allows you to keep track of database changes. Yii provides…
Active Record provides an object-oriented API for accessing data. An Active Record class is associated with a database table. Yii provides the Active Record support for the following relational databases…
Query builder allows you to create SQL queries in a programmatic way. Query builder helps you write more readable SQL-related code. To use query builder, you should follow these steps…
To execute an SQL query, you should follow these steps − Create an yii\db\Command with an SQL query.Bind parameters (not required)Execute the command. Step 1 − Create a function called actionTestDb in the SiteController. public function…
Yii DAO (Database Access Object) provides an API for accessing databases. It also serves as the foundation for other database access methods: active record and query builder. Yii DAO supports…
For working on numerical data, Pandas provide few variants like rolling, expanding and exponentially moving weights for window statistics. Among these are sum, mean, median, variance, covariance, correlation, etc. We will now…
Statistical methods help in the understanding and analyzing the behavior of data. We will now learn a few statistical functions, which we can apply on Pandas objects. Percent_change Series, DatFrames…
Pandas provide API to customize some aspects of its behavior, display is being mostly used. The API is composed of five relevant functions. They are − get_option()set_option()reset_option()describe_option()option_context() Let us now…
A DI(dependency injection) container is an object that knows how to instantiate and configure objects. Yii provides the DI container via the yii\di\Container class. It supports the following kinds of DI…