needs some refining..

Recommend this page to a friend!

      PHP GUI API  >  All threads  >  needs some refining..  >  (Un) Subscribe thread alerts  
Subject:needs some refining..
Summary:needs some refining..
Author:Chris Kawahito
Date:2012-12-27 22:31:44
Update:2013-01-11 03:39:08

  1. needs some refining..   Reply   Report abuse  
Picture of Chris Kawahito Chris Kawahito - 2012-12-27 22:31:44
For me, to get it to work it took:

For the examples/form page to work:
Need to add a couple of lines at top:
include ('../autoloader.php');

Autoloader.php has an error(?) change a line to look like:
if(file_exists($base)) include($base);
**not $basepath, which seemed undefined.

url.php will stop the show with facebook icons missing (in template folder
which doesn't exist) so comment out as the following:

public function __construct($url, $parse = FALSE, $validate = TRUE){
echo $url;
if ($validate and !$this->isValid($url)){
// throw new UrlException('The specified URL is invalid.');

  2. Re: needs some refining..   Reply   Report abuse  
Picture of Ordland Euroboros Ordland Euroboros - 2012-12-27 22:41:00 - In reply to message 1 from Chris Kawahito
Thanks for pointing this one. I redesigned the autoloader upon uploading the files since I decide to split up the files into various subdirectories rather than one gigantic directory. Guess I wasnt being careful enough, sorry about that. And for URL class, I already set the default validation parameter to be false, so the URL wont auto-validate.

  3. Re: needs some refining..   Reply   Report abuse  
Picture of Darren Conyard Darren Conyard - 2013-01-09 18:26:04 - In reply to message 2 from Ordland Euroboros
Hi Ordland,

This seems to work OK for me, but there are some other facets of this class that I thought you should know about:

within form.php your checking is $_POST['submit'] is set if it is then you bring back the results of the posted form.

Instead of if($_POST['submit']) maybe if(isset($_POST['submit']) is better as your still performing the same check but it does not result in an undefined index if $_POST['submit'] is not set.

Theres a typo on line 71 of align.php, it reads $this->vertial and should be vertical.

Within Filefield.php $accept is also appearing as an undefined index I think this should be declared as a protected variable within the class.

It works well and renders the HTML pretty quickly which is great.

Thanks for the class.

Best Regards

Darren Conyard

  4. Re: needs some refining..   Reply   Report abuse  
Picture of Ordland Euroboros Ordland Euroboros - 2013-01-11 03:39:08 - In reply to message 3 from Darren Conyard
Thanks for pointing these out, I've fixed them all and hopefully the script will work out better. Also I appreciate your kind comment, I wish this API will help some people to build easy HTML GUI elements.


For more information send a message to info at phpclasses dot org.