Designing a solution based od EzPublish

Author Message

Goran Last

Saturday 07 May 2005 3:40:57 am

Greetings

I wanto to make a rebate(cash back) site based on EzPublish. Basicaly what i want to do is to have links(+some description) on my site to multiple online shops. Those links will contain unique "id" numbers for each user logged in.

Before the users get the rebate they must answer some questions and based on the result they get(or not) the rebate(so this part would include some business logic).

Im an experienced PHP developer, but im new with EzPublish. I have read quite a lot about it, but i cannot figure out how the things work here and how should i design the solution.

What i want to do is to design a database tables and insert/update those based on the inputs from users(business logic). I belive for this i have to design a module? (are there any exemples that i can base my work on). How do Datatypes fit into all of this?

Best regards
Goran

kracker (the)

Saturday 07 May 2005 5:37:36 am

Goran,

That sounds like an interesting idea :)

You might want to take a look at the survey extension, you might be able to adapt it to your needs and save you some time.

You can see examples of it in action here:

http://ez.no/survey/view/1
http://ez.no/survey/view/2

The source code is available the eZ systems : extension : subversion repository.

http://zev.ez.no/svn/extensions/survey/trunk/

Cheers,
//kracker

Chappelle's Show : Ep #212 : Wayne Brady

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 20 2025 05:04:52
Script start
Timing: Jan 20 2025 05:04:52
Module start 'layout'
Timing: Jan 20 2025 05:04:52
Module start 'content'
Timing: Jan 20 2025 05:04:52
Module end 'content'
Timing: Jan 20 2025 05:04:52
Script end

Main resources:

Total runtime0.0155 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.2734152.6406
Module start 'layout' 0.00520.0032 741.914139.4766
Module start 'content' 0.00840.0052 781.390689.3359
Module end 'content' 0.01360.0019 870.726630.3047
Script end 0.0155  901.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.0057140.0002
Check MTime0.00116.8108140.0001
Mysql Total
Database connection0.00064.107110.0006
Mysqli_queries0.002516.034930.0008
Looping result0.00000.193710.0000
Template Total0.001610.110.0016
Template load0.00085.421310.0008
Template processing0.00074.628210.0007
Override
Cache load0.00063.733610.0006
General
dbfile0.00031.815380.0000
String conversion0.00000.064640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs