Tap to unmute

Build a Simple Template Engine like Laravel Blade in 7 minutes

  Рет қаралды 3,998

AMIR KAMIZI

AMIR KAMIZI

Күн бұрын

Пікірлер: 18
@CristianKirk
@CristianKirk 7 ай бұрын
This is very interesting. It takes away the mistery of template engines.
@amirkamizichannel
@amirkamizichannel 7 ай бұрын
Thank you very much. I'm very glad you found it useful
@alfredoalejandromaidana4673
@alfredoalejandromaidana4673 Жыл бұрын
Hello Professor, thanks for this amazing class !! Greetings from Argentina ! I hope to see more new videos soon !!
@amirkamizichannel
@amirkamizichannel Жыл бұрын
Hello Alfredo! Thank you very much. I'm very glad you found them useful. Definitely!
@truthteachers
@truthteachers Жыл бұрын
Hi Bro, fantastic course. Only problem, I am a newbie and i do not know how create regex for switch statement. Can you help?
@amirkamizichannel
@amirkamizichannel Жыл бұрын
I'm glad you liked it.thank you. for switch it depends on the view that you want to define for example for something like this: @switch($value) @case(1) // do something @break for @switch($value) you can use the exact regext for if and just change it to switch for @case(1) you can do the same as well. but make sure to replace it with the correct thing. case $1: and for @break you can simply use string relpace then you should also have a endswitch you can add default as well. read the document www.php.net/manual/en/control-structures.switch.php on how to use switch with endswitch it shows an example of the full code with default and cases. that can help
@truthteachers
@truthteachers Жыл бұрын
@@amirkamizichannel I did it and the result is good. Only the cache shows me an error which does not stop anything. Anyway, i would not use this in production. Rather use the safe PHP native code. Better safe than sorry. I notice Laravel and Symfony Twig are messing people's understanding. .
@omaokokelechi8454
@omaokokelechi8454 5 ай бұрын
great teaching .... please kindly help for preg_replace for require_once
@amirkamizichannel
@amirkamizichannel 5 ай бұрын
Thank you very much. I'm glad you liked it. For preg_replace please check out the following post: amirkamizi.com/blog/php-regular-expressions and for require_once please check out the following post: amirkamizi.com/blog/php-include-and-require
@NedumEze
@NedumEze Жыл бұрын
Hi, Amir, Could you consider doing a couple of Videos on Static Database Class with complete CRUD static methods? It will be great if most of the methods: select, update, delete, insert, query, are chainable.
@amirkamizichannel
@amirkamizichannel Жыл бұрын
Hi, That's a great suggestion. I will work on it. Maybe for my next video even :)
@NedumEze
@NedumEze Жыл бұрын
@@amirkamizichannel Please, it's crucial for many of your students and certainly, me. I saw something like this somewhere: DB::table( 'tableName')->select()->where( 'column = :column', ['column' => $column]); DB::table('tableName')->select()->all(); I couldn't quite understand them. Surely, you will teach it better and respond better to our needs and follow-up questions. Thanks Amir, for the promise to help.
@amirkamizichannel
@amirkamizichannel Жыл бұрын
definitely. it's an important topic. I will cover it for sure. thank you
@amirkamizichannel
@amirkamizichannel Жыл бұрын
as requested. I hope you like it kzbin.info/www/bejne/n5mbXqB4nclqkNU
@MichaelDPrice
@MichaelDPrice 4 ай бұрын
Are you joking? A+ for creativity, but ... 🤦
@amirkamizichannel
@amirkamizichannel 4 ай бұрын
😄 this is just to demonstrate how a basic template engine would work.
Build a Database Query Builder like Laravel in 7 minutes
6:56
AMIR KAMIZI
Рет қаралды 3,2 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Become a PRO at Using Components in Laravel
32:51
Code With Dary
Рет қаралды 40 М.
Laravel Gems - Pipelines 💎
15:21
Laravel
Рет қаралды 10 М.
HTML Templates Instead Of Reactivity | Prime Reacts
12:42
ThePrimeTime
Рет қаралды 116 М.
Do Not Use PHP Template Engines. (Twig, Smarty, Blade)
4:17
Lionel The Tech Lead
Рет қаралды 25 М.
Build a Validator like Laravel in 7 minutes
7:08
AMIR KAMIZI
Рет қаралды 1,1 М.
Blade templates & Layouts | Laravel 10 Tutorial #7
14:27
Yelo Code
Рет қаралды 48 М.
Laravel Service Providers: All You Need to Know
13:13
Laravel Daily
Рет қаралды 69 М.
Laravel Blade Components
14:25
SchuBu Development & Training
Рет қаралды 2,5 М.
Laravel From Scratch [Part 4] - Blade Templating & Compiling Assets
20:48