List Info

Thread: CakePHP programming problem.




CakePHP programming problem.
user name
2007-01-02 03:26:02
Hello,

I know how to program in PHP and am trying to learn CakePHP.
 Here is a
small project that I need to do that is representative.

1. Create a button that will appear on all pages in the
application at
a particular location using CSS, and that does as follows.

2. Read 2 fields CHOICE and FIND.
   a. The top one, CHOICE, is a drop-down list with the same
16 choices
each time.
Function ddlits() returns the list of 16 literal values that
are
displayed.
   b. The bottom one FIND is a text field with no default,
so it is
blank initially.

3. By special rules used only here, we translate (2) into a
list of
(Query#,SQL Query) pairs.
Function qrz($choice,$find) = list of ($qnm,$sqry) pairs of
Query# and
Query.

4. Execute (3) and accumulate the results into
[]=(Query#,Tuple).  That
is, we have a function runsql($sqry) = list of tuples
returned by query
$sqry.

5. Translate (Query#,Tuple) => (Display,URL) by function
qtdis($qnm,$tuple)=($display,$url) to create a list of links
to
display.

6. Display the (Display,URL) pairs as links.

Can someone tell me how to implement this in CakePHP? 
Please be
explicit: I have to write what and store it where and do
what to get
the button to appear on the existing pages?

Thanks,

Peter


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysqlgooglegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribegooglegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/phpmysql?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: CakePHP programming problem.
user name
2007-01-24 07:19:51
I wish I could help you, I too am trying to learn cakephp. What I can suggest though is that you try the cakephp usergroup: http://groups.google.com/group/cake-php you can also chat with lots of knowledgeable people about cakephp on IRC on irc.freenode.net#cakephp. -Mike ---------- On Jan 1, 10:26 pm, "PHPBABY3" gmail.com> wrote: > Hello, > > I know how to program in PHP and am trying to learn CakePHP. Here is a > small project that I need to do that is representative. > > 1. Create a button that will appear on all pages in the application at > a particular location using CSS, and that does as follows. > > 2. Read 2 fields CHOICE and FIND. > a. The top one, CHOICE, is a drop-down list with the same 16 choices > each time. > Function ddlits() returns the list of 16 literal values that are > displayed. > b. The bottom one FIND is a text field with no default, so it is > blank initially. > > 3. By special rules used only here, we translate (2) into a list of > (Query#,SQL Query) pairs. > Function qrz($choice,$find) = list of ($qnm,$sqry) pairs of Query# and > Query. > > 4. Execute (3) and accumulate the results into []=(Query#,Tuple). That > is, we have a function runsql($sqry) = list of tuples returned by query > $sqry. > > 5. Translate (Query#,Tuple) => (Display,URL) by function > qtdis($qnm,$tuple)=($display,$url) to create a list of links to > display. > > 6. Display the (Display,URL) pairs as links. > > Can someone tell me how to implement this in CakePHP? Please be > explicit: I have to write what and store it where and do what to get > the button to appear on the existing pages? > > Thanks, > > Peter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "PHP & MySQL" group. To post to this group, send email to phpmysqlgooglegroups.com To unsubscribe from this group, send email to phpmysql-unsubscribegooglegroups.com For more options, visit this group at http://groups-beta.google.com/group/phpmysql?hl=en -~----------~----~----~----~------~----~------~--~---
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )