# |
Aug 8th 2008, 22:30 |
M4ngoB00M |
created the Adress class - ok |
# |
Aug 8th 2008, 22:29 |
M4ngoB00M |
ok heres the problem - baked some classes... for a single table. "adresses" |
# |
Aug 8th 2008, 22:28 |
M4ngoB00M |
har har har |
# |
Aug 8th 2008, 22:23 |
markstory |
M4ngoB00M: sure but I need it back. |
# |
Aug 8th 2008, 22:20 |
M4ngoB00M |
can anyone give me a quick hand with validation? |
# |
Aug 8th 2008, 22:17 |
djspark |
markstory, thanks, my search wasn't finding it for some reason, got it now :-) |
# |
Aug 8th 2008, 22:17 |
markstory |
djspark: basics.php |
# |
Aug 8th 2008, 22:12 |
M4ngoB00M |
zzzz |
# |
Aug 8th 2008, 22:11 |
M4ngoB00M |
anyone working? |
# |
Aug 8th 2008, 22:10 |
M4ngoB00M |
hello |
# |
Aug 8th 2008, 22:09 |
djspark |
stupid question... where is pr() defined? |
# |
Aug 8th 2008, 22:04 |
Telik |
np |
# |
Aug 8th 2008, 22:04 |
detonatR |
ty |
# |
Aug 8th 2008, 22:04 |
detonatR |
cool |
# |
Aug 8th 2008, 22:03 |
Telik |
easy :) |
# |
Aug 8th 2008, 22:03 |
Telik |
then in the element do <?php echo $quoteVar; ?> |
# |
Aug 8th 2008, 22:03 |
Telik |
in app_controller, do $this->set('quoteVar', $quoteValue); |
# |
Aug 8th 2008, 22:03 |
detonatR |
< |
# |
Aug 8th 2008, 22:03 |
detonatR |
in the view |
# |
Aug 8th 2008, 22:03 |
Telik |
so i was programming in cake yesterday...and something just kinda clicked in my head...and i've made more progress on a project in two days than i have in 2 months. think i'm finally getting this cake stuff down--or at least the basics |
# |
Aug 8th 2008, 22:03 |
detonatR |
but then how would i call it |
# |
Aug 8th 2008, 22:02 |
detonatR |
ah cool |
# |
Aug 8th 2008, 22:01 |
markstory |
app_controller isn't a bad place for it then. |
# |
Aug 8th 2008, 22:01 |
detonatR |
i think it would be better if it was in app controller then |
# |
Aug 8th 2008, 22:01 |
detonatR |
< |
# |
Aug 8th 2008, 22:01 |
detonatR |
ya it will be on each page |
# |
Aug 8th 2008, 22:00 |
Telik |
or if it's on every part of the site, maybe something in AppController. someone correct me if i'm a little off |
# |
Aug 8th 2008, 22:00 |
detonatR |
ya |
# |
Aug 8th 2008, 21:59 |
Telik |
otherwise you might consider a helper to go along with the element |
# |
Aug 8th 2008, 21:59 |
Telik |
detonatR: yeah, if it's pretty short then just do that |
# |
Aug 8th 2008, 21:57 |
detonatR |
right :x |
# |
Aug 8th 2008, 21:57 |
detonatR |
but the quotes.ctp would have the function logic and to get it to show that one random quote just include the element |
# |
Aug 8th 2008, 21:57 |
Telik |
haha, that is scary. |
# |
Aug 8th 2008, 21:57 |
mboldisc |
The cake was a lie! |
# |
Aug 8th 2008, 21:56 |
mboldisc |
Gaa! |
# |
Aug 8th 2008, 21:56 |
Telik |
place "quotes.ctp" in your elements folder |
# |
Aug 8th 2008, 21:56 |
detonatR |
ah |
# |
Aug 8th 2008, 21:56 |
Telik |
detonatR: use an element |
# |
Aug 8th 2008, 21:56 |
Telik |
oooh, here's a devious plan: build a little code into cakephp that calls back to cake's servers every once in awhile...then just one day tell cake to shut down all running applications unless the developers pay ransom ;-) |
# |
Aug 8th 2008, 21:55 |
detonatR |
presentation |
# |
Aug 8th 2008, 21:50 |
mboldisc |
Well, I hope to see a version for sale in the coming months ;) |