Updated 002 Intro to JCB (markdown)

Amigo 2019-07-16 13:26:32 +02:00
parent 07008f0b45
commit b18da9e008

@ -13,7 +13,7 @@ Component Builder was built for those who know PHP. If you are not familiar with
[00:01:29](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h01m29s)
If you don't have much knowledge of the Joomla API, it's not that difficult to get an understanding as long as you are able to read PHP. To learn more, open a Joomla website, go to libraries, start reading the classes. You can even go to Joomla's own components. Go to a Joomla install, then to components and to content manager. Look at the folder structures, open them, and you will see the controllers, the models, and the views. Open a view, open the script itself and read through it. If you are using NetBeans, you can hold onto a function like this one (getLayout) and press Ctrl+Shift. It will show you where in your Joomla website that function is declared. [00:02:34](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m34s) You can open that file, and open source in editor. You can learn how codes interconnects to each other by just looking at Joomla's own components. [00:02:58](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m58s) (See video.) [00:03:21](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h03m21s)
If you don't have much knowledge of the Joomla API, it's not that difficult to get an understanding as long as you are able to read PHP. To learn more, open a Joomla website, go to libraries, start reading the classes. You can even go to Joomla's own components. Go to a Joomla install, then to components and to content manager. Look at the folder structures, open them, and you will see the controllers, the models, and the views. Open a view, open the script itself and read through it. If you are using NetBeans, you can hold onto a function like this one (getLayout) and press Ctrl+Shift. It will show you where in your Joomla website that function is declared. [00:02:34](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m34s) You can open that file, and open source in editor. You can learn how codes interconnects to each other by just looking at Joomla's own components. [00:02:58](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h02m58s) (See video.)
### Ways of Implementation
@ -25,13 +25,13 @@ My aim is not to reinvent things but to stick to the conventions as far as possi
[00:04:17](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h04m17s)
It is important to debug something if you had built something that did not work. Possibly you need to run a local sandbox environment. Ubuntu is my local sandbox on which I have PHP, Joomla, and MySQL installed. [00:04:38](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h04m38s) If I have to open a browser, [00:05:04](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m04s) I have a few sites here. This is just my own little script that I've dumped into my own server. [00:05:27](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m27s) Now I go to Builder.VDM. [00:05:43](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m43s) It is loading some of the test displays that I'm working on. If I add administrator to that, it will open the back end, and I can login. So I'm running in a sandbox environment. The advantage of it is that if you don't have any internet involvement, you can work offline as well as add things like XD bug and other script which will help you debug your application. [00:06:07](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m07s) We are doing that in a off-site environment. It is time consuming, difficult, and expensive. [00:06:26](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m26s) It's much easier doing it offline; again, if you don't know how to do that, please visit Lynda.com and look at a course called "Up and Running with Linux for PHP Developers with Jon Peck." [00:06:59](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m59s) It is an excellent course to get your own local developing environment setup. I've watched it long ago [00:07:24](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m24s) and it's been very helpful to get my initial sandbox setup. With time you'd get better and find better ways, but this is a good place to start. [00:07:44](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m44s)
It is important to debug something if you had built something that did not work. Possibly you need to run a local sandbox environment. Ubuntu is my local sandbox on which I have PHP, Joomla, and MySQL installed. [00:04:38](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h04m38s) If I have to open a browser, [00:05:04](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m04s) I have a few sites here. This is just my own little script that I've dumped into my own server. [00:05:27](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m27s) Now I go to Builder.VDM. [00:05:43](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h05m43s) It is loading some of the test displays that I'm working on. If I add administrator to that, it will open the back end, and I can login. So I'm running in a sandbox environment. The advantage of it is that if you don't have any internet involvement, you can work offline as well as add things like XD bug and other script which will help you debug your application. [00:06:07](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m07s) We are doing that in a off-site environment. It is time consuming, difficult, and expensive. [00:06:26](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m26s) It's much easier doing it offline; again, if you don't know how to do that, please visit Lynda.com and look at a course called "Up and Running with Linux for PHP Developers with Jon Peck." [00:06:59](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h06m59s) It is an excellent course to get your own local developing environment setup. I've watched it long ago [00:07:24](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m24s) and it's been very helpful to get my initial sandbox setup. With time you'd get better and find better ways, but this is a good place to start.
### The Best Functional Place for Component Builder
[00:07:51](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h07m51s)
Component Builder's best place of being functional is offline. If you going to do it online, please realize that there might be security risks, especially if you have compiled an application. It places it into your temporary folder which can be accessed from anywhere. Anyone can access your temporary folder on the server of your website. [00:08:14](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h08m14s) You can delete the application there immediately with a button which I will show you later. In spite of that I still feel unsafe. The purpose of the application was live in a developing environment where you have Joomla installed and where you can test it intensely. I would suggest you do it that way none the less.[00:08:45](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h08m45s)
Component Builder's best place of being functional is offline. If you going to do it online, please realize that there might be security risks, especially if you have compiled an application. It places it into your temporary folder which can be accessed from anywhere. Anyone can access your temporary folder on the server of your website. [00:08:14](https://www.youtube.com/watch?v=9evJkBTnKxE&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h08m14s) You can delete the application there immediately with a button which I will show you later. In spite of that I still feel unsafe. The purpose of the application was live in a developing environment where you have Joomla installed and where you can test it intensely. I would suggest you do it that way none the less.
### Help Me to Ensure the Future of the Component