This is very interesting. It takes away the mistery of template engines.
@amirkamizichannel7 ай бұрын
Thank you very much. I'm very glad you found it useful
@alfredoalejandromaidana4673 Жыл бұрын
Hello Professor, thanks for this amazing class !! Greetings from Argentina ! I hope to see more new videos soon !!
@amirkamizichannel Жыл бұрын
Hello Alfredo! Thank you very much. I'm very glad you found them useful. Definitely!
@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 Жыл бұрын
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 Жыл бұрын
@@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. .
@omaokokelechi84545 ай бұрын
great teaching .... please kindly help for preg_replace for require_once
@amirkamizichannel5 ай бұрын
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 Жыл бұрын
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 Жыл бұрын
Hi, That's a great suggestion. I will work on it. Maybe for my next video even :)
@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 Жыл бұрын
definitely. it's an important topic. I will cover it for sure. thank you
@amirkamizichannel Жыл бұрын
as requested. I hope you like it kzbin.info/www/bejne/n5mbXqB4nclqkNU
@MichaelDPrice4 ай бұрын
Are you joking? A+ for creativity, but ... 🤦
@amirkamizichannel4 ай бұрын
😄 this is just to demonstrate how a basic template engine would work.