We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4971
    • 964 Posts
    Is there any documentation on how to develop an app using Revo?

    I am going to start learning to develop web apps and I am choosing a
    framework. My finalists until now are QCubed and Kohana. But I see
    that as I am developing sites with MODx and with Revo upon us and its
    use of xPDO, I am assuming that I can develop a web app with Revo/xPDO.

    So, is there easy docs to start developing with Revo or is it better to
    do it with QCubed or Kohana?
      Website: www.mercologia.com
      MODX Revo Tutorials:  www.modxperience.com

      MODX Professional Partner
      • 18654
      • 191 Posts
      What about Zend? If the application doesn’t require content management than I would think it would be better to use a pure application framework rather than a content management framework. I love working with ModX, but if my project doesn’t require content management it doesn’t seem like the best fit. The other thing I like about Zend is that I can keep all my views, models, and controller-logic in the file system which makes it easier to work from my IDE.

      As far as documentation for app development, api docs are here and more documentation is here

      -matt
        God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.
        • 4971
        • 964 Posts
        Yes, you are probably right. After reading more stuff during the weekend
        I am leaning towards Kohana, with Doctrine as ORM and using Zend just as
        a library to speed up development.

        I discovered also that there is an effort to integrate Kohana with MODx
        Evolution, which sounds promising and will be monitoring its progress...
          Website: www.mercologia.com
          MODX Revo Tutorials:  www.modxperience.com

          MODX Professional Partner
          • 25663 MODX Staff
          • 12,272 Posts
          Why not use xPDO and the APIs in Revo? They’re indeed quite capable.
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 4971
            • 964 Posts
            Yes Ryan, that was my original thinking.
            But I am a beginner programmer, so I thought that
            if I needed ACL or Auth or Mail or stuff like that
            in my app it will be easier to have it already
            incorporate it into the framework like Zend or Kohana.

            I know I could pick’em up from PEAR too.

            So I’ll rephrase my original question...

            Is there any documentation (beginner) to start developing
            apps with Revo and xPDO? or do we only have the
            API docs in which case I will be completely lost
            from the start. How do I start with MVC with them?
              Website: www.mercologia.com
              MODX Revo Tutorials:  www.modxperience.com

              MODX Professional Partner
              • 8609
              • 607 Posts
              Quote from: charliez at Jan 25, 2010, 12:36 PM

              Yes Ryan, that was my original thinking.
              But I am a beginner programmer, so I thought that
              if I needed ACL or Auth or Mail or stuff like that
              in my app it will be easier to have it already
              incorporate it into the framework like Zend or Kohana.

              I know I could pick’em up from PEAR too.

              So I’ll rephrase my original question...

              Is there any documentation (beginner) to start developing
              apps with Revo and xPDO? or do we only have the
              API docs in which case I will be completely lost
              from the start. How do I start with MVC with them?


              I think at the moment all we have is the docs in SVN, and even I get completely lost in them most times... grin They’re quite techy.
                • 28215
                • 4,149 Posts
                Quote from: charliez at Jan 25, 2010, 12:36 PM

                if I needed ACL
                ACLs are built into Revolution:

                http://svn.modxcms.com/docs/display/revolution/ACLs
                http://svn.modxcms.com/docs/display/revolution/Security
                http://bobsguides.com/revolution-permissions.html

                or Auth

                Auth is also built into Revo.
                if (!$modx->user->isAuthenticated()) {
                    $modx->sendUnauthorizedPage();
                }
                



                or Mail

                $message = $modx->getChunk('myEmailTemplate');  
                  $modx->getService('mail', 'mail.modPHPMailer');  
                $modx->mail->set(modMail::MAIL_BODY,$message);  
                $modx->mail->set(modMail::MAIL_FROM,'[email protected]');  
                $modx->mail->set(modMail::MAIL_FROM_NAME,'Johnny Tester');  
                $modx->mail->set(modMail::MAIL_SENDER,'Johnny Tester');  
                $modx->mail->set(modMail::MAIL_SUBJECT,'Check out my new email template!');  
                $modx->mail->address('to','[email protected]');  
                $modx->mail->address('reply-to','[email protected]');  
                $modx->mail->setHTML(true);  
                if (!$modx->mail->send()) {  
                    $modx->log(modX::LOG_LEVEL_ERROR,'An error occurred while trying to send the email: '.$err);  
                }  
                $modx->mail->reset();  
                


                http://svn.modxcms.com/docs/display/revolution/Sending+Mail+with+modMail

                or stuff like that
                Revolution Docs: http://svn.modxcms.com/docs/display/revolution/
                API Docs: http://api.modxcms.com/
                Intro to Revo with xPDO: http://svn.modxcms.com/docs/display/revolution/PHP+Coding+in+MODx+Revolution%2C+Pt.+I
                Custom DB tables with models: http://svn.modxcms.com/docs/display/revolution/Using+Custom+Database+Tables+in+your+3rd+Party+Components
                Build Scripts: http://svn.modxcms.com/docs/display/revolution/Creating+a+3rd+Party+Component+Build+Script
                Managing Elements via SVN: http://svn.modxcms.com/docs/display/revolution/Managing+Resources+and+Elements+via+SVN

                And not to mention you could look at the SVN code for the current Extras developed for Revolution:

                http://svn.modxcms.com/svn/modx-components/
                  shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
                  • 4971
                  • 964 Posts
                  Wow!! Thanks Shaun
                  I am speechless and humbled!

                  I guess I have to learn to search for info better in the wiki...

                  so...

                  Our ORM and DB abstraction layer would be xPDO.

                  I see that there are Model and Controllers and the Processors connect both of them...
                  The View is in the MODx Templates

                  If using Revo as a PHP Development Framework, all the MODx stuff can
                  be set aside and forget about chunks and snippets?

                  DO you guys have a small app that you can share to see how it is organized
                  and developed?

                  Thanks again, I have tons to read...
                    Website: www.mercologia.com
                    MODX Revo Tutorials:  www.modxperience.com

                    MODX Professional Partner
                    • 28215
                    • 4,149 Posts
                    Quote from: charliez at Jan 25, 2010, 03:52 PM

                    DO you guys have a small app that you can share to see how it is organized
                    and developed?

                    You could always go download or look at Discuss, the threaded forum for Revo. You can download it via Package Management. It’s in alpha (and therefore not ready), but it’s a pretty big app that you could probably learn some from.

                    Or for a small app, try FormIt, or Login, or Quip.
                      shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com