Drivers |
[eluser]GabrieleMartino[/eluser]
Hi, the user guide say about how to build drivers the following : Driver Directory and File Structure Sample driver directory and file structure layout: /application/libraries/Driver_name Driver_name.php drivers Driver_name_subclass_1.php Driver_name_subclass_2.php Driver_name_subclass_3.php NOTE: In order to maintain compatibility on case-sensitive file systems, the Driver_name directory must be ucfirst() Can some one explain better? Are some already done ad extensible driver? How do I create a child? How a siblings? What is ucfirst()? Does it mean /application/libraries/ucfirst ? In which point i should put ucfirst?
[eluser]Mr. Pickle[/eluser]
ucfirst() (probably stands for uppercase first) is a PHP function to make the first character of a string a capital. For example: Code: <?php
[eluser]GabrieleMartino[/eluser]
Thanks, I get it clear, i suppose now that the sintax for drivers is the same as library as they are special library. It seems there is not a special declaration for them. Just create a driver_class and their subclass. But still I can't get clear how to declear them... if we see the library just set Code: class MY_Child_Class extends Driver_Class { but is more like to use library in two different way. An example would be clearer.
[eluser]jmadsen[/eluser]
have a look here: http://www.kevinphillips.co.nz/news/code...-tutorial/ and here: http://www.codebyjeff.com/blog/2012/01/f...ci-drivers |
Welcome Guest, Not a member yet? Register Sign In |