
Learn CakePHP 3 advanced techniques, including protecting your application against attacks, implementing a custom database logger, and exploring associations like has one, has many, belongs to, and many-to-many.
Implement a custom captcha in CakePHP 3 by creating a capture component that generates a random number, stores it in session, and validates user input.
Explore cakephp csrf protection with the csrf component, using the form helper's hidden fields and csrf tokens to prevent cross-site request forgery in web applications, including ajax and api endpoints.
Explore a real-world CakePHP 3 example using Ajax and csrf tokens, diagnose a 403 forbidden due to token mismatch, and learn how to fix the request flow.
Learn to enable ajax in cakephp 3 with the csrf component by configuring the X-CSRF-Token header and cookie token, and updating the HTTP request to include it.
Explore logging theory in CakePHP 3 by configuring loggers in bootstrap, using the log shortcut function, and understanding log levels from emergency to debug for errors.
Learn CakePHP 3 advanced techniques by building a logging feature: submit log messages via a form, read logs from files with a custom component, and configure file log levels.
Create and configure a custom database logger for CakePHP 3, implementing a log adapter to store events in a dedicated database table without changing controllers.
Learn how to integrate DataTables in CakePHP 3 to display a customers table with pagination, search, and sortable columns, by loading the model, initializing data, and wiring the view template.
Explore CakePHP 3 associations, including has many, belongs to, has one, and many-to-many, via the initialize method and conventions, with examples using articles, comments, authors, and users.
Explore how has one associations link users to addresses through a foreign key in the addresses table, with conventions, overrides, and cascade deletes.
Define belongs to associations in CakePHP 3 by configuring foreign keys in the addresses table to access related user data, using array syntax, class name, and join conditions.
Explore belongs to many associations in CakePHP 3, using a join table to link articles and stocks. Follow convention to name the join table and define foreign and target keys.
Learn eager loading of associations in CakePHP 3 using containments, nested arrays, and dot notation to fetch authors and comments with joins and improved query performance.
Explore CakePHP associations in action by linking countries and cities with a hasMany relationship, loading countries and their cities, and displaying a selected country's cities.
Apply the time helper in a CakePHP 3 advanced technique to format time fields from the database, displaying year, month, day, hours, minutes, and seconds consistently in the view.
Demonstrates diagnosing an integer overflow in CakePHP 3 when displaying a large amount, caused by 32-bit int limits, and fixing it by updating the field to bigint.
Discover helper classes and reusable behaviors in the CakePHP 3 model layer, including counter cache, timestamp, translate, and tree structures for nested categories.
Learn to build your custom behavior in CakePHP 3 and create a custom finder that returns customers by a credit limit, keeping code dryer, smarter, and elegant.
In this course you will learn some advanced topics about CakePHP 3. I will guide you step by step and explain you how to protect your CakePHP 3 appalication using Cross Site Request Forgery Component.
You will learn how to log events in your application and implement your custom database logger adapte to save all events to MySQL database.
We will talk about CakePHP 3 associations. You will understand how to work with the following relationships: BelongsTo, HasOne, HasMany and BelongsToMany. You will aslo try all the associations in action and learn eager loading associations.
I will show you how to use TimeHelper and how to avoid some MySQL issues you may encounter.
You will also implement your own custom database behaivor.