Jump to content

Thinking of migrating an existing ZEND WebApp into PW


jwaldeck
 Share

Recommended Posts

Hi ProcessWire's, how are you all?

I've been postponing it for months, but I think the time has come to try to look into this issue a little deeper.

I currently have a website http://www.tearoffflyermaker.com/ built in Zend that is getting some traction and about 10 new users a day and I'd love to give this a little more attention! :) The problem is that it was coded on Zend by a dev in Russia that is gone, has a rather simple "Generating PDF" functionality (with some kind of Zend plugin he used) and some pre built PDF Flyer themes that I'll also have to improve ASAP.

I'm perfectly aware that ProcesWire would have the ability to mimic all of that and I'm pretty sure it could replace that heavy Zend to make this app work a litttle better and give me more control about what's going on (since I know nothing about Zend). The only problem, and you hear that a lot, is that I'm not a hard core dev and haven't found many case studies or guides to create apps using Pwire. I would also have to research and undertsand what the optios to generate PDF's from limited user data input there are out there.

Would someone be able to help? At least point me to some how-to's on building apps with PW? And yes, I'm also thinking in having a real coder help me with that soon, but I also love to explore myself and understand what's going on under the hood.

Tks in advance for your help and sorry if this is a little overwhelming! :)

Cheers!

jw

Link to comment
Share on other sites

We use the Zend framework at work and as a designer i fight nearly every day with this monster  >:D . I am quite often in the situation asking a developer if its possible to get this particular markup or something else. Then i hear about decorators and forms and so on and we end with javascript hacks to inject some markup. Anyway...i think you have 2 options! the hard way in my opinion is learn something more about the zend framework. The other way is go with processwire. I couldt'n see anything at your application why you shouldt'n migrate to pw. The forum here is full of content to make this working...

When it comes to pdf generation we use princexml (http://www.princexml.com). After trying some other libraries i think its the best html to pdf conversion option out there. I think they have the widest support HTML, CSS and Javascript. And yes, its great and its expensive  :( . But the price is relative when you earn money with that...

Greetings...

  • Like 1
Link to comment
Share on other sites

Great help guy, thanks a lot!

Are you aware on any how-to documentation for creating apps with PW? I've seen a lot of documents about it being used as a CMS for websites, but not as a webapp where users interact with it by create, read update and delete data (CRUD).

Are you guys aware of something I could follow. And yes, I might get a real developer to help me with that, I'm just curious!

Cheers!

jw

Link to comment
Share on other sites

.............a webapp where users interact with it by create, read update and delete data (CRUD).....

What do you mean exactly by a webapp? As for CRUD, are you talking about this in the frontend then? Are you talking about a members only type of site, where you have to log in to edit your own page. Are you talking a social network site?....CRUD is possible but difficult to give you a more concrete answer unless we know the use case.  

Link to comment
Share on other sites

Nope, just looking for a way to replicate the functionality found in http://www.tearoffflyermaker.com/ , but replacing it by PW. A webapp in this case would be a site that runs by its users, without my interaction. 

Yes, CRUD on the front end - In other words: 

1) User Registers (some email is sent for account validation)

2) After validation the user logs in and creates flyers with some predefined fields (header, info, long text - for example).

3) User "generate flyer" and this great module kicks in https://processwire....dule-pages2pdf/.

4) User can then edit and delete their flyers or create new ones.

So, basically a site that doesn't get populated by me, but by it's users. Did this make more sense now?

I understand this a very generic approach and it's not how it should be done. I'm just looking for ways to get my feet wet with PW not serving only as a CMS, but also as something like that.

Tks!

