Unofficial CakePHP forums

Published on and tagged with cakephp  community

Something missed by a lot of people is now live: a forum for CakePHP. It is run by a CakePHP user named “kain”. At the moment it is still empty and needs to be filled with activity ;-)

Update 2007-11-03: Link removed as this forum no longer exists. An alternative is

23 comments baked

  • Pacifists

    Maybe I’m not understanding something :) but isn’t google group a forum ?:)

  • cakebaker

    Yes, google group is somehow a forum, But it lacks one feature people associate with a forum: there are no categories

  • Pacifists

    I don’t see how it’s a bad thing, there are no forums that can match google search and so google groups have no need for categories:)

    I think it’s just about people not thinking out of the box. Like if there are no categories .. it’s ain’t a forum and we all know it’s so not true :)

    Just my two cents

  • AD7six

    I don’t know if a forum will solve any problems… If it’s not actively moderated it could go the same way as the wiki. However I think at the very least, it’s good that someone took the initiative to do something for the community.

    I do know that the same questions pop up on the google group all the time… There’s a couple of obvious reasons for this:

    1) lack of official documentation for certain things (continually improving)
    2) Searching, especially on the google group but even with the site, often returns a mountain of irrelavent or inacurate links before one that is actually useful.

    The great thing about the wiki was that it was open for users to contribute. The problem is that not all contributions are useful (and some of mine may count among them) and can quickly become outdated. having another source of info, if it is only semi useful will not be a help overall – but that’s not to say that is definitely what’s going to happen with the unofficial forum.

    The approach I am about to use is to restructure my site so that I can add/demonstrate code via plugins – in that way, if somebody downloads the code that they just tried and it worked (or didn’t!), it should at least eliminate the thought that the code is written incorrectly (or prove that it is!)- because you’ll be downloading code that is running on my site.

    I for one am going to keep an eye on the new forum :)


    Cake Baker’s Blog: Unofficial CakePHP forums…

  • tariquesani

    Ah! good to see that it still survives after that awful “frown down upon” from the lead dev on IRC.

    It is not about jumping to forgone conclusions that it is no good – if it is that it will die a natural death if people find it useful it will thrive – let the users decide and yes kain needs to be applauded for taking efforts for the community.

    @cakebaker – thanks for mentioning the forum :)

  • cakebaker

    @Pacifists: I think it is not that important whether google groups is a forum or not, more important is whether it fits the needs of the users. And there are people out there who do not like google groups for whatever reasons.

    @AD7six: A good idea to provide example code as plug-ins.

    @tariquesani: Yes, the users will decide if the forum will survive. I mentioned the forum as I want to support community initiatives.

  • Troy Schmidt

    I don’t like a forum that is seperate. I started research a time ago and haven’t had the chance to get back to it. Basically, a forum that would post to Google Group automatically and also automatically check an email account for Google Group activity. The difficult part comes when you want to keep things in categories. So, that it can be categorized on the Forum, but still posted to the Google Group. That is the ultimate goal. The forum should be an extension of the Google Group and not something seperate.

    But one thing is that I can’t check GMAIL at work. So, I can’t do the group that way and must do thru As for the searching, it isn’t anything special that a fulltext indexing on database couldn’t accomplish.

  • jhice

    Hi all,
    Perhaps we could see Google Groups like Gmail “Search, don’t sort” ? And forum or wiki could archive things “officialy”. However, I think we can trust Google for their innovation and use Groups the right way instead of a forum. In fact, I dont use Groups yet ^^ just a reflexion on the fly…

  • Cakephpforum

    Looks like is already dead after not even a year..

    So I setup a new “UnOfficial” CakePHP forum at … (I still believe a forum is necessary!)

    I’ll try to make sure it won’t end up like its .com sister… so I’ll need everyone’s help to contribute..

  • cakebaker » New CakePHP forum started

    […] a comment I got notified that a new unofficial CakePHP forum has been started. It is, as far as I know, the […]

  • Adedoyin Kassem

    I hve been trying to upload my cake application to my web host but when i view it online it keeps returning errors. please can someone check it up for me and tell what the problem really is…

  • Mariusd

    I’m quite new in cakephp and I will apreciate if someone can help.
    I want to list all my [B]products[/B] from DB once but if a [B]product[/B] have 2,3 or more [B]ingredients[/B] then in the list that product will apear 2,3,x times(like in the image)


    the [B]ingredients[/B] of a product are saved in a table called [B]product_retetas[/B] and the records of that table have the following fields:
    id | [B]product_id[/B] | [B]ingredient_id[/B] | …|…

    [B]products[/B] have [B]hasAndBelongsToMany[/B] relationship with [B]ingredients[/B]
    [B]products[/B] have [B]hasOne[/B] relationship with [B]product_retetas[/B]
    [B]ingredients[/B] have [B]hasAndBelongsToMany[/B] relationship with [B]products[/B]
    [B]product_retetas[/B] have [B]belogsTo[/B] relationship with both [B]ingredients[/B] and [B]products[/B]


    class ProductsController extends AppController {

    var $name = ‘Products’;
    var $helpers = array(‘Html’, ‘Form’);
    /* var $paginate = array(
    ‘limit’=>10 );*/

    function index() {

    $this->Product->recursive = 0;
    $this->set(‘products’, $this->paginate());

    If I set recursive la -2 then I will receive error in the index at every button (from the picture) becouse every button link is related to a model who belongs to product
    array(‘controller’=> ‘product_retetas’, ‘action’=>’alergeni’,$product[‘Product’][‘id’]),
    array(‘target’=>’_blank’,’class’=>’btn’), null, false

  • cakebaker

    @MariusD: Hm, I am not sure I understand what you try to accomplish… If you want to return only the Products, then you could add

    'contain' => array('Product')

    to your $paginate array.

    Hope that helps!

  • Jiran

    Hii, Can anybody add a link on this code ?

    And when click on the link it should redirect to the view of the
    search result.( array(‘controller’ => ‘members’, ‘action’ =>

    code :

    echo ”.$results[‘members’][‘name’].”;

    I’m faild to add the link on it.
    Plz help me.

  • Jiran Simon

    Hii, Can anybody add a link on this code ?

    And when click on the link it should redirect to the view of the
    search result.( array(‘controller’ => ‘members’, ‘action’ =>

    code :

    echo '<li onClick="fill(\''.addslashes($results['members']

    I’m faild to add the link on it.
    Plz help me.

  • cakebaker

    @Jiran: Something like:

    echo '<li onClick="fill(\''.addslashes($results['members']['name']).'\');">'. 
         $html->link($results['members']['name'], array(‘controller’ => ‘members’, ‘action’ => ‘view’)).

    should do the trick.

    Hope this helps.

  • Jiran Simon
    echo '<li onClick="fill(\''.addslashes($results['members']['name']).'\');">'. 
         $html->link($results['members']['name'], array(‘controller’ => ‘members’, ‘action’ => ‘view’)).

    After running it shows following errors on text box
    Undefined variable: html [APP/controllers/members_controller.php, line 165]

    Fatal error: Call to a member function link() on a non-object in /var/www/cakephp/app/controllers/members_controller.php on line 165

  • cakebaker

    @Jiran: Ah, you are using this snippet in a controller ;-) I would consider to move this code into a view, as it is usually a bad idea to have html code in your controllers.

    If you really have to use the link method in the controller, have a look at How to use a helper in a controller.

    Hope this helps.

  • rehan

    Hello all,
    I am Schartz. I work as a part timer client side web designer, besides pursuing my engineering course in computer science. Most of the time with CSS and Jquery. I have working knowledge of php also. But now I am in serious problem. I need to complete a small website prototype in cakephp, (as my company i smoving to cake) and I ahave no idea where to start from. I am sending you my shout which I also posted on forum. Please do help me with it

    I am an absolute newbie to cake php and the MVC design pattern itsef. I have basic understanding of working with php on my WAMP 2.0 local server. I am also pretty familiar with object oriented programming in C++. I was following the “blog tutorial” on the on the i followed everything exactly as there was in the tutorial. After completing the view of index of PostsController, they said it will display the blog posts already entered in the database. It was written that pointing the browser to “” will display all the entries in the database. As I am working on my local server I entered the URL as “localhost/test_cake/posts/index” and returned the notorious “404 object not found” test_cake is the name of the folder in my localhost www where i have extracted the cakephp 2.0 I have made all the names of everything exactly as it was given in the tutorial….. Somebody please help me with this… Thanks in advance….

  • cakebaker

    @rehan: Thanks for your comment!

    Hm, it sounds like a mod_rewrite issue, have a look at A Note on mod_rewrite.

    I hope this helps!

  • Maureen Moore

    I was able to install a javascript bbcode editor and it then it successfully parses back from bbcode to html. Most of it looks like it should, for example my view shows all of the bbcode-html that I added like this:

    arg r <b>s trs</b>grffrr

    Now the problem is why doesn’t cakephp parse the html? I tried using some sanitize commands but I didn’t understand how they worked. I thought the html was supposed to be automatically parsed by cakephp.

  • cakebaker

    @Maureen: Hm, I’m not really understanding what you try to accomplish. And what do you mean with “why doesn’t cakephp parse the html”? Can you explain it a bit more?

© daniel hofstetter. Licensed under a Creative Commons License