Anyone use CakePHP?

by samstephens 20 replies
I've looked at CakePHP a few times, but it's hard to find any decent information on it.

If you're using it as a developer, how hard is it to create a script to sell?

I can't find any info on deploying a cakePHP app.

I assume you also have to include cakePHP library files with your script, but do they actually need to install cakePHP on the buyer's website?

Or is deployment easy?

Thanks!
Sam
#main internet marketing discussion forum #cakephp
Avatar of Unregistered
  • Profile picture of the author ChristianM
    As far as I know,

    You do need to install it on the server.

    Deployment is just a case of copying files and changing database variables.

    If I were you I'd go for codeigniter - it's supposedly quicker and is very well documented.
    {{ DiscussionBoard.errors[291390].message }}
  • Profile picture of the author Thomas Belknap
    Originally Posted by samstephens View Post

    I've looked at CakePHP a few times, but it's hard to find any decent information on it.

    If you're using it as a developer, how hard is it to create a script to sell?

    I can't find any info on deploying a cakePHP app.

    I assume you also have to include cakePHP library files with your script, but do they actually need to install cakePHP on the buyer's website?

    Or is deployment easy?

    Thanks!
    Sam

    Funny, I was looking at getting into php and was looking at the zend framework. I wondered about deployment as well.


    I just transferred to hostgator and they told me I would be able to install the zend framework myself. I would assume it would be the same for all frameworks and it will come down to php.ini customizations. I don't know enough about php, but hostgator gave me a php.ini file that they said would help me in installing the zend framework.
    {{ DiscussionBoard.errors[291398].message }}
    • Profile picture of the author zerofill
      I toyed with it a bit...basically you just depoloy the cakephp files with your app...same file structure...nothing really that would cause an end user any headaches.

      As far as the zend framework...it is mainly classes...not so much a framework...

      I haven't messed with many of the frameworks out there because it is a pain to learn what all their classes are hehe...But I do really like the idea of MVC...

      But it does seem that a lot of people in the irc channels seem to lean towards symphony out of all of them.
      Signature
      Serp Shaker
      The IM World Will Be Shaken to the Core!
      Join my list at: IMCool.Biz
      New Podcast --> podcast.imcool.biz
      {{ DiscussionBoard.errors[291423].message }}
      • Profile picture of the author Thomas Belknap
        Originally Posted by zerofill View Post

        I toyed with it a bit...basically you just depoloy the cakephp files with your app...same file structure...nothing really that would cause an end user any headaches.

        As far as the zend framework...it is mainly classes...not so much a framework...

        I haven't messed with many of the frameworks out there because it is a pain to learn what all their classes are hehe...But I do really like the idea of MVC...

        But it does seem that a lot of people in the irc channels seem to lean towards symphony out of all of them.

        I heard symfony was good as well. I watched a few videos on it. Hard to follow.

        I am used to learning classes coming from c# and vb.net. hehe


        I just moved from a windows host to linux. I can't believe how easy my php scripts were to install and to get working. It was a royal pain on Windows.
        {{ DiscussionBoard.errors[291565].message }}
  • Profile picture of the author Mike Bogowski
    Oh Yeah! Now we're talking.. CakePHP is my mistress!

    You need to deploy it as a whole, because it is a FRAMEWORK and not a script, it cant function without its libraries. You have all of your files inside a directory /app and anything outside of that belongs to Cake and shouldn't be touched as its part of the core.

    To deploy you have to copy the entire install over.

    Is it hard? Hell NO! You can build a basic application in hours and reuse components in different applications without rewriting anything. For this reason you can integrate it with parts of Zend, Codeigniter or most other frameworks.

    There is a steep learning curve but once you get the hang of it you'll never go back.

    Start with this tutorial, its a good foundation.

    Blog :: Example Applications :: The Manual :: 1.2 Collection :: The Cookbook
    Signature

    Puppets are people too

    {{ DiscussionBoard.errors[291538].message }}
    • Profile picture of the author zerofill
      Originally Posted by Mike Benkovich View Post

      Oh Yeah! Now we're talking.. CakePHP is my mistress!

      You need to deploy it as a whole, because it is a FRAMEWORK and not a script, it cant function without its libraries. You have all of your files inside a directory /app and anything outside of that belongs to Cake and shouldn't be touched as its part of the core.

      To deploy you have to copy the entire install over.

      Is it hard? Hell NO! You can build a basic application in hours and reuse components in different applications without rewriting anything. For this reason you can integrate it with parts of Zend, Codeigniter or most other frameworks.

      There is a steep learning curve but once you get the hang of it you'll never go back.

      Start with this tutorial, its a good foundation.

      Blog :: Example Applications :: The Manual :: 1.2 Collection :: The Cookbook
      STOP IT MIKE!! Your now making me want to go look at these again LOL...
      Ughhhh I need to get work done LOL
      Now I ended up playing around with a framework again!
      Signature
      Serp Shaker
      The IM World Will Be Shaken to the Core!
      Join my list at: IMCool.Biz
      New Podcast --> podcast.imcool.biz
      {{ DiscussionBoard.errors[291577].message }}
    • Profile picture of the author Thomas Belknap
      Originally Posted by Mike Benkovich View Post

      Oh Yeah! Now we're talking.. CakePHP is my mistress!

      You need to deploy it as a whole, because it is a FRAMEWORK and not a script, it cant function without its libraries. You have all of your files inside a directory /app and anything outside of that belongs to Cake and shouldn't be touched as its part of the core.

      To deploy you have to copy the entire install over.

      Is it hard? Hell NO! You can build a basic application in hours and reuse components in different applications without rewriting anything. For this reason you can integrate it with parts of Zend, Codeigniter or most other frameworks.

      There is a steep learning curve but once you get the hang of it you'll never go back.

      Start with this tutorial, its a good foundation.

      Blog :: Example Applications :: The Manual :: 1.2 Collection :: The Cookbook

      Mike, do the CakePHP files need to be in a particular structure? How does my classes know where the CakePHP classes are once I deploy?


      Thanks,
      {{ DiscussionBoard.errors[291594].message }}
      • Profile picture of the author Mike Bogowski
        Originally Posted by Thomas Belknap View Post

        Mike, do the CakePHP files need to be in a particular structure? How does my classes know where the CakePHP classes are once I deploy?


        Thanks,
        Its all done with CakePHP magic.

        You only need to create classes for requirements that Cake cant handle itself. CakePHP does all of your database work automatically with its Model.

        Frameworks dont work like conventional scripts, in most real world applications you wont need to add many classes that dont come with the core.

        You may want to create special functionality though to handle things like file upload. Cookies, Sessions and many more are all built in. You just need to save any custom classes inside the /components directy then inside your controller call this

        var $components = array('Upload', 'Cookie');

        You can the use them inside your application controller via

        $this->Upload

        I dont recommend that you use Cake if youre just starting out with programming, you'll need to have a good foundation in PHP to be able to use it effectively.
        Signature

        Puppets are people too

        {{ DiscussionBoard.errors[291703].message }}
  • Profile picture of the author Scott Carpenter
    I must say, if you have previous programming experience and you've never used an MVC framework before, switching to ANYTHING is going to be a bit of a pain. Over the years, I've developed my own architecture (non-MVC) that I use for all of my sites, and not using it is proving to be an interesting process (to say the least). MVC is a fantastic concept, and something that I recommend to all application developers.

    I've recently been looking at the Zend framework, and it looks quite complete and well done. I've tinkered with CakePHP before, and I ADORE the logic that it uses for it's database interactions, etc. I'd highly recommend it to others, however, framework choice ultimately comes down to personal choice. There are a great many to choose from, but if you stick to one of the majors (CakePHP, Symfony, Zend, etc), you should have a good backing with plenty of tutorials to get you going.

    And on a side note...long time no talk Sam
    {{ DiscussionBoard.errors[291772].message }}
  • Profile picture of the author samstephens
    Thanks everyone for the input!

    And hi Scott - great to hear from you man - have you retired to a yacht floating around some tropical island yet? Last time we talked it sounded like you were on the right path


    So with CakePHP, how big is the framework you're deploying?

    Are we talking say, 1mb for example, or is it closer to 10?

    I don't want to bloat any of my scripts...

    I spent about 30 minutes with CakePHP today, then got annoyed with it because I could find any decent instructions to install and then get started with it

    I'll check out Symfony too.

    Thanks everyone!

    cheers
    Sam
    Signature
    DLGuard v5 - The Warrior Edition
    Full integration with JVZoo, DigiResults, and WSO Pro for secure WSO's and WSO memberships.

    www.dlguard.com
    Serving the Warrior Forum since 2004
    {{ DiscussionBoard.errors[292663].message }}
    • Profile picture of the author TonyRenis
      While I haven't used it yet, I'll be using it on a pretty major project very soon.

      I've been waiting for the Zend Framework to become stable but as it hasn't yet, I've decided to go with CakePHP.

      It's a very nice framework and seems to have become the defacto-standard (finally!). The community support is quite large too.
      {{ DiscussionBoard.errors[292840].message }}
  • Profile picture of the author Scott Carpenter
    The /cake/ folder in the latest stable CakePHP release (version 1.1.20.7692) is 934KB - nothing too heavy

    Sam: I'm not on the yacht yet, but I'm on my way!
    {{ DiscussionBoard.errors[294975].message }}
  • Profile picture of the author GeorgR.
    any details, what is it?

    edit: I see. I use Zend, respective MS express or notepad. Is this better than zend studio?
    (Whereas Zend Studio 6 is pure ****, i went back to 5)



    Originally Posted by samstephens View Post

    I've looked at CakePHP a few times, but it's hard to find any decent information on it.

    If you're using it as a developer, how hard is it to create a script to sell?

    I can't find any info on deploying a cakePHP app.

    I assume you also have to include cakePHP library files with your script, but do they actually
    need to install cakePHP on the buyer's website?

    Or is deployment easy?

    Thanks!
    Sam
    Signature
    *** Affiliate Site Quick --> The Fastest & Easiest Way to Make Affiliate Sites!<--
    -> VISIT www.1UP-SEO.com *** <- Internet Marketing, SEO Tips, Reviews & More!! ***
    *** HIGH QUALITY CONTENT CREATION +++ Manual Article Spinning (Thread Here) ***
    Content Creation, Blogging, Articles, Converting Sales Copy, Reviews, Ebooks, Rewrites
    {{ DiscussionBoard.errors[294983].message }}
  • Profile picture of the author samstephens
    Oh okay, 930 kb is not too bad, though it'll double or tripple the size of some of my scripts

    If it speeds up development time, though, I guess it's worth checking out!
    Signature
    DLGuard v5 - The Warrior Edition
    Full integration with JVZoo, DigiResults, and WSO Pro for secure WSO's and WSO memberships.

    www.dlguard.com
    Serving the Warrior Forum since 2004
    {{ DiscussionBoard.errors[295182].message }}
  • Profile picture of the author Scott Carpenter
    You could possibly pare that down by removing the non-used portions of the framework, but I'm not sure if that's a very recommended thing to do (nor will it be easy, I'd imagine).

    930kb is tiny, in the grand scheme of things

    GeorgR: Zend Framework isn't a development IDE (like Zend Studio) - it's a development framework. Google both of them and you'll find the difference. On a side note, I love Zend Studio! (I use version 5.5)
    {{ DiscussionBoard.errors[295295].message }}
  • Profile picture of the author aceriker
    Our company uses both the codeignitor and phpCake frameworks. As far as I know, most of our developers (150 of them!) prefer codeignitor because it has much better documenatation.

    We sell a few scripts based on codeignitor and have found it to be really stable and cause very few issues.
    Signature

    Interested to develop booking and rental website then choose booking software , popular in developing clone script like groupon and airbnb clone

    {{ DiscussionBoard.errors[295406].message }}
  • Profile picture of the author Michael Taylor
    CodeIgniter!

    I use Ellis Labs' CMS platform Expression Engine...these guys are awesome!

    (Also, Expression Engine 2.0 is being developed on CodeIgniter.)
    {{ DiscussionBoard.errors[295502].message }}
  • Profile picture of the author samstephens
    Yeah you're right Mike - I should actually put some time aside and create my own framework.

    Probably like most programmers, I MUCH rather use my own code that someone elses.

    Thanks for the nudge...time to stop putting it off and create my own.

    cheers
    Sam
    Signature
    DLGuard v5 - The Warrior Edition
    Full integration with JVZoo, DigiResults, and WSO Pro for secure WSO's and WSO memberships.

    www.dlguard.com
    Serving the Warrior Forum since 2004
    {{ DiscussionBoard.errors[297176].message }}
    • Profile picture of the author Thomas Belknap
      Originally Posted by samstephens View Post

      Yeah you're right Mike - I should actually put some time aside and create my own framework.

      Probably like most programmers, I MUCH rather use my own code that someone elses.

      Thanks for the nudge...time to stop putting it off and create my own.

      cheers
      Sam

      It shouldn't be too hard Sam, you already got the code in your software. Rip it out and put it into its own classes. I bet you would have a framework relatively fast. Unless you want to go the MVC way which may take longer depending on your experience.
      {{ DiscussionBoard.errors[297189].message }}
  • Profile picture of the author samstephens
    You're right Thomas, I've got a LOT of code sitting around, I just need to put some time aside to break it up into generic classes.

    Naturally this'd make creating new software a LOT quicker, so I should get it done.

    I wish I did this as I was writing DLGuard...would have a wicked library by now

    cheers
    Sam
    Signature
    DLGuard v5 - The Warrior Edition
    Full integration with JVZoo, DigiResults, and WSO Pro for secure WSO's and WSO memberships.

    www.dlguard.com
    Serving the Warrior Forum since 2004
    {{ DiscussionBoard.errors[297901].message }}
Avatar of Unregistered

Trending Topics