![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 48 Pomógł: 0 Dołączył: 1.08.2008 Ostrzeżenie: (0%) ![]() ![]() |
napisałem sobie mała funkcje
lądującą FCK editor i Teraz pytanie czy jest ona dobrze napisana zamiast ładować tam gdzie trzeba ciągle taki kod Kod $oFCKeditor = new FCKeditor('tresc'); $oFCKeditor->BasePath = './fckeditor/'; $oFCKeditor->Value = $wiersz['zawartosc']; $oFCKeditor->Width = '100%'; $oFCKeditor->Height = '600'; $oFCKeditor->Create(); to ja napisałem tak: Kod function load_fck($pole,$value,$width,$height){ global $oFCKeditor; $oFCKeditor = new FCKeditor($pole); $oFCKeditor->BasePath = './fckeditor/'; $oFCKeditor->Value = $value; $oFCKeditor->Width = $width; //100% $oFCKeditor->Height = $height; //600 $oFCKeditor->Create(); } I teraz po prostu wywołuje fck w taki sposób Kod $def = $wiersz['zawartosc']; load_fck('tresc',$def,'100%','600'); Czy jest to lepsze rozwiązanie niż stary kod ![]() Ten post edytował devil-war 23.08.2008, 20:53:37 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 03:28 |