an Administrator Interface Introduction In the first three tutorials, we have developed a MVC component that retrieves its data from a table in the database. Currently, there is no way to add data to the database except to do it manually using another tool. In this tutorial, we will develop an administrator section for our component which will make it possible to manage the entries in the database. Creating the Basic Framework The basic framework of the administrator panel is very similar to the site portion. The main entry point for the administrator section of the component is admin.hello.php. This file is identical to the hello.php file that was used in the site portion except the name of the controller it loads will be changed to HellosController. The default controller is also called controller.php and this file is identical to the default controller in the site portion, with the exception that the controller is named HellosController instead of HelloController. This difference is...
Model-View-Controller Component - Part 2 - Adding a Model Introduction In the first tutorial of this series, creating a simple view-controller component using the Joomla! 1.5 CMS framework was demonstrated. In the first tutorial, the greeting was hardcoded into the view. This doesn’t follow the MVC pattern exactly because the view is intended to only display the data, and not contain it. In this second part of the tutorial we will demonstrate how to move this out of the view and into a model. In future tutorials we will demonstrate the power and flexibility that this design pattern provides. Creating the Model The concept of model gets its name because this class is intended to represent (or ‘model’) some entity. In our case, our first model will represent a ‘hello’, or a greeting. This is in line with our design thus far, because we have one view (’hello’), which is a view of our greeting. The naming convention for models in the Joomla! framework is that the class name starts with the...
What is overclocking? Overclocking is pushing your CPU to run at a faster clock speed than the manufacturer has it set at. What is involved? FSB For Intel Core 2 Duo’s typically you overclock by simply raising the FSB (front side buss). This speed is set at 266Mhz for the E6xxx-X6800. The FSB is set at 200Mhz for the e4xxx series. Raising the FSB is the only way to overclock your Core 2 Duo, unless it is an engineer sample chip or an X6800+ (Both of these have unlocked multipliers.) Multiplier To overclock your Intel Core 2 Duo by using the multiplier, you simply change that number to a higher number than its stock multiplier. For example an engineer sample chip E6300 has a multiplier of 7x, but you can change it to a higher value, say 9x. If you leave the FSB at 266, then 9x266 = 2400Mhz = 2.4Ghz. PCI-E When you overclock your CPU by raising the FSB, you not only overclock the CPU, but you also overclock your PCI-E. On most motherboards you can lock your PCI-E to 100Mhz (recomme...
Nhận xét
Đăng nhận xét