Long awaited features now implemented. Main highlights include cross
database join's. Functions on DisplayList() fields and a way to change
where the required indicator (*) is on forms and the character that is
displayed after the label.
A rundown of the complete changes include:
* Updated example
* Completely rewritten Export class with CVS, JSON, XML and SQL
support
* Export() function on DbTemplate for seamless exporting
* Removed the requirement to have DB_DEFAULT defined
* DisplayList() now places a for NULL table values for IE
border support
* GetList() and Join() now support cross database queries
* Added the "required" class to the field items that are required
* DisplayList() $options can now take a function name as a value for
a field.
* Added the DateTimeDiff() function to the global functions to
produce a human readable "time ago" output.
* Added a type of "settings" for forms to manipulate the Form::Form()
function output.
* A few bug fixes.
Nick DeNardis wrote:
> Long awaited features now implemented. Main highlights include cross
> database join's. Functions on DisplayList() fields and a way to change
> where the required indicator (*) is on forms and the character that is
> displayed after the label.
> A rundown of the complete changes include:
> * Updated example
> * Completely rewritten Export class with CVS, JSON, XML and SQL
> support
> * Export() function on DbTemplate for seamless exporting
> * Removed the requirement to have DB_DEFAULT defined
> * DisplayList() now places a for NULL table values for IE
> border support
> * GetList() and Join() now support cross database queries
> * Added the "required" class to the field items that are required
> * DisplayList() $options can now take a function name as a value for
> a field.
> * Added the DateTimeDiff() function to the global functions to
> produce a human readable "time ago" output.
> * Added a type of "settings" for forms to manipulate the Form::Form()
> function output.
> * A few bug fixes.
> Long awaited features now implemented. Main highlights include cross
> database join's. Functions on DisplayList() fields and a way to change
> where the required indicator (*) is on forms and the character that is
> displayed after the label.
> A rundown of the complete changes include:
> * Updated example
> * Completely rewritten Export class with CVS, JSON, XML and SQL
> support
> * Export() function on DbTemplate for seamless exporting
> * Removed the requirement to have DB_DEFAULT defined
> * DisplayList() now places a for NULL table values for IE
> border support
> * GetList() and Join() now support cross database queries
> * Added the "required" class to the field items that are required
> * DisplayList() $options can now take a function name as a value for
> a field.
> * Added the DateTimeDiff() function to the global functions to
> produce a human readable "time ago" output.
> * Added a type of "settings" for forms to manipulate the Form::Form()
> function output.
> * A few bug fixes.
Warning: include_once(DIR_ABSsimpl/config.php) [function.include-
once]: failed to open stream: No such file or directory in /home/
parents/public_html/simpl/simpl.php on line 6
Warning: include_once() [function.include]: Failed opening
'DIR_ABSsimpl/config.php' for inclusion (include_path='.:/usr/lib/php:/
usr/local/lib/php:/usr/bin/convert:/home/parents/php') in /home/
parents/public_html/simpl/simpl.php on line 6
Warning: include_once(FS_SIMPLfunctions.php) [function.include-once]:
failed to open stream: No such file or directory in /home/parents/
public_html/simpl/simpl.php on line 9
Warning: include_once() [function.include]: Failed opening
'FS_SIMPLfunctions.php' for inclusion (include_path='.:/usr/lib/php:/
usr/local/lib/php:/usr/bin/convert:/home/parents/php') in /home/
parents/public_html/simpl/simpl.php on line 9
Warning: include_once(FS_SIMPLmain.php) [function.include-once]:
failed to open stream: No such file or directory in /home/parents/
public_html/simpl/simpl.php on line 12
Warning: include_once() [function.include]: Failed opening
'FS_SIMPLmain.php' for inclusion (include_path='.:/usr/lib/php:/usr/
local/lib/php:/usr/bin/convert:/home/parents/php') in /home/parents/
public_html/simpl/simpl.php on line 12
Fatal error: Class 'Simpl' not found in /home/parents/public_html/
simpl/simpl.php on line 15
Marion, Have you taken a look at the example that is included with PHPSimpl? the DIR_ABS is the actual file system path to the web viewable directory of your site. Try putting this line at the top of your php file and see what it displays: "print_r($_SERVER["DOCUMENT_ROOT"]);"
You could also try this to make it variable throughout multiple sites on your server if you are in a shared hosting environment define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
> Warning: include_once(DIR_ABSsimpl/config.php) [function.include- > once]: failed to open stream: No such file or directory in /home/ > parents/public_html/simpl/simpl.php on line 6
> Warning: include_once() [function.include]: Failed opening > 'DIR_ABSsimpl/config.php' for inclusion (include_path='.:/usr/lib/php:/ > usr/local/lib/php:/usr/bin/convert:/home/parents/php') in /home/ > parents/public_html/simpl/simpl.php on line 6
> Warning: include_once(FS_SIMPLfunctions.php) [function.include-once]: > failed to open stream: No such file or directory in /home/parents/ > public_html/simpl/simpl.php on line 9
> Warning: include_once() [function.include]: Failed opening > 'FS_SIMPLfunctions.php' for inclusion (include_path='.:/usr/lib/php:/ > usr/local/lib/php:/usr/bin/convert:/home/parents/php') in /home/ > parents/public_html/simpl/simpl.php on line 9
> Warning: include_once(FS_SIMPLmain.php) [function.include-once]: > failed to open stream: No such file or directory in /home/parents/ > public_html/simpl/simpl.php on line 12
> Warning: include_once() [function.include]: Failed opening > 'FS_SIMPLmain.php' for inclusion (include_path='.:/usr/lib/php:/usr/ > local/lib/php:/usr/bin/convert:/home/parents/php') in /home/parents/ > public_html/simpl/simpl.php on line 12
> Fatal error: Class 'Simpl' not found in /home/parents/public_html/ > simpl/simpl.php on line 15
hi nick thankyou, yes, have been attempting also with the example - i know i will get this to work with your assistance. how long are you online for? approx?
marion
On 13/03/2008 8:25:37 PM, Nick DeNardis (nick.denar...@gmail.com) wrote:
> Marion, > Have you taken a look at the example that is included with PHPSimpl? > the DIR_ABS is the actual file system path to the web viewable > directory of your site. Try putting this line at the top of your php > file and see what it displays: "print_r($_SERVER["DOCUMENT_ROOT"]);"
> You could also try this to make it variable throughout multiple sites > on your server if you are in a shared hosting environment > define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
> > Warning: include_once(DIR_ABSsimpl/config.php) [function.include- > > once]: failed to open stream: No such file or directory in /home/ > > parents/public_html/simpl/simpl.php
On Thu, Mar 13, 2008 at 6:51 AM, marion <mar...@spiderweb.com.au> wrote:
> hi nick > thankyou, yes, have been attempting also with the example - i know i will > get this to work with your assistance. > how long are you online for? approx?
> marion
> On 13/03/2008 8:25:37 PM, Nick DeNardis (nick.denar...@gmail.com) wrote: > > Marion, > > Have you taken a look at the example that is included with PHPSimpl? > > the DIR_ABS is the actual file system path to the web viewable > > directory of your site. Try putting this line at the top of your php > > file and see what it displays: "print_r($_SERVER["DOCUMENT_ROOT"]);"
> > You could also try this to make it variable throughout multiple sites > > on your server if you are in a shared hosting environment > > define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
> > > Warning: include_once(DIR_ABSsimpl/config.php) [function.include- > > > once]: failed to open stream: No such file or directory in /home/ > > > parents/public_html/simpl/simpl.php
> I will be on and off the computer all day and will be able to respond
> to your questions if you need further assistance.
> On Thu, Mar 13, 2008 at 6:51 AM, marion <mar...@spiderweb.com.au> wrote:
> > hi nick
> > thankyou, yes, have been attempting also with the example - i know i will
> > get this to work with your assistance.
> > how long are you online for? approx?
> > marion
> > On 13/03/2008 8:25:37 PM, Nick DeNardis (nick.denar...@gmail.com) wrote:
> > > Marion,
> > > Have you taken a look at the example that is included with PHPSimpl?
> > > the DIR_ABS is the actual file system path to the web viewable
> > > directory of your site. Try putting this line at the top of your php
> > > file and see what it displays: "print_r($_SERVER["DOCUMENT_ROOT"]);"
> > > You could also try this to make it variable throughout multiple sites
> > > on your server if you are in a shared hosting environment
> > > define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
> > > > Warning: include_once(DIR_ABSsimpl/config.php) [function.include-
> > > > once]: failed to open stream: No such file or directory in /home/
> > > > parents/public_html/simpl/simpl.php
re:the example folder
what do you recommend?
do i place the files into the simpl folder or do i upload it as is
into the root folder, so it is on the same level as the simpl folder?
On Mar 13, 8:53 pm, "Nick DeNardis" <nick.denar...@gmail.com> wrote:
> I will be on and off the computer all day and will be able to respond
> to your questions if you need further assistance.
> On Thu, Mar 13, 2008 at 6:51 AM, marion <mar...@spiderweb.com.au> wrote:
> > hi nick
> > thankyou, yes, have been attempting also with the example - i know i will
> > get this to work with your assistance.
> > how long are you online for? approx?
> > marion
> > On 13/03/2008 8:25:37 PM, Nick DeNardis (nick.denar...@gmail.com) wrote:
> > > Marion,
> > > Have you taken a look at the example that is included with PHPSimpl?
> > > the DIR_ABS is the actual file system path to the web viewable
> > > directory of your site. Try putting this line at the top of your php
> > > file and see what it displays: "print_r($_SERVER["DOCUMENT_ROOT"]);"
> > > You could also try this to make it variable throughout multiple sites
> > > on your server if you are in a shared hosting environment
> > > define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
> > > > Warning: include_once(DIR_ABSsimpl/config.php) [function.include-
> > > > once]: failed to open stream: No such file or directory in /home/
> > > > parents/public_html/simpl/simpl.php
Root folder would be best, also remember so run the .sql file in the example folder to create the tables in your MySQL database and to edit the define.php with your database information.
On Thu, Mar 13, 2008 at 7:03 AM, marion <mar...@spiderweb.com.au> wrote:
> re:the example folder > what do you recommend? > do i place the files into the simpl folder or do i upload it as is > into the root folder, so it is on the same level as the simpl folder?
> On Mar 13, 8:53 pm, "Nick DeNardis" <nick.denar...@gmail.com> wrote:
> > I will be on and off the computer all day and will be able to respond > > to your questions if you need further assistance.
> > On Thu, Mar 13, 2008 at 6:51 AM, marion <mar...@spiderweb.com.au> wrote:
> > > hi nick > > > thankyou, yes, have been attempting also with the example - i know i will > > > get this to work with your assistance. > > > how long are you online for? approx?
> > > marion
> > > On 13/03/2008 8:25:37 PM, Nick DeNardis (nick.denar...@gmail.com) wrote: > > > > Marion, > > > > Have you taken a look at the example that is included with PHPSimpl? > > > > the DIR_ABS is the actual file system path to the web viewable > > > > directory of your site. Try putting this line at the top of your php > > > > file and see what it displays: "print_r($_SERVER["DOCUMENT_ROOT"]);"
> > > > You could also try this to make it variable throughout multiple sites > > > > on your server if you are in a shared hosting environment > > > > define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
ok, have uplooaded example folder into the root, same level as simpl
folder
and have run the .sql file in the example folder - the table have been
created.
> Root folder would be best, also remember so run the .sql file in the
> example folder to create the tables in your MySQL database and to edit
> the define.php with your database information.
Okay so now edit the define.php with you db connection settings at the bottom of the file. The go to http://yoursite.com/examples but replace your site.com with your domain. You should see the example blog.
Sent from my BlackBerry® wireless device
ok, have uplooaded example folder into the root, same level as simpl
folder
and have run the .sql file in the example folder - the table have been
created.
> Root folder would be best, also remember so run the .sql file in the
> example folder to create the tables in your MySQL database and to edit
> the define.php with your database information.
> You could also try this to make it variable throughout multiple sites
> on your server if you are in a shared hosting environment
> define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
define('DB_DEFAULT', 'simpl_example'); ======== is this correct?
define('DB_DEFAULT', 'parents_abc''); ========- or should it be
the name of my database? as
> Okay so now edit the define.php with you db connection settings at the bottom of the file. The go tohttp://yoursite.com/examplesbut replace your site.com with your domain. You should see the example blog.
> You could also try this to make it variable throughout multiple sites
> on your server if you are in a shared hosting environment
> define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
this is what i am seeing at the moment ...
---------------------------------------------------------
Warning: include_once(/home/parents/public_html/inc/classes.php)
[function.include-once]: failed to open stream: No such file or
directory in /home/parents/public_html/examples/inc/
application_top.php on line 10
Warning: include_once() [function.include]: Failed opening '/home/
parents/public_html/inc/classes.php' for inclusion (include_path='.:/
usr/lib/php:/usr/local/lib/php:/usr/bin/convert:/home/parents/php')
in /home/parents/public_html/examples/inc/application_top.php on line
10
Fatal error: Class 'Post' not found in /home/parents/public_html/
examples/index.php on line 6
> Okay so now edit the define.php with you db connection settings at the bottom of the file. The go tohttp://yoursite.com/examplesbut replace your site.com with your domain. You should see the example blog.
> > You could also try this to make it variable throughout multiple sites
> > on your server if you are in a shared hosting environment
> > define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
On Thu, Mar 13, 2008 at 8:13 AM, marion <mar...@spiderweb.com.au> wrote:
> what is this setting for?
> define('DB_DEFAULT', 'simpl_example');
> is it the name of my database?
> On Mar 13, 9:58 pm, "Nick DeNardis" <nick.denar...@gmail.com> wrote: > > You should not have to change anything except the db info > > Sent from my BlackBerry(R) wireless device
> > > You could also try this to make it variable throughout multiple sites > > > on your server if you are in a shared hosting environment > > > define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/');
RESULT:
still error messages on http://www.parentsawake.com/examples/ ---------------------------
Warning: include_once(/home/parents/public_html/inc/classes.php)
[function.include-once]: failed to open stream: No such file or
directory in /home/parents/public_html/examples/inc/
application_top.php on line 10
Warning: include_once() [function.include]: Failed opening '/home/
parents/public_html/inc/classes.php' for inclusion (include_path='.:/
usr/lib/php:/usr/local/lib/php:/usr/bin/convert:/home/parents/php')
in /home/parents/public_html/examples/inc/application_top.php on line
10
Fatal error: Class 'Post' not found in /home/parents/public_html/
examples/view.php on line 6
----------------------------------------
QUESTION: is this note by other user relevent to this release?
Good example! Thank you. Finally got it going. Had to comment out:
... include_once(DIR_INC . 'functions.php');
in the "application_top.php" file.
> in /home/parents/public_html/examples/inc/application_top.php on line > 10
> Fatal error: Class 'Post' not found in /home/parents/public_html/ > examples/view.php on line 6 > ---------------------------------------- > QUESTION: is this note by other user relevent to this release?
> Good example! Thank you. Finally got it going. Had to comment out: > ... include_once(DIR_INC . 'functions.php'); > in the "application_top.php" file.
Yup, it is the name of the database you ran the .sql file on. When
you
load the page it will connect to the server and select that database.
--------------------
ok , have changed that database name setting also ... and uploaded...
by the error messages, it still does not appear to be connecting ...
still appears n
Hmm.. it seems the with the DIR_ABS, try replacing it with this line.
--------------------------
ok have tried replacing it - have tried 2 diffferent codes in that
line
Okay I see whats up, Change this define: define('FS_SIMPL', DIR_ABS . '../simpl/');
Make sure PHPSimpl is uploaded to: /home/parents/public_html/simpl/
It was just looking for simpl inside the /examples folder. Make sure you have this for your DIR_ABS: define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/examples/');
On Thu, Mar 13, 2008 at 8:59 AM, marion <mar...@spiderweb.com.au> wrote:
> Hmm.. it seems the with the DIR_ABS, try replacing it with this line. > -------------------------- > ok have tried replacing it - have tried 2 diffferent codes in that > line
Okay I see whats up, Change this define:
define('FS_SIMPL', DIR_ABS . '../simpl/');
Make sure PHPSimpl is uploaded to:
/home/parents/public_html/simpl/
It was just looking for simpl inside the /examples folder. Make sure
you have this for your DIR_ABS:
define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/examples/');
=====================
1. ok, have
changed
define('FS_SIMPL', DIR_ABS . 'simpl/');
to
define('FS_SIMPL', DIR_ABS . '../simpl/');
2, yes,
PHPSimpl is uploaded to:
/home/parents/public_html/simpl/
3. yes, IN EXAMPLE/INC folder, i have in define.php for the
DIR_ABS:
define('DIR_ABS', $_SERVER["DOCUMENT_ROOT"] . '/examples/');
===========================
EUREKA, you have found it !....
now the message is
1046 - No database selected
SELECT * FROM `post` LIMIT 1
----------------------------------------
QUESTION
is this what is meant to be ???