jw

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Similar Content

    • By jom
      Chäs & Co is a b2b cheese trader. They love good cheese and are proud of their excellent knowledge und connections to small cheese producers. They maintain a custom made database and used to copy/paste (!) the cheese infos to the former CMS (Contao). Since substituting the database with ProcessWire was no option, they export now the database to a csv file and import it to the new website (expanded version of module ImportPagesCSV).
      From there, the pw magic begins. The staff works with the admin interface: They search and find products in notime using the build-in search field (using cheese names or id. Using ids only possible by adding hook, see this forum thread). They generate price lists easily based on a template, providing checkboxes and option buttons for some restrictions, choose i.e. the cheese origin and price audience (all implemented as page selectors). By saving the page a PDF list gets generated (using mpdf, a php pdf library).
      The visitors can sort and filter the products using a form by shuffle.js. Product details are shown in a popup (fancybox). There's also the option for generating a nice pdf data sheet. No CSS framework being used.
      Other modules used: ProcessJumpLinks, ProcessProMailer, ProcessWireUpgrade.
      Visual design: Nicole Haller


    • By franciccio-ITALIANO
      Hello to all. I would like to create an app. So I need to learn at least one programming language. I got informed online, and discovered that javascript with node.js, is the revolution of recent years, because it's faster than php. I wonder: if I develop an app with javascript and with a javascript framework (e.g. Meteor), is there a way to integrate processwire work? I know that processwire supports the transformation of the site into an application, but would it be as simple as Meteor? With the Meteor framework I have my app online in 10 minutes, and without even knowing javascript! (Knowing javascript would serve to personalize it). I should then install the app in a SUB-DOMAIN. If I study php, instead, and if I use a php framework (e.g. Laravel), how long does it take to have my first working app? Is it easy to process Laravel's components? Is writing forms for processwire apps with php a very complex job? Is it better to use Meteor and start with javascript? What would you recommend?
    • By Fanni
      Hi all, 
      I am having some issues uploading a PDF to our website (a problem we’ve had before).
      I have tried reducing the size of the PDF but the problem seems to be with generating the thumbnail image because the upload works under the Fallback mode but the thumbnail is terrible (see attached). 
      Does anybody have any advice about this? Please note that I'm not a developer. 
      Thanks!
       


    • By August
      Hi again, after trying pages2PDF, RockPDF and mpdf I'm not sure which of them I should use. Of course, there is also wirePDF.
      I merged mpdf with rockPDF, add a footer and a page in Landscape and that works, like in the code-snippet below but be am I on the right way?
      After that I tried a couple of times rendering an image. Nothing happend, the same with Pages2PDF too. I also copied an Image-URL within processwire and tried further getting an Image within the PDF-Document, but it still display only the red marked placeholder.
      I simply would like create an PDF on click from some Pages including the Images.
      Are there special requirements on Debian 10 with Apache and php 7.3 using Processwire 3.0.123.?
      Is there a guide that I didn't found?
      Is somebody out there who has a similar issue solved and would you be so kind to explain?
       
      $pdf = $modules->get('RockPdf'); $mpdf = $pdf->mpdf; # $mpdf->showImageErrors = true; $pdf->set('SetHeader', 'header text'); $mpdf->AddPage('L'); # $mpdf->Image(urlencode('site/assets/files/1845/image-2.275x200.jpg'), 0, 0, 210, 297, 'jpg', '', true, false); $pdf->set('SetFooter', ' <table width="100%"> <tr> <td width="33%">{DATE j.m.Y}</td>        <td width="33%" align="center">{PAGENO}/{nbpg}</td> <td width="33%" style="text-align: right;">whatever</td> </tr> </table>'); $pdf->show(); // generate pdf  
    • By gregory
      Hi everyone.
      I can't see the PDF uploaded via a field called "pdf".
      I get a url like this: http://localhost:8888/mywebsite/site/assets/files/1129/test.pdf%EF%BB%BF%EF%BB%BF
      Could anyone help me? Thank you.
      <?php foreach($page->case_studies as $item) { if($item->type == 'contenuto') { echo " <a class='btn btn-primary btn-sm' target='blank' href='{$item->pdf->first()->url}' role='button'>Download</a> "; } } ?>  
×
×
  • Create New...