List Info

Thread: CakePHP programming problem




CakePHP programming problem
user name
2007-01-02 03:24:52
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-Masters" group.
To post to this group, send email to PHP-Mastersgooglegroups.com
To unsubscribe from this group, send email to
PHP-Masters-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups-beta.google.com/group/PHP-Masters
-~----------~----~----~----~------~----~------~--~---

[1]

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