J'utilise la bibliothèque fullPHP et je ne comprends pas certaines sources.Comment transformer des tableaux en classes comme fullphp
La bibliothèque a une sorcière classe de configuration sera appelée comme
Config::load('test.php', true);
le test.php ressemble à ceci:
<?php
return array(
'base_url' => null,
'profiling_paths' => array(
'APPPATH' => 'APPPATH',
'COREPATH' => 'COREPATH',
'PKGPATH' => 'PKGPATH'
)
);
Dans la classe elle-même le test.php est interprété comme un tableau pas comme une chaîne. Comment ça fonctionne?
Vous trouverez ici la classe: https://github.com/fuel/core/blob/1.9/develop/classes/config.php
Relisez ce que fait [méthode] (https://www.youtube.com/watch?v=uqJNhuCqW-Y). – Tpojka