bobsters Posted January 25, 2012 Report Share Posted January 25, 2012 Man ir tāds jautājums vai un kā var piemēram iekšā class pievienot failu <include "test.php"> no kura klase nem parametrus. //ievietots seit ari netiek doti dati klasei include ('x.php'); class suns{ //un seit ievietojot ari netiek doti dati function __autoload(){ include ('x.php'); } function x(){ //kkads kods kurs izmanto datus no x.php } function y(){ //kods kurs izmanto datus no x.php } } Link to comment Share on other sites More sharing options...
daGrevis Posted January 25, 2012 Report Share Posted January 25, 2012 Iekš metodes x() arī ielādē to failu ar require() un paņem no viņa ko tev vajag. Vai iekš konstruktora un uzsetto datus kā objekta propertijus. Link to comment Share on other sites More sharing options...
bobsters Posted January 25, 2012 Author Report Share Posted January 25, 2012 Paldies! Problema atrisināta Link to comment Share on other sites More sharing options...
Recommended Posts