You can subscribe to this list here.
| 2006 |
Jan
(4) |
Feb
(13) |
Mar
(24) |
Apr
(27) |
May
(11) |
Jun
(2) |
Jul
(9) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2010 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
|
From: Clinton V. D. B. <cli...@gm...> - 2010-12-09 04:25:34
|
Hi All. I have been looking at the WASP website and at the user list archive but I have not managed to find any mention of how to deploy a WASP application to a LIVE hosting server. What I would like to know is what needs to be installed on the hosting server in order for a WASP app to run? I see that there is a main application config file for example Blog_config.php in the application root folder. So to deploy a WASP app do you: 1. Zip app the application root folder. 2. FTP it to the server. 3. Unzip in the apache www directory. 4. Create new database in hosting server MySQL. 5. Change the main app config file to suite hosting server & database. so is that it? ..........or is there more like.... 1. Install all the extra PEAR packages on hosting server. 2. Install WASP on hosting server. 3. Install PHING on hosting server. Thanks. Clint. |
|
From: Noten M. <mar...@te...> - 2006-12-19 12:25:14
|
Dear all,
my question is about how well WASP supports inheritance. WASP uses the PE=
AR DB_DataObject package and the DataObjectWrapper extends PEAR. Let's co=
nsider the following use case:
-- Table PERSON
create table person {
id mediumint not null auto_increment,
surname varchar(60),
forename varchar(60)
}
-- Table SALES_PERSON
-- A sales person is a person with an extra column number and superSalesP=
ersonId
create table sales_person {
id mediumint not null auto_increment,
number int not null,
personId not null,
superSalesPersonId mediumint,
-- 2 FK constraints...
}
I think we have to use the getLink() or getLinks() method from the PEAR D=
B_DataObject package like:
$person =3D $salesPerson->getLink('personId')
I think you can munually modify the SalesPersonWrapper class so that it e=
xtends from the PersonWrapper class. But how can I now create a new sales=
person from a form that contains surname, forname, number and superSales=
PersonId input fields?
$oPerson =3D new PersonWrapper();
$oPerson->fillFromRequest();
$oPerson->save();
$personId =3D $oPerson->getId();
$oSalesPerson =3D new SalesPersonWrapper();
$oSalesPerson->fillFromRequest();
// Make the inheritance link
$oSalesPerson->setPersonId($personId);
It would be nice if you could skip the first part of the code because the=
above code does not have any concept of inheritance.
Another question I have is about using more than one database? I think yo=
u have modify one of the db classes that makes the actual database connec=
tion so you can work with more than one database. I think I'm not the onl=
y one who needs this functionality so maybe somebody can post the needed =
PHP code.
Best regards,
Mark
|
|
From: Buddy T. <me...@my...> - 2006-08-15 07:06:49
|
Hi, I need some help with DataObjectWrappers. Here is my situation I have two tables: Categories and Subcategories. Subcategoies table contains a category_id column that references what main category it belongs to. I want to join the two tables to get the name of the main category for each subcategories. I saw one example where someone join two tables using two DataObjectWrapper object references to create a single array but I'm afraid this might make my application use too many MySQL connections to do a joined table operation that could be done in a single connection. Is there a way to create a joined table DataObjectWrapper (like CategoriesSubcategoriesWrapper or something) Also, what is the best way to sort the order of a DataObjectWrapper (like SQL's ORDER BY)? Do I just sort the array I create? And how do you limit the DataObjectWrapper's find() (like LIMIT in SQL)? Thank you, Buddy Toups Graphic Design and Web Development http://www.mydesignbuddy.com |
|
From: Nigel K. <nig...@pa...> - 2006-07-28 21:28:25
|
Something I have done in the past to solve problems like these is to use
the {variable:h} notation which allows HTML and will output the whole
string like below:
Controller code:
$this->setPlaceholder('myCheckbox', '<input name="mycheckbox"
type="checkbox" checked="checked"/>');
Template code:
{myCheckbox:h}
Hope it helps,
Nigel
Imanol Iglesias wrote:
> Hi
>
> Sometimes i have similar problems. In this cases i use this code:
>
> Controller code:
> if($myDatabaseBoolean){
> $this->setPlaceholder('checkedString', true);
> }
>
> Chuck code:
> {if:checkedString}
> <input name="mycheckbox" type="checkbox" checked="checked"/>
> {else:}
> <input name="mycheckbox" type="checkbox"/>
> {end:}
>
> Regards
> Imanol
>
>
> 2006/7/25, was...@li...
> <mailto:was...@li...> <
> was...@li...
> <mailto:was...@li...>>:
>
> Send Wasp-users mailing list submissions to
> was...@li...
> <mailto:was...@li...>
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/wasp-users
> or, via email, send a message with subject or body 'help' to
> was...@li...
> <mailto:was...@li...>
>
> You can reach the person managing the list at
> was...@li...
> <mailto:was...@li...>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Wasp-users digest..."
>
>
> Today's Topics:
>
> 1. Form Checkbox select checked (Flexy/Chuck) (Buddy Toups)
>
>
> ----------------------------------------------------------------------
>
>
> Message: 1
> Date: Mon, 24 Jul 2006 19:57:21 -0500
> From: Buddy Toups <me...@my... <mailto:me...@my...>>
> Subject: [Wasp-users] Form Checkbox select checked (Flexy/Chuck)
> To: was...@li...
> <mailto:was...@li...>
> Message-ID: <85c...@my...
> <mailto:85c...@my...>>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Hi, I really new to WASP (really dig it!) and had experience with
> Smarty. Flexy is much cooler, but I have a small problem. I want to
> make a checkbox select depending on a variable from a database.
>
> This is what I want outputted if the preset value is true:
> <input name="mycheckbox" type="checkbox" checked="checked" />
>
> or if its false:
> <input name="mycheckbox" type="checkbox" />
>
> I've tried using a string and a placeholder but Flexy comes up with an
> error.
>
> Controller code:
> if($myDatabaseBoolean){
> $this->setPlaceholder('checkedString', ' checked="checked"
> ');
> }
>
> Chuck code:
> <input name="mycheckbox" type="checkbox" {checkedString} />
>
> If someone can please help me with this issue that would be great.
>
> Thanks,
> Buddy
>
>
>
>
> ------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>
> ------------------------------
>
> _______________________________________________
> Wasp-users mailing list
> Was...@li...
> <mailto:Was...@li...>
> https://lists.sourceforge.net/lists/listinfo/wasp-users
>
>
> End of Wasp-users Digest, Vol 2, Issue 1
> ****************************************
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Wasp-users mailing list
> Was...@li...
> https://lists.sourceforge.net/lists/listinfo/wasp-users
>
|
|
From: Buddy T. <me...@my...> - 2006-07-28 20:07:50
|
Thanks Joshua
I tried your suggestion and the following error occurred:
Error:/Users/buddytoups/Sites/teamtrident_app//./UserAdd/templates/
index.chunk on Line 16 <INPUT>: You can not mix flexy:if= or
flexy:foreach= with dynamic form elements (turn off tag to element code
with flexyIgnore=0, use flexy:ignore="yes" in the tag or put the
conditional outside in a span tag
So I tried adding flexy:ignore="yes" and it works:
<input type="checkbox" name="admin_jobs" checked="checked"
flexy:if="isChecked" flexy:ignore="yes" />
<input type="checkbox" name="admin_jobs" flexy:if="isNotChecked"
flexy:ignore="yes" />
It's a little weird, but it works and is not to complicated.
Thanks for the help,
Buddy Toups
On Jul 25, 2006, at 1:39 PM, Joshua Doss wrote:
> A cheap way to do this would be to have two checkboxes. Your
> controller would look like:
>
> if ($myDatabaseBoolean)
> {
> $this->setPlaceholder('isChecked', 'true');
> }
> else
> {
> $this->setPlaceholder('isNotChecked', 'true');
> }
>
> Then your flexy code would be:
>
> <input type="checkbox" name='mycheckbox" checked="checked"
> flexy:if="isChecked" />
> <input type="checkbox" name='mycheckbox" flexy:if="isNotChecked" />
>
> This is because flexy:if translates to--essentially--an isset/defined
> sort of boolean.
>
> The direct Flexy API itself provides a means to set arbitrary
> key/value pairs within a tag for a given id, but the Chunk API does
> not re-expose this functionality to the end-user. The Flexy API
> strikes me as a bit painful for this sort of use.
>
> -J.
>
>
> Buddy Toups wrote:
>> Hi, I really new to WASP (really dig it!) and had experience with
>> Smarty. Flexy is much cooler, but I have a small problem. I want to
>> make a checkbox select depending on a variable from a database.
>> This is what I want outputted if the preset value is true:
>> <input name="mycheckbox" type="checkbox" checked="checked" />
>> or if its false:
>> <input name="mycheckbox" type="checkbox" />
>> I've tried using a string and a placeholder but Flexy comes up with
>> an error.
>> Controller code:
>> if($myDatabaseBoolean){
>> $this->setPlaceholder('checkedString', ' checked="checked" ');
>> }
>> Chuck code:
>> <input name="mycheckbox" type="checkbox" {checkedString} />
>> If someone can please help me with this issue that would be great.
>> Thanks,
>> Buddy
>> ----------------------------------------------------------------------
>> ---
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share your
>> opinions on IT & business topics through brief surveys -- and earn
>> cash
>> http://www.techsay.com/default.php?
>> page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Wasp-users mailing list
>> Was...@li...
>> https://lists.sourceforge.net/lists/listinfo/wasp-users
>
|
|
From: Joshua D. <jos...@op...> - 2006-07-28 05:22:39
|
A cheap way to do this would be to have two checkboxes. Your controller
would look like:
if ($myDatabaseBoolean)
{
$this->setPlaceholder('isChecked', 'true');
}
else
{
$this->setPlaceholder('isNotChecked', 'true');
}
Then your flexy code would be:
<input type="checkbox" name='mycheckbox" checked="checked"
flexy:if="isChecked" />
<input type="checkbox" name='mycheckbox" flexy:if="isNotChecked" />
This is because flexy:if translates to--essentially--an isset/defined
sort of boolean.
The direct Flexy API itself provides a means to set arbitrary key/value
pairs within a tag for a given id, but the Chunk API does not re-expose
this functionality to the end-user. The Flexy API strikes me as a bit
painful for this sort of use.
-J.
Buddy Toups wrote:
> Hi, I really new to WASP (really dig it!) and had experience with
> Smarty. Flexy is much cooler, but I have a small problem. I want to
> make a checkbox select depending on a variable from a database.
>
> This is what I want outputted if the preset value is true:
> <input name="mycheckbox" type="checkbox" checked="checked" />
>
> or if its false:
> <input name="mycheckbox" type="checkbox" />
>
> I've tried using a string and a placeholder but Flexy comes up with an
> error.
>
> Controller code:
> if($myDatabaseBoolean){
> $this->setPlaceholder('checkedString', ' checked="checked" ');
> }
>
> Chuck code:
> <input name="mycheckbox" type="checkbox" {checkedString} />
>
> If someone can please help me with this issue that would be great.
>
> Thanks,
> Buddy
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wasp-users mailing list
> Was...@li...
> https://lists.sourceforge.net/lists/listinfo/wasp-users
|
|
From: <me...@my...> - 2006-07-26 16:19:59
|
Thanks for the advise Jay,
It looks like it works prefect for other form elements that use the
"value" attribute but it did not work for the checkbox. I guess the
checkbox differs because it uses the "checked" attribute not the
"value" attribute. Is there a way to set individual attributes in a
Chuck Object? I saw a method in the Flexy documentation.
If anyone can figure a better way than using "flexy:if" "flexy:ignore"
great. If not it would be cool to implement a new method that modifies
attributes of an element.
Thanks,
Buddy
> -------- Original Message --------
> Subject: Re: [Wasp-users] Form Checkbox select checked (Flexy/Chuck)
> From: Jason Penney <jp...@jc...>
> Date: Wed, July 26, 2006 6:54 am
> To: Buddy Toups <me...@my...>
> Cc: was...@li...
>
> Buddy Toups wrote:
> > This is what I want outputted if the preset value is true:
> > <input name="mycheckbox" type="checkbox" checked="checked" />
> >
> > or if its false:
> > <input name="mycheckbox" type="checkbox" />
>
> I Might be mis-remembering how I did this, and I'm unable to check at
> the moment, but I thought you could use setFormElement to do this.
>
> in chunk:
> <input name="mycheckbox" type="checkbox" />
>
> in Controller:
> if($myDatabaseBoolean){
> $this->setFormElement('mycheckbox',true);
> }
>
> or even
>
> $this->setFormElement('mycheckbox',$myDatabaseBoolean);
>
>
>
> Does that work?
>
> Jay
>
> --
> Jason C Penney (jp...@jc...)
> http://www.jczorkmid.net/~jpenney/
|
|
From: Jason P. <jp...@jc...> - 2006-07-26 12:14:27
|
Buddy Toups wrote:
> This is what I want outputted if the preset value is true:
> <input name="mycheckbox" type="checkbox" checked="checked" />
>
> or if its false:
> <input name="mycheckbox" type="checkbox" />
I Might be mis-remembering how I did this, and I'm unable to check at
the moment, but I thought you could use setFormElement to do this.
in chunk:
<input name="mycheckbox" type="checkbox" />
in Controller:
if($myDatabaseBoolean){
$this->setFormElement('mycheckbox',true);
}
or even
$this->setFormElement('mycheckbox',$myDatabaseBoolean);
Does that work?
Jay
--
Jason C Penney (jp...@jc...)
http://www.jczorkmid.net/~jpenney/
|
|
From: Joshua D. <jos...@op...> - 2006-07-26 04:12:56
|
There's a number of approaches you could take, like not using
flexy:ignore and wrapping each checkbox in a div or span with the
flexy:if within that tag. Or use the Smarty-esque
{if:variable}{else:}{end:} syntax.
Personally I like using the bracket-based syntax as little as possible.
-J.
Buddy Toups wrote:
> Thanks Joshua
>
> I tried your suggestion and the following error occurred:
>
> Error:/Users/buddytoups/Sites/teamtrident_app//./UserAdd/templates/index.chunk
> on Line 16 <INPUT>: You can not mix flexy:if= or flexy:foreach= with
> dynamic form elements (turn off tag to element code with flexyIgnore=0,
> use flexy:ignore="yes" in the tag or put the conditional outside in a
> span tag
>
> So I tried adding flexy:ignore="yes" and it works:
>
> <input type="checkbox" name="admin_jobs" checked="checked"
> flexy:if="isChecked" flexy:ignore="yes" />
> <input type="checkbox" name="admin_jobs" flexy:if="isNotChecked"
> flexy:ignore="yes" />
>
> It's a little weird, but it works and is not to complicated.
>
> Thanks for the help,
> Buddy Toups
>
> On Jul 25, 2006, at 1:39 PM, Joshua Doss wrote:
>
>> A cheap way to do this would be to have two checkboxes. Your
>> controller would look like:
>>
>> if ($myDatabaseBoolean)
>> {
>> $this->setPlaceholder('isChecked', 'true');
>> }
>> else
>> {
>> $this->setPlaceholder('isNotChecked', 'true');
>> }
>>
>> Then your flexy code would be:
>>
>> <input type="checkbox" name='mycheckbox" checked="checked"
>> flexy:if="isChecked" />
>> <input type="checkbox" name='mycheckbox" flexy:if="isNotChecked" />
>>
>> This is because flexy:if translates to--essentially--an isset/defined
>> sort of boolean.
>>
>> The direct Flexy API itself provides a means to set arbitrary
>> key/value pairs within a tag for a given id, but the Chunk API does
>> not re-expose this functionality to the end-user. The Flexy API
>> strikes me as a bit painful for this sort of use.
>>
>> -J.
>>
>>
>> Buddy Toups wrote:
>>> Hi, I really new to WASP (really dig it!) and had experience with
>>> Smarty. Flexy is much cooler, but I have a small problem. I want to
>>> make a checkbox select depending on a variable from a database.
>>> This is what I want outputted if the preset value is true:
>>> <input name="mycheckbox" type="checkbox" checked="checked" />
>>> or if its false:
>>> <input name="mycheckbox" type="checkbox" />
>>> I've tried using a string and a placeholder but Flexy comes up with
>>> an error.
>>> Controller code:
>>> if($myDatabaseBoolean){
>>> $this->setPlaceholder('checkedString', ' checked="checked" ');
>>> }
>>> Chuck code:
>>> <input name="mycheckbox" type="checkbox" {checkedString} />
>>> If someone can please help me with this issue that would be great.
>>> Thanks,
>>> Buddy
>>> -------------------------------------------------------------------------
>>>
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>> share your
>>> opinions on IT & business topics through brief surveys -- and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>>
>>> _______________________________________________
>>> Wasp-users mailing list
>>> Was...@li...
>>> https://lists.sourceforge.net/lists/listinfo/wasp-users
>>
>
|
|
From: Buddy T. <me...@my...> - 2006-07-26 04:07:40
|
Actually, I tried using a span with flexy:if and the Smarty-like way
but flexy complaint about having two instances of the checkbox. I guess
its because it evaluates the input nodes with out processing the "if"
statements. Whatever, long as there is a solution at works.
Thank you so much for your help, I really am loving WASP. The framework
is so smart and simple to use and has a lightweight code base.
On Jul 25, 2006, at 9:54 PM, Joshua Doss wrote:
> There's a number of approaches you could take, like not using
> flexy:ignore and wrapping each checkbox in a div or span with the
> flexy:if within that tag. Or use the Smarty-esque
> {if:variable}{else:}{end:} syntax.
>
> Personally I like using the bracket-based syntax as little as possible.
>
> -J.
>
>
> Buddy Toups wrote:
>> Thanks Joshua
>> I tried your suggestion and the following error occurred:
>> Error:/Users/buddytoups/Sites/teamtrident_app//./UserAdd/templates/
>> index.chunk on Line 16 <INPUT>: You can not mix flexy:if= or
>> flexy:foreach= with dynamic form elements (turn off tag to element
>> code with flexyIgnore=0, use flexy:ignore="yes" in the tag or put the
>> conditional outside in a span tag
>> So I tried adding flexy:ignore="yes" and it works:
>> <input type="checkbox" name="admin_jobs" checked="checked"
>> flexy:if="isChecked" flexy:ignore="yes" />
>> <input type="checkbox" name="admin_jobs" flexy:if="isNotChecked"
>> flexy:ignore="yes" />
>> It's a little weird, but it works and is not to complicated.
>> Thanks for the help,
>> Buddy Toups
>> On Jul 25, 2006, at 1:39 PM, Joshua Doss wrote:
>>> A cheap way to do this would be to have two checkboxes. Your
>>> controller would look like:
>>>
>>> if ($myDatabaseBoolean)
>>> {
>>> $this->setPlaceholder('isChecked', 'true');
>>> }
>>> else
>>> {
>>> $this->setPlaceholder('isNotChecked', 'true');
>>> }
>>>
>>> Then your flexy code would be:
>>>
>>> <input type="checkbox" name='mycheckbox" checked="checked"
>>> flexy:if="isChecked" />
>>> <input type="checkbox" name='mycheckbox" flexy:if="isNotChecked" />
>>>
>>> This is because flexy:if translates to--essentially--an
>>> isset/defined sort of boolean.
>>>
>>> The direct Flexy API itself provides a means to set arbitrary
>>> key/value pairs within a tag for a given id, but the Chunk API does
>>> not re-expose this functionality to the end-user. The Flexy API
>>> strikes me as a bit painful for this sort of use.
>>>
>>> -J.
>>>
>>>
>>> Buddy Toups wrote:
>>>> Hi, I really new to WASP (really dig it!) and had experience with
>>>> Smarty. Flexy is much cooler, but I have a small problem. I want to
>>>> make a checkbox select depending on a variable from a database.
>>>> This is what I want outputted if the preset value is true:
>>>> <input name="mycheckbox" type="checkbox" checked="checked" />
>>>> or if its false:
>>>> <input name="mycheckbox" type="checkbox" />
>>>> I've tried using a string and a placeholder but Flexy comes up with
>>>> an error.
>>>> Controller code:
>>>> if($myDatabaseBoolean){
>>>> $this->setPlaceholder('checkedString', ' checked="checked" ');
>>>> }
>>>> Chuck code:
>>>> <input name="mycheckbox" type="checkbox" {checkedString} />
>>>> If someone can please help me with this issue that would be great.
>>>> Thanks,
>>>> Buddy
>>>> --------------------------------------------------------------------
>>>> -----
>>>> Take Surveys. Earn Cash. Influence the Future of IT
>>>> Join SourceForge.net's Techsay panel and you'll get the chance to
>>>> share your
>>>> opinions on IT & business topics through brief surveys -- and earn
>>>> cash
>>>> http://www.techsay.com/default.php?
>>>> page=join.php&p=sourceforge&CID=DEVDEV
>>>> _______________________________________________
>>>> Wasp-users mailing list
>>>> Was...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/wasp-users
>>>
>
|
|
From: Imanol I. <ima...@gm...> - 2006-07-25 21:50:15
|
Hi
Sometimes i have similar problems. In this cases i use this code:
Controller code:
if($myDatabaseBoolean){
$this->setPlaceholder('checkedString', true);
}
Chuck code:
{if:checkedString}
<input name="mycheckbox" type="checkbox" checked="checked"/>
{else:}
<input name="mycheckbox" type="checkbox"/>
{end:}
Regards
Imanol
2006/7/25, was...@li... <
was...@li...>:
>
> Send Wasp-users mailing list submissions to
> was...@li...
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.sourceforge.net/lists/listinfo/wasp-users
> or, via email, send a message with subject or body 'help' to
> was...@li...
>
> You can reach the person managing the list at
> was...@li...
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Wasp-users digest..."
>
>
> Today's Topics:
>
> 1. Form Checkbox select checked (Flexy/Chuck) (Buddy Toups)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 24 Jul 2006 19:57:21 -0500
> From: Buddy Toups <me...@my...>
> Subject: [Wasp-users] Form Checkbox select checked (Flexy/Chuck)
> To: was...@li...
> Message-ID: <85c...@my...>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Hi, I really new to WASP (really dig it!) and had experience with
> Smarty. Flexy is much cooler, but I have a small problem. I want to
> make a checkbox select depending on a variable from a database.
>
> This is what I want outputted if the preset value is true:
> <input name="mycheckbox" type="checkbox" checked="checked" />
>
> or if its false:
> <input name="mycheckbox" type="checkbox" />
>
> I've tried using a string and a placeholder but Flexy comes up with an
> error.
>
> Controller code:
> if($myDatabaseBoolean){
> $this->setPlaceholder('checkedString', ' checked="checked" ');
> }
>
> Chuck code:
> <input name="mycheckbox" type="checkbox" {checkedString} />
>
> If someone can please help me with this issue that would be great.
>
> Thanks,
> Buddy
>
>
>
>
> ------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> ------------------------------
>
> _______________________________________________
> Wasp-users mailing list
> Was...@li...
> https://lists.sourceforge.net/lists/listinfo/wasp-users
>
>
> End of Wasp-users Digest, Vol 2, Issue 1
> ****************************************
>
|
|
From: Buddy T. <me...@my...> - 2006-07-25 00:57:39
|
Hi, I really new to WASP (really dig it!) and had experience with
Smarty. Flexy is much cooler, but I have a small problem. I want to
make a checkbox select depending on a variable from a database.
This is what I want outputted if the preset value is true:
<input name="mycheckbox" type="checkbox" checked="checked" />
or if its false:
<input name="mycheckbox" type="checkbox" />
I've tried using a string and a placeholder but Flexy comes up with an
error.
Controller code:
if($myDatabaseBoolean){
$this->setPlaceholder('checkedString', ' checked="checked" ');
}
Chuck code:
<input name="mycheckbox" type="checkbox" {checkedString} />
If someone can please help me with this issue that would be great.
Thanks,
Buddy
|
|
From: Phillip J. <pj...@ha...> - 2006-06-24 18:17:33
|
Kevin,
It explains in the tutorial what is necessary to do.
{
If you get the following message:
can not write to 'compileDir', which is '/path/to/wasp/install/
directory/templates_c/'
Please give write and enter-rights to it
Make sure you have a templates_c directory in your wasp build
directory and that it has the correct permissions for your webserver
to read and write to it. This is the compiled templates directory
where Flexy writes all of the compiled php code it generates from
the .chunk files.
}
You have to give whatever user your web server runs as the rights to
write to the above mentioned path.
If on linux:
# chmod +w /path/to/templates_c/
# chown apache:apache /path/to/templates_c/ -R
Not sure what to do in windows.. Hope that helped.
Cheers,
Phillip Jacobs
On Jun 24, 2006, at 12:59 PM, Kevin Ethridge wrote:
> Hello,
> I am trying to work through the 'Blog' tutorial and ran into the
> issue: "can not write to 'compileDir' . What command to I need to
> run to set the correct permission?
>
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wasp-users mailing list
> Was...@li...
> https://lists.sourceforge.net/lists/listinfo/wasp-users
|
|
From: Kevin E. <kev...@ma...> - 2006-06-24 17:59:58
|
Hello, I am trying to work through the 'Blog' tutorial and ran into the issue: "can not write to 'compileDir' . What command to I need to run to set the correct permission? |
|
From: Phillip J. <pj...@ha...> - 2006-05-25 01:05:00
|
Nigel
Unfortunately that doesn't seem to be the issue, my magic-quotes
have long been turned off.
Joshua:
I am at the event stage, my form incompletely submitted, populates
said textarea with the value slashed over and over till all fields
are valid and submitted.
I'm attempting something along the lines of this:
$rgw->setAbout(stripslashes($rgw->getAbout()));
but, I'm not sure where exactly these slashes get added, nor when.
So.. no luck.
Thanks for the help
-Phillip Jacobs
On May 24, 2006, at 7:02 PM, Nigel Kibodeaux wrote:
> It may be caused by having magic-quotes turned on. It should be
> off for things to work properly. I vaguely recall having a similar
> problem.
>
>
> Joshua Doss wrote:
>> In my experience I've noticed that my extra slashes are added when
>> inserting into MySQL. So during my loop through the data with
>> $oVar->next(); I add the call there:
>>
>> $arVar[$oVar->getId()] = $oVar->toArray();
>>
>> $arVar[$oVar->getId()]['TextAreaValue'] =
>> stripslashes($arVar[$oVar->getId()]['TextAreaValue']);
>>
>> HTH.
>>
>> -J.
>>
>> On Wed, 2006-05-24 at 16:45 -0500, Phillip Jacobs wrote:
>>
>>> Hey guys,
>>>
>>> I've been playing around with wasp. I have a form with a
>>> textarea field prone to having single quotes, and I'm guessing
>>> flexy adds slashes to the value. I've gone out of my way to try
>>> to use stripslashes to get this problem fixed, with no end. It's
>>> the last piece of the puzzle in this particular project and
>>> would be nice to have some insight. Please let me know if any of
>>> you have ran into this and know of a fix. Is it my php setup? Is
>>> it flexy? Surely not WASP? hehe Thanks guys.
>>>
>>> -Phillip Jacobs
>>>
>>>
>>> -------------------------------------------------------
>>> All the advantages of Linux Managed Hosting--Without the Cost and
>>> Risk!
>>> Fully trained technicians. The highest number of Red Hat
>>> certifications in
>>> the hosting industry. Fanatical Support. Click to learn more
>>> http://sel.as-us.falkag.net/sel?
>>> cmd=lnk&kid=107521&bid=248729&dat=121642
>>> _______________________________________________
>>> Wasp-users mailing list
>>> Was...@li...
>>> https://lists.sourceforge.net/lists/listinfo/wasp-users
>>>
>
>
>
>
> -------------------------------------------------------
> All the advantages of Linux Managed Hosting--Without the Cost and
> Risk!
> Fully trained technicians. The highest number of Red Hat
> certifications in
> the hosting industry. Fanatical Support. Click to learn more
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=107521&bid=248729&dat=121642
> _______________________________________________
> Wasp-users mailing list
> Was...@li...
> https://lists.sourceforge.net/lists/listinfo/wasp-users
|
|
From: Nigel K. <nig...@pa...> - 2006-05-25 00:03:10
|
It may be caused by having magic-quotes turned on. It should be off for things to work properly. I vaguely recall having a similar problem. Joshua Doss wrote: > In my experience I've noticed that my extra slashes are added when > inserting into MySQL. So during my loop through the data with > $oVar->next(); I add the call there: > > $arVar[$oVar->getId()] = $oVar->toArray(); > > $arVar[$oVar->getId()]['TextAreaValue'] = > stripslashes($arVar[$oVar->getId()]['TextAreaValue']); > > HTH. > > -J. > > On Wed, 2006-05-24 at 16:45 -0500, Phillip Jacobs wrote: > >> Hey guys, >> >> I've been playing around with wasp. I have a form with a textarea >> field prone to having single quotes, and I'm guessing flexy adds >> slashes to the value. I've gone out of my way to try to use >> stripslashes to get this problem fixed, with no end. It's the last >> piece of the puzzle in this particular project and would be nice to >> have some insight. Please let me know if any of you have ran into >> this and know of a fix. Is it my php setup? Is it flexy? Surely not >> WASP? hehe Thanks guys. >> >> -Phillip Jacobs >> >> >> ------------------------------------------------------- >> All the advantages of Linux Managed Hosting--Without the Cost and Risk! >> Fully trained technicians. The highest number of Red Hat certifications in >> the hosting industry. Fanatical Support. Click to learn more >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 >> _______________________________________________ >> Wasp-users mailing list >> Was...@li... >> https://lists.sourceforge.net/lists/listinfo/wasp-users >> |
|
From: Joshua D. <jos...@op...> - 2006-05-24 22:51:17
|
In my experience I've noticed that my extra slashes are added when inserting into MySQL. So during my loop through the data with $oVar->next(); I add the call there: $arVar[$oVar->getId()] = $oVar->toArray(); $arVar[$oVar->getId()]['TextAreaValue'] = stripslashes($arVar[$oVar->getId()]['TextAreaValue']); HTH. -J. On Wed, 2006-05-24 at 16:45 -0500, Phillip Jacobs wrote: > Hey guys, > > I've been playing around with wasp. I have a form with a textarea > field prone to having single quotes, and I'm guessing flexy adds > slashes to the value. I've gone out of my way to try to use > stripslashes to get this problem fixed, with no end. It's the last > piece of the puzzle in this particular project and would be nice to > have some insight. Please let me know if any of you have ran into > this and know of a fix. Is it my php setup? Is it flexy? Surely not > WASP? hehe Thanks guys. > > -Phillip Jacobs > > > ------------------------------------------------------- > All the advantages of Linux Managed Hosting--Without the Cost and Risk! > Fully trained technicians. The highest number of Red Hat certifications in > the hosting industry. Fanatical Support. Click to learn more > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642 > _______________________________________________ > Wasp-users mailing list > Was...@li... > https://lists.sourceforge.net/lists/listinfo/wasp-users -- Joshua Doss OpenSourcerer.org |
|
From: Phillip J. <pj...@ha...> - 2006-05-24 21:46:17
|
Hey guys, I've been playing around with wasp. I have a form with a textarea field prone to having single quotes, and I'm guessing flexy adds slashes to the value. I've gone out of my way to try to use stripslashes to get this problem fixed, with no end. It's the last piece of the puzzle in this particular project and would be nice to have some insight. Please let me know if any of you have ran into this and know of a fix. Is it my php setup? Is it flexy? Surely not WASP? hehe Thanks guys. -Phillip Jacobs |
|
From: <jea...@gm...> - 2006-05-16 05:00:48
|
a few things i came across while i was following along with the blog
tutorial and general perusing of the wasp site.
- the tutorial seemed to have its main modules named differently after
running 'phing app' and feeding it the name 'Blog'
they had: BlogMainModule.php and BlogMainIndexPage.php
i had: BlogModule.php and BlogIndexPage.php
- the wasp demo movie link is broken:
http://wasp.sourceforge.net/content/files/WASP-Demo.mov
and three items i filed bugs on.
- phing db didn't notify me when it failed to connect to the database
http://sf.net/tracker/index.php?func=3Ddetail&aid=3D1489305&group_id=3D1408=
10&atid=3D746983
- build.properties should have a better default value
http://sf.net/tracker/index.php?func=3Ddetail&aid=3D1489306&group_id=3D1408=
10&atid=3D746983
- phing module creates bad validation function stubs
http://sf.net/tracker/index.php?func=3Ddetail&aid=3D1489301&group_id=3D1408=
10&atid=3D746983
cheers,
jean-pierre
|
|
From: <jea...@gm...> - 2006-05-14 10:00:18
|
i am following along on the blog tutorial with wasp 1.2 and i'm am running
into a few issues that i'm hoping someone might have a quick answer to. som=
e
of the other issues might be bug worthy, but i thought i would check first
to make sure it wasn't the more probable - operator error.
phing lamely did not alert me to the fact that i hadn't provided my mysql
password, so it couldn't generate wrappers properly.
the default text in build.properties for the database.url should totally
read:
database.url=3D mysql://user:password@localhost:port/database
to prevent any such issues for those just filling in values in the file.
even after generating the wrappers properly and copy&pasting the draw
function in CategoryIndexPage.php from the tutorial, it renders a blank
page. i checked the php log and in fact it is a wrapper issue:
[13-May-2006 23:56:15] PHP Fatal error: Class 'CategoryWrapper' not found
in
/Volumes/local/Users/bananas/Sites/blog-wasp/Category/CategoryIndexPage.php
on line 46
line 46 is:
$oCategories =3D new CategoryWrapper();
Blog_config.php indicates that it knows where the wrappers should be:
//data object wrapper directory
registerPath('DB_HOME', '/Volumes/local/Users/bananas/Sites/blog-wasp/db/')=
;
and the wrappers are certainly there:
bananas.sea-urchin ~ -=3D> ls /Volumes/local/Users/bananas/Sites/blog-wasp/=
db/
CatagoryWrapper.php EntryWrapper.php dataobjects
bananas.sea-urchin ~ -=3D>
how strange, anyone have any ideas what happened here? seems as though i am
missing an include somewhere...
oh and the link to the blog tutorial screencast seems to be somewhat dead:
http://wasp.sourceforge.net/content/files/WASP-Demo.mov
cheers,
jean-pierre
|
|
From: Brian F. <bri...@pa...> - 2006-05-04 22:17:39
|
Thanks for the heads up. Seems to be back. Must've been a sourceforge hosting glitch. -BF Phillip Jacobs wrote: > Hey guys, > > Looks like the db host is down. Just an FYI. > > Warning: mysql_connect(): Unknown MySQL Server Host 'mysql4-w' (0) in > /home/groups/w/wa/wasp/htdocs/content/includes/database.mysql.inc on > line 31 > Unknown MySQL Server Host 'mysql4-w' (0) > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wasp-users mailing list > Was...@li... > https://lists.sourceforge.net/lists/listinfo/wasp-users > -- /** * Brian Fioca * Chief Scientist / Sr. Technical Consultant * http://pangomedia.com * p. 907.440.6347 */ |
|
From: Phillip J. <pj...@ha...> - 2006-05-04 22:15:46
|
Hey guys, Looks like the db host is down. Just an FYI. Warning: mysql_connect(): Unknown MySQL Server Host 'mysql4-w' (0) in /home/groups/w/wa/wasp/htdocs/content/includes/database.mysql.inc on line 31 Unknown MySQL Server Host 'mysql4-w' (0) |
|
From: Adam T. <ad...@uc...> - 2006-05-03 02:45:12
|
How can I used the WASP data objects to do full text searches? Thanks so much for your help. -- Adam Thompson Associate Director for Programs & Instruction Global Information Internship Program Center for Global, International & Regional Studies o - 831.459.1572 m - 831.212.8397 http://giip.ucsc.edu/ http://people.ucsc.edu/~ado/ |
|
From: Nigel K. <ni...@ki...> - 2006-05-01 20:20:33
|
Brian, I don't know if you are aware of these things or not, but here goes... I downloaded WASP-1.2 from sourceforge, and tried to install it with "pear install -n package.xml". It wouldn't install until I moved the package.xml file inside the WASP-1.2 directory and ran the command from there. Also, you have to use "install -n" because even if you have phing installed, it thinks that it isn't. I suspect that it's because pear is looking in the channel pecl.php.net instead of pear.phing.info, but that's kind of a guess. I can't find anything that references pecl.php.net in the package I downloaded. |
|
From: Joshua D. <jos...@op...> - 2006-05-01 18:05:42
|
Hello all, I realize that the WASP project is kind of smitten to the licenses of the classes you're extending to a degree, but I was wondering if there is or are you planning on having an umbrella license for the project of some sort. Or, in lieu of such a beast, a plan of action with regard to what PEAR projects you're pulling in so as not to dilute the intent of the platform (is platform the word?) by contradicting license strategies... Just a thought I decided to throw out. As much as I've searched around wasp.sourceforge.net, there wasn't a page immediately obvious that jumped out at me saying "Here I am!" TIA... -J. |