CakePHP + Sparklines Recipe
Hi, Over at the good ol' weblog I've posted the quick instructions for getting Sparklines and CakePHP to work together: http://notes.we-run.com/sparklines-in-cakephp . If anyone has knowledge as far as caching, that might be useful (will it handle images)? Otherwise, check it out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: use of recursive
It was just an error in the $belongsTo and $hasMany naming : The uppercase was'nt uppercase --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: how to use a method from an external controller
$this-requestAction('/controller/action'); http://api.cakephp.org/class_object.html#6709fd2dd27063746f30f5c7168a82e9 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
accessing models
hi there, this is probably already been posted , but cant' find. How do you access a Model from within another Model. Thankyou. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: accessing models
What are you trying to do exactly? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Social Relationships?
Hi Everyone, We're building a Social Network app using cake. I ran into a problem I haven't been able to clear up from the documentation. I need to establish an association among my members. 1. My PHP version: PHP Version 5.0.5-2ubuntu1.2 2. My Cake version: 1.0.1.2708 I have a Users table, and a Relationship table. Now all would be fine if I could only follow the convention with associations, but in this case I don't think I can since I am creating relationships between two user_id's. My question is, how do I specify a custom association with Cake, that lets me establish this social networking table. I need two records created in the Relationship table (establish relationship) everytime a User becomes a friend of another User. Any help would be greatly appreciated, Thanks! Nick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Social Relationships?
On the same topic, I'd like to hear some suggestions on Cake best pratices to build somethinig like a community website. Stuff like - Should I use Elements to render the different 'boxes' or should I use the requestAction to get the stuff - How to use 'Pages' in cake ? just pu them in the Pages folder ? How to call some elements within those pages ? Or i must use controllers to everything ? I really coudn't find anything on pages on the manual/api/wiki Any suggestions ? Examples ? ( the only reference I found: https://trac.cakephp.org/wiki/Cake/About/Size ) Thanks! spark On 5/30/06, nate [EMAIL PROTECTED] wrote: Okay, this is completely off-the-cuff, but it should at least get you started: class User extends AppModel { var $hasAndBelongsToMany = array('RelatedUser' = array( 'className' = 'User', 'foreignKey' = 'user_id', 'associationForeignKey' = 'related_user_id', 'joinTable' = 'related_users' )); } This assumes you have a join table called related_users, which has 2 columns: user_id and related_user_id. Hope that helps. -- [web] http://synapsisdi.com.br [livesets] http://djspark.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: findall-problem with condition on child table
Hi Andy, have you already found out what that problem was? it seems that I have the same problem and also no idea... greets felle42 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Social Relationships?
The one thing about renderElement is that the element only gets variables that have been made available to the view by the controller. If you want to render an element inline (like in a loop), use: ?php include($this-element('element_name')); ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Social Relationships?
upgrade to the latest release and the id notice should go away. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @accesspublic */ On 5/30/06, Nick [EMAIL PROTECTED] wrote: Thanks!That helped - least got me on the right track. But now when I try toadd/edit a user using the scaffolding I get this error - any ideas asto why that might be coming up. The error comes up near every button, assuming that's cause they all require the ID. The User definitely hasan ID in the model.Notice: Undefined index: id in/var/www/cake/cake/libs/view/templates/scaffolds/show.thtml on line 187 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Error after installing oceancms
There is a define URL constant in app/config/core.phpMaybe changing that will help?On 5/30/06, Sven [EMAIL PROTECTED] wrote:Just for testing OceanCMS (v.0.0.2) I've installed cakephp RC6 (0.10.8.2152).After changing all the things mentioned here and in the release notes Igot a strange behavior with my base_url. All the links andform-actions on my site now have the prefix http://www.oceancms-test.oceancms.co.uk/ with the correct local path(dvl/cake_rc6/OceanCMS/users) appending.Because of that nothing really works like it should. I can't even log in 'cause I'm forwared to this strange URL. I've already searched thewhole app-folder for the string but can't find anything.Any hints? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Adodb with Sybase it not work on CakePHP
Thanks so much. I'm waiting for your Cake-native Sybase and I'll very happy to baking with Sybase-Driver. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Error after installing oceancms
Have you thought of using the cakeforge project to track these bugs and notify the developer?-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut * @accesspublic*/On 5/30/06, John Zimmerman [gmail] [EMAIL PROTECTED] wrote: That would be app/config/bootstrap.php non core.php. Sorry. On 5/30/06, John Zimmerman [gmail] [EMAIL PROTECTED] wrote:There is a define URL constant in app/config/core.phpMaybe changing that will help? On 5/30/06, Sven [EMAIL PROTECTED] wrote:Just for testing OceanCMS (v.0.0.2) I've installed cakephp RC6 (0.10.8.2152).After changing all the things mentioned here and in the release notes Igot a strange behavior with my base_url. All the links andform-actions on my site now have the prefix http://www.oceancms-test.oceancms.co.uk/ with the correct local path(dvl/cake_rc6/OceanCMS/users) appending. Because of that nothing really works like it should. I can't even log in 'cause I'm forwared to this strange URL. I've already searched thewhole app-folder for the string but can't find anything.Any hints? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Error after installing oceancms
I think most of us who are looking at OceanCMS are just doing so to get a better feel for how things work.But yeah, notifying the developer via cakeforge would probably be a good idea. On 5/30/06, Larry E. Masters aka PhpNut [EMAIL PROTECTED] wrote: Have you thought of using the cakeforge project to track these bugs and notify the developer?-- /*** @author Larry E. Masters* @var string $userName* @param string $realName * @returns string aka PhpNut * @accesspublic*/On 5/30/06, John Zimmerman [gmail] [EMAIL PROTECTED] wrote: That would be app/config/bootstrap.php non core.php. Sorry. On 5/30/06, John Zimmerman [gmail] [EMAIL PROTECTED] wrote:There is a define URL constant in app/config/core.phpMaybe changing that will help? On 5/30/06, Sven [EMAIL PROTECTED] wrote:Just for testing OceanCMS (v.0.0.2) I've installed cakephp RC6 (0.10.8.2152).After changing all the things mentioned here and in the release notes Igot a strange behavior with my base_url. All the links andform-actions on my site now have the prefix http://www.oceancms-test.oceancms.co.uk/ with the correct local path(dvl/cake_rc6/OceanCMS/users) appending. Because of that nothing really works like it should. I can't even log in 'cause I'm forwared to this strange URL. I've already searched thewhole app-folder for the string but can't find anything.Any hints? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Overview of CakePHP on php|architect
I wrote an overview of CakePHP for php|architect, and it is now available online at A/R/T, php|architect's new online article repository. Nothing new if you're an expert baker, but hopefully a good starting point for people new to Cake. Announcement: http://hades.phparch.com/hermes/public/viewnews/index.php?id=3173 Article: http://hades.phparch.com/ceres/public/article/index.php/art::cakephp::overview Way to go Cake! :) More to come... http://www.h3rald.com/projects/view/cakephp-herald/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Prettier Static Pages Snippet
Hi John Can you tell me which version of Cake this applies to? The display function in pages_controller.php of Cake version 1.0.0.2378 looks like the following, so I am unclear about how to apply the snippet. function display() { if (!func_num_args()) { $this-redirect('/'); } $path = func_get_args(); if (!count($path)) { $this-redirect('/'); } $this-set('page', $path[0]); $this-set('subpage', empty($path[1])? null: $path[1]); $this-set('title', ucfirst($path[count($path)-1])); $this-render(join('/', $path)); } Regards, Langdon John Zimmerman [gmail] wrote: If anyone is interested I added a snippet to cakeforge that is a modifcation to the pages_controller.php that displays the thtml files located in /app/views/pages. Basically it will make the titles look like 'Page Title' instead of 'Page_title' Here is the link... http://cakeforge.org/snippet/detail.php?type=snippetid=68 http://cakeforge.org/snippet/detail.php?type=snippetid=68 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Prettier Static Pages Snippet
@John,Refactored: if (!empty($path[$count - 1])) { $title = Inflector::humanize($path[$count - 1]); }uses less code.@Langdon,I suggest you get the latest release also. -- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Prettier Static Pages Snippet
I am using the 1.1 version.For the code you list below if you change it to the following you should be good to go. I have not tested this in 1.0 though.Overall the modification in my snippet and the code below could use a little optimization to reduce line count and unnecessary operations, but I think my snippet make it easier for some to modify the 1.1 code.function display() { if (!func_num_args()) { $this-redirect('/'); } $path = func_get_args(); if (!count($path)) { $this-redirect('/'); } /* BEGIN MODIFICATION 1 */ $title = ucfirst($path[count($path)-1]); $title_pieces = explode(_, $title); foreach($title_pieces as $key = $value) { $title_pieces[$key] = ucfirst($value); } $title = implode( , $title_pieces); /* END MODIFICATION 1 */ $this-set('page', $path[0]); $this-set('subpage', empty($path[1])? null: $path[1]); /* BEGIN MODIFCATION 2 */ $this-set('title', ucfirst($path[count($path)-1])); /* END MODIFICATION 2 */ $this-render(join('/', $path)); }On 5/30/06, Langdon Stevenson [EMAIL PROTECTED] wrote: Hi John Can you tell me which version of Cake this applies to?The display function in pages_controller.php of Cake version 1.0.0.2378 looks like the following, so I am unclear about how to apply the snippet. function display(){if (!func_num_args()){$this-redirect('/'); }$path = func_get_args();if (!count($path)){$this-redirect('/');}$this-set('page', $path[0]); $this-set('subpage', empty($path[1])? null: $path[1]);$this-set('title', ucfirst($path[count($path)-1]));$this-render(join('/', $path));} Regards, Langdon John Zimmerman [gmail] wrote: If anyone is interested I added a snippet to cakeforge that is a modifcation to the pages_controller.php that displays the thtml files located in /app/views/pages. Basically it will make the titles look like 'Page Title' instead of 'Page_title' Here is the link... http://cakeforge.org/snippet/detail.php?type=snippetid=68 http://cakeforge.org/snippet/detail.php?type=snippetid=68 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Prettier Static Pages Snippet
http://cakeforge.org/snippet/detail.php?type=snippetid=68 Snippet updated. I put Larry's name in the changes box.On 5/30/06, John Zimmerman [EMAIL PROTECTED] wrote:Very nice. Much better.I am updating the snippet. I am also running the latest stable release listed on cakeforge. v1.1.3.2967On 5/30/06, Larry E. Masters aka PhpNut [EMAIL PROTECTED] wrote: @John,Refactored: if (!empty($path[$count - 1])) { $title = Inflector::humanize($path[$count - 1]); }uses less code.@Langdon,I suggest you get the latest release also. -- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Prettier Static Pages Snippet
Thanks Larry. It's on my to-do list :-) This is a good excuse. Regards, Langdon Larry E. Masters aka PhpNut wrote: @John, Refactored: if (!empty($path[$count - 1])) { $title = Inflector::humanize($path[$count - 1]); } uses less code. @Langdon, I suggest you get the latest release also. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Overview of CakePHP on php|architect
Hi h3raLd under what licences are you articles ? especially the php|architect's one ? I'm thinking about starting a translation of it. Possible ? olivvv h3raLd wrote: I wrote an overview of CakePHP for php|architect, and it is now available online at A/R/T, php|architect's new online article repository. Nothing new if you're an expert baker, but hopefully a good starting point for people new to Cake. Announcement: http://hades.phparch.com/hermes/public/viewnews/index.php?id=3173 Article: http://hades.phparch.com/ceres/public/article/index.php/art::cakephp::overview Way to go Cake! :) More to come... http://www.h3rald.com/projects/view/cakephp-herald/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Dinamic Relationship
I am having trouble defining this releationship. What would be the best way to define a relationship when the fk of my database depends in a boolean value. if is true then the fk is equal to table1 but if is false the fk is equal to table2. This is my example clients id i(nt) name (varchar) isabussiness (bool) bussiness_or_person_id = 'I don't know how to call this fk since it can change if the clientis a bussiness o a person.' Bussinness id name taxserialnumber persons id firstname lastname How should I set up the model clients? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Stop Render View on AJAX Action?
function delete($id) { $this-autoRender = false; $this-Post-del($id); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: fundamental dispatcher strategy flawed?
To all who responded: It is not true I don't understand MVC. In fact I have been using MVC as the basis of my own software development for past 5 years, and I have coded in many programing languages from Java to Python. So I do understand what frameworks are for. Please stop projecting your own psychoanalytic interpretations onto someone else. I come to Cake to find a well thought out php MVC frameworks out of so many bad versions. A good framework removes most of the quirks and gotchas from the environment, so that application writers can focus on the meat of the apps. That is why frameworks take care of caching, sanitising inputs, database handling, sessions etc, and hiding the PHP dependencies in version and underlying libraries. A framework is not just a library, because a framework has a default execution path, which means it is a fully runable application. Plugging in the application-specific parts turns it into a real app. My original perception of Cake was that the developers seem to have deeper understanding of what MVC frameworks should and can do, and also a good understanding of enterprise application patterns. That I hope resulted in codes that are more systematic, orthogonal, and elegant. It took a month of experimentation using bad documentation and tutorials that don't work to figure out what I now understand: cake is not as elegant as it could have been. The default execution path strategies are prone to be broken without warning, e.g. in my case, if you try to create an action called list in a controller. Strategy? That's a pretty weighty word for something so minor, There's nothing in this situation that needs to be documented. If you know how to use PHP, you know what the reserved words are. If you know how to use Cake, you know how to write a route to get around that. If you cannot rationally accept there are things that need fixing in this software, how can you ever progress? There is definitely something big and nasty that needs to be fixed, or documented, or preferably both. Unless cake is not meant to be used by serious developers, in which case I rest my case. Kace --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Stop Render View on AJAX Action?
Well, the groups is messing with my suggested code, but you should get the idea. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: associations assoc. array keys too restricted?
Sorry for the confusing thread. I think I figured out what the communication gap is. I said key meaning PHP associative array key as in key = value, I didn't mean primary DB key. All my primary keys in the DB are called id and I've never had trouble with Cake accessing that. I resolved my problem, using something unexpected, so here is my solution. I have a model called Music to represent a CD with generic fields that also apply to other types of products, a model called MusicDetails which holds fields specific to Music, and a third model called Person, to hold (among other things), Conductors. here are the classes, with two lines marked with comments. class Music extends Item { var $name = 'Music'; var $belongsTo = array( 'Detail' = // important line #1 array('className' = 'MusicDetail', 'dependent' = true, 'foreignKey' = 'DetailRef'), ); } class MusicDetail extends AppModel { // important line #2 follows, broken if this says MusicDetail var $name = 'Detail'; var $useTable = 'tblMusic'; var $hasAndBelongsToMany = array( 'Conductors' = array('className' = 'Smn', 'joinTable' = 'joinMusicSmnConductor', 'foreignKey' = 'MusicIDref', 'associationForeignKey' = 'SmnIDref'), 'Artists' = array('className' = 'Smn', 'joinTable' = 'joinMusicSmnArtist', 'foreignKey' = 'MusicIDref', 'associationForeignKey' = 'SmnIDref'), ); } class Smn extends AppModel { var $name = 'Smn'; var $useTable = 'tblSmn'; } So what I learned is that the PHP *array key* of the $belongsTo of my Music model must agree with the var $name field of the associated model MusicDetail. The symptom you get if you do not have such agreement is not failure to link in MusicDetail, which is linked ok, but rather the failure to then go get Conductor data. I had thought the var $name was redundant and had to duplicate the class name, but I see it's more complicated than that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: fundamental dispatcher strategy flawed?
Kace,I rarely reply to threads on this list since it is more user to user support but you got my attention here, with what seems to be a blatant attack on the project and the developers I have working with me. How many times have you sent an email to this list in that month that your where studying Cake, asking how to do something?I only see one email which happens to be sent on the same day you joined the group, and that is not a question but more of a statement saying that we have a flawed routing system. Or have you stopped by the IRC channel looking for help?Maybe even opened a ticket on our trac site stating that something is not clear in the documentation.I will ask you another question now oh god of coding. What is more of a contradiction to the mantra of specifying everything once as you put it.Adding prefixes to all method names, or writing one route to do what you need?You ask why we do not do things like others, my answer is we are not like others, as is obvious with the way we have taken our code. Adding prefixes to methods is nothing but redundancy that is not needed, nor will it ever be added. You stumbled upon a reserved word in php and therefore need a workaround, why should we add prefixes to all methods for these few words in php? Cake is for people who are willing to learn and use the conventions we have wrote for it, simplicity is the key.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName * @returns string aka PhpNut* @access public*/On 5/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:To all who responded:It is not true I don't understand MVC.In fact I have been using MVC as thebasis of my own software development for past 5 years, and I have codedinmany programing languages from Java to Python.So I do understand what frameworks are for.Please stop projectingyour own psychoanalytic interpretations onto someone else.I come to Cake to find a well thought out php MVC frameworksout of so many bad versions.A good framework removes most of the quirks and gotchas from the environment, so that application writers can focus on the meat of theapps.That is why frameworks take care of caching, sanitising inputs,database handling, sessions etc, and hiding the PHP dependenciesin version and underlying libraries. A framework is not just a library, because a framework has a defaultexecution path, which means it is a fully runable application.Pluggingin the application-specific parts turns it into a real app. My original perception of Cake was that the developers seem to havedeeper understanding of what MVC frameworks should and can do,and also a good understanding of enterprise application patterns.That I hope resulted in codes that are more systematic, orthogonal, and elegant.It took a month of experimentation using bad documentation andtutorials that don't work to figure out what I now understand: cakeis not as elegant as it could have been.The default execution path strategies are prone to be broken without warning, e.g.in my case, if you try to create an action called list in acontroller.Strategy?That's a pretty weighty word for something so minor, There's nothing in this situation that needs to be documented.If youknow how to use PHP, you know what the reserved words are.If you knowhow to use Cake, you know how to write a route to get around that. If you cannot rationally accept there are things that need fixing inthis software, how can you ever progress?There is definitely something big and nasty that needs to be fixed, ordocumented, or preferably both.Unless cake is not meant to be used by serious developers, in which case I rest my case. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: fundamental dispatcher strategy flawed?
Wow. I mean, wow. Clearly your head is a bit too big for it's own good. I don't usually go this far, but it has at this point become apparent to me that you've come here looking for a fight, and just need to be put in your place. I have been developing software for over 12 years in as many different languages. As such, I'm reasonably confident that I know more than you. End of discussion. Stop trying to compensate for your lack of self-esteem. Now, I will grant you that there are places where Cake could use improvement, but this is not it. Also, you'll have to excuse me if I have a hard time believing that you have experience applying principles like MVC and convention over configuration, since thus far you've raised most of the same objections that we see on this list from n00bs on a regular basis. In conclusion, please stop using Cake. Also, go away. In fact, go use Symfony, you'll be able to over-code to your heart's content. I truly believe you'll be happier there. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Stop Render View on AJAX Action?
Exactly what I was looking for - thanks! On May 30, 2006, at 8:14 PM, Chris Partridge wrote: Well, the groups is messing with my suggested code, but you should get the idea. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: Overview of CakePHP on php|architect
For all the articles and/or other content on my website except the latest article for php|architect you are free to write translations as long as: - You tell me where it will be published (so I may link it from my site) - You cite and link the source of the article Regarding the php|architect one, php|architect hold exclusive rights of publication etc. etc. for one year, after which the article can be re-published elsewhere (with my consent, that is). For translations I don't really know... I'll ask them and let you know asap. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---