Hello,
i wrote something that can be used with CKeditor for an exapmle. If you have time and maybe even a need please give it a try and let me know what you think. It just the the beginning so may have some bugs.
I know my html sucks... please comment the functionality.
http://keevitaja.com/?p=11
Search found 8 matches
- Mon Nov 02, 2009 2:28 pm
- Forum: Coding Critique
- Topic: The image browser for WYSIWYG editor
- Replies: 0
- Views: 1893
- Fri Oct 30, 2009 12:40 pm
- Forum: PHP - Code
- Topic: LSB (PHP 5.3) problem with static value!
- Replies: 3
- Views: 141
Re: LSB (PHP 5.3) problem with static value!
well this code is working 100% so no more suggestions is needed. <?php class A { protected static $text; public static function init($one = '', $two = '') { $obj = new static; $obj->one = $one; $obj->two = $two; $obj->static_text = static::$text; ...
- Fri Oct 30, 2009 12:27 pm
- Forum: PHP - Code
- Topic: LSB (PHP 5.3) problem with static value!
- Replies: 3
- Views: 141
Re: LSB (PHP 5.3) problem with static value!
i solved the problem:
Code: Select all
public static function init($one = '', $two = '') {
$obj = new static;- Fri Oct 30, 2009 12:09 pm
- Forum: PHP - Code
- Topic: LSB (PHP 5.3) problem with static value!
- Replies: 3
- Views: 141
Re: LSB (PHP 5.3) problem with static value!
http://www.php.net/manual/en/language.oop5.late-static-bindings.php it is static binding... check B::output_text() is working... my question is PHP 5.3 specific! static binding wasn't present in previous versions! it has no efect: public static function output_text() { echo 'here shoult b...
- Fri Oct 30, 2009 11:24 am
- Forum: PHP - Code
- Topic: LSB (PHP 5.3) problem with static value!
- Replies: 3
- Views: 141
LSB (PHP 5.3) problem with static value!
my question is PHP 5.3 specific! static binding wasn't present in previous versions! hello, i'm having a problem. static::$text variable gets lost at some point. can someone please correct and explain it to me? <?php class A { protected static $text; public static function init($one =...
- Sun Oct 25, 2009 3:36 pm
- Forum: PHP - Code
- Topic: Link to root directory
- Replies: 4
- Views: 164
Re: Link to root directory
define(DIR_SEP, DIRECTORY_SEPARATOR); define(PATH, dirname(__FILE__).DIR_SEP); $url_path = str_replace(str_replace('\\', '/', $_SERVER["DOCUMENT_ROOT"]), '', str_replace('\\', '/', PATH)); $url_path = (ereg('^/', $url_path)) ? $url_path : '/'.$url_path; define(URL_PATH, $url_path); unse...
- Wed Feb 25, 2009 1:22 pm
- Forum: PHP - Code
- Topic: Sending Mail from php
- Replies: 7
- Views: 162
Re: Sending Mail from php
use PhpMailer!
- Wed Feb 25, 2009 7:51 am
- Forum: PHP - Code
- Topic: parent child many
- Replies: 0
- Views: 129
parent child many
hello, i'm trying to create a recrusive parent child meny on my site. somehow my code doesn't work: function LoadMeny($parent_id = 0, $level = 0) { global $db; $query = $db->query("SELECT page_id, parent_id FROM ".DB_PAGES." WHERE parent_id='$parent_id'...