Re: i18n language name
e($html->link(__("LABEL_TERMS_CONDITIONS", true), "/terms")); --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: $html->link : add a class or style?
On 2/24/07, Cynthia <[EMAIL PROTECTED]> wrote: > > Argh... strike that guys... NEVER change code at place A and do a view > source of place B. > > Never. +1 :) Been there done that for nearly an hour yesterday - only that the code base was Wordpress Cheers Tarique -- = PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org = --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Cake on Hosting Provider not loading models.
I'm trying move a cakephp site to a new host. Bluehost.com and I have a problem where I'm not sure the origin. It appears not to be loading the objects for the models that i'm trying to include in $uses. What would be keeping it from doing that? There are no errors except for the error that I get when I try to access the model. Fatal error: Call to a member function blah() on a non-object in --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: $html->link : add a class or style?
Argh... strike that guys... NEVER change code at place A and do a view source of place B. Never. On Feb 23, 11:24 pm, "Cynthia" <[EMAIL PROTECTED]> wrote: > (Using 1.2) > > >From digging around in the API and looking over the function link and > > the function _parseAttributes there seems to be no way to add a class > or an inline style to a link? > > Any other way to accomplish this the Cake way? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: 1.2 Pagination forgetting conditions?
I like using the session to carry over some parameters paginate would otherwise forget about :) On Feb 23, 7:27 pm, "NOSLOW" <[EMAIL PROTECTED]> wrote: > I found that if you have other params set (field sort, direction, > order), then you need to also unset those as well: > > unset($this->params['pass']['page']); > unset($this->params['pass']['sort']); > unset($this->params['pass']['direction']); > unset($this->params['pass']['order']); > > Other wise you can't page and retain the same sort order. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Notice: Undefined variable
On 2/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Is there anyway to turn these noticies off while keeping > Configure::write('debug', '2'); ? They are really freaking annoying. > I would not recommend that you ignore notices - the best practice while programming is that you should not get any notices... But then thats just me - I don't know what others here think about cutting corners HTH Tarique -- = PHP for E-Biz: http://sanisoft.com Cheesecake-Photoblog: http://cheesecake-photoblog.org = --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
$html->link : add a class or style?
(Using 1.2) >From digging around in the API and looking over the function link and the function _parseAttributes there seems to be no way to add a class or an inline style to a link? Any other way to accomplish this the Cake way? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: pagination issue in 1.2
Have you tried another nightly build? Try getting this to work in a completely clean view. There has go to be something else intefering. On Feb 22, 12:54 pm, "isk" <[EMAIL PROTECTED]> wrote: > CAN ANYBODY HELP? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: FLEX 2 Integration Issues
I just tried it and got the same error, but it does look like the files got there okay. Is anything missing that you can tell? Eric On 2/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Repo is currently not available due to the following error: > > Error: Can't open file 'C:\My_Path\!CakePHP\CakeForge\svn_cakeamfphp > \trunk\amfBB\ria\deploy\.svn\tmp\text-base\don't use this directory. > put swfs in app:webroot:swf.svn-base': The parameter is incorrect. > > Any help obtaining the latest and greatest would be much > appreciated... > > On Jan 26, 2:13 pm, "gwoo" <[EMAIL PROTECTED]> wrote: > > You need to get the latest version of CakeAMFPHP. The only catch is > > that its only in SVN. > > > > svn checkout ofhttps://svn.cakeforge.org/svn/cakeamfphp/trunk/amfBB > > > > This is an example app that has the latestamfphpand cakeamfphp stuff > > integrated into it already. > > Along with the latest working service browser for amf3. > > > > > --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
RE: How to set pages to have 'parents'?
Sounds like findAllThreaded() is the answer you are looking for: http://bakery.cakephp.org/articles/view/63 Also check the component I wrote here, as it solves something typical in threaded models (finding the breadcrumb): http://groups.google.ch/group/cake-php/browse_thread/thread/6c7cdd0cc5160a19 #c6b957972849d439 I can't give you the link on standard google groups website since strangely lots of the archives on groups.google.com are no longer there, and can only be find through google groups mirrors. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de double07 Enviado el: Viernes, 23 de Febrero de 2007 11:42 p.m. Para: Cake PHP Asunto: CMS: How to set pages to have 'parents'? Ok, this is doing my head in. Basically I'm trying to setup a simple CMS. So the part I'm wrestling with here is the pages or what I've called 'Nodes' Now my nodes basically have fairly simple fields; id, parent_id, title, summary, body, node_type_id, link, members and publish. It's all pretty much setup and ready to go except for the parent/ navigation... --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: CMS: How to set pages to have 'parents'?
The following helped me when I was setting up something like this: $this->Category->recursive = 0; $this->set('category_tree', $this->Category->findAllThreaded(null, array('id','parent_id','name'),'parent_id, name')); It'll give you a multidimensional array based on parent_id. You could also use something like this to find parent nodes of an article. HTH, Eric On 2/23/07, double07 <[EMAIL PROTECTED]> wrote: > > > Ok, this is doing my head in. Basically I'm trying to setup a simple > CMS. So the part I'm wrestling with here is the pages or what I've > called 'Nodes' > > Now my nodes basically have fairly simple fields; id, parent_id, > title, summary, body, node_type_id, link, members and publish. It's > all pretty much setup and ready to go except for the parent/ > navigation... > > My plan was that there would be a navigation menu that would be > dynamically generated from the nodes table by setting it up so that > each node can be a child of another page (or it could be at the top of > the 'tree' by being 0). When editing/adding a page, the idea would be > that the user could just select the parent from a drop down list > (which has indented menu options). Now, I can't for the life of me > work out how to go about this in cake (i.e. models, relationships > etc.). > > In hindsight it might have been easier to setup "sections" that could > be edited/added and then generate the menu from that, but in the past > I've found that setup can cause problems. > > Has anyone successfully setup anything similar to what I want? If so, > could you please give me some pointers. > > Thanks in advance, > > Brett. > > > > > --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: i18n language name
Ok, I understand. Something about the __() function: I wanted to translate the title of a link : e($html- >link(__("LABEL_TERMS_CONDITIONS"), "/terms")); gives : Règles et Conditions, title outside the tags. The right solution : e($html->link(__("LABEL_TERMS_CONDITIONS", true), "/terms")); That's not a big deal, but most of the texts are inside html helper functions (link, form functions, table functions, etc), so maybe using e(_("translation")) means less code. And it's like the other basics functions, which don't have the $return argument. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Houston Bakers?
Just left Texas A&M for Las Vegas. Any Vegas bakers? Eric On 2/23/07, Dat Chu <[EMAIL PROTECTED]> wrote: > > > Me, waving from University of Houston > > On Feb 23, 3:01 pm, "naryga" <[EMAIL PROTECTED]> wrote: > > Any Bakers in the Houston, TX Area? > > > > > --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Email Problem
Thanks, Nate! Do I actually get a gold star? ;-) You know, I really do try to help out around here - at least by answering a couple of questions a day. But sometimes I'm amazed at the audacity of some people on this list. They seem to think this is a corporate sponsered framework for which the people on the mailing list are paid to answer each and every question, even doing their work for them. And all at no charge! Try getting Microsoft to answer questions at no charge! :-) Eric On 2/23/07, nate <[EMAIL PROTECTED]> wrote: > > > As an avid writer of rants about the postings of n00bs and rude > people, I have to say that pretty much sums it up. Eric, you get a > gold star. > > On Feb 23, 5:52 am, "Eric C Blount" <[EMAIL PROTECTED]> wrote: > > No one is going to *give* you sample code. We're not getting paid to > write > > your program. > > > > We've pointed you in the right direction. Go learn it! > > > > Good luck, > > Eric > > > > On 2/23/07, anandrv <[EMAIL PROTECTED]> wrote: > > > > > > > > > i am using cake1.1.12.4205 give me example codin this is my controller > > > coding > > > > > var $helpers = array('Html', 'Form' ); > > > function add() > > > { > > > $this->set('catArray', $this->Product->Category- > > > > >generateList(null,null,null,'{n}.Category.id','{n}.Category.catname')); > > > if (!empty($this->data)) > > > { > > > if($this->data["Category"]["catid"] == "" || $this->data['Product'] > > > ['prodname'] == ""|| $this->data['Product']['description'] == "" || > > > $this->data['Product']['imgpath'] == "" || $this->data['Product'] > > > ['price'] == "" ) > > > { > > >$this->Session->setFlash('Please correct errors below.'); > > > } > > > else > > > { > > >$currentFile = $this->params['data']['File']['imgpath']; > > >$filePath ="C:/www/gadgets/app/views/img/".$currentFile['name']; > > >if(!file_exists($filePath)) > > >{ > > > if (is_uploaded_file($currentFile['tmp_name']) && > > > move_uploaded_file($currentFile['tmp_name'], $filePath)) > > > { > > > echo "No Error"; > > > } > > >} > > > } > > > } > > > > >} > > > > > Please Give me an sample coding. > > > > > Thanks and Regards, > > > > > On Feb 23, 2:44 pm, Ámon Tamás <[EMAIL PROTECTED]> wrote: > > > > anandrv wrote: > > > > > I have Developed by Registration Page.I need After Registration > > > > > Completed the Thank you mail was send to the user and the Admin > also > > > > > received one mail.Please Give me examples. > > > > > > Which version of Cake do you use? In 1.2 there is a very nice email > > > > component, what is easy to use. > > > > > > -- > > > > Ámon Tamáshttp://linkfelho.amon.hu > > > > > --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
CMS: How to set pages to have 'parents'?
Ok, this is doing my head in. Basically I'm trying to setup a simple CMS. So the part I'm wrestling with here is the pages or what I've called 'Nodes' Now my nodes basically have fairly simple fields; id, parent_id, title, summary, body, node_type_id, link, members and publish. It's all pretty much setup and ready to go except for the parent/ navigation... My plan was that there would be a navigation menu that would be dynamically generated from the nodes table by setting it up so that each node can be a child of another page (or it could be at the top of the 'tree' by being 0). When editing/adding a page, the idea would be that the user could just select the parent from a drop down list (which has indented menu options). Now, I can't for the life of me work out how to go about this in cake (i.e. models, relationships etc.). In hindsight it might have been easier to setup "sections" that could be edited/added and then generate the menu from that, but in the past I've found that setup can cause problems. Has anyone successfully setup anything similar to what I want? If so, could you please give me some pointers. Thanks in advance, Brett. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
RE: i18n language name
The error happens because on cake/libs/I10n.php you see: var $__l10nMap = array( // ... 'fra' => 'fr', 'fre' => 'fr', // ... ); That's a mapping from ISO639-3 to language catalog. Further down: var $__l10nCatalog = array( // ... 'fr' => array('language' => 'French (Standard)', 'locale' => 'fre', 'localeFallback' => 'fre', 'charset' => 'utf-8'), ); So both FRA and FRE are mapped to FR, and FR sets the local to FRE. Now on I10n:: __setLanguage() you see: $this->languagePath = array( 0 => $this->__l10nCatalog[$this->__l10nMap[$language]]['locale'], 1 => $this->__l10nCatalog[$this->__l10nMap[$language]]['localeFallback'] ); So even if you set your language to FRA, CakePHP will expect your local files to be on directory FRE. Which makes sense, doesn't it? -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de Stefan Enviado el: Viernes, 23 de Febrero de 2007 10:47 p.m. Para: Cake PHP Asunto: i18n language name Hi, The ISO language name for french is fra , fre. I made a directory app/locale/fra/LC_MESSAGES/ and put there a default.po and default.mo and followed the instructions about using i18n : But the translation didn't appeared. $I18n::__bindTextDomain() searched 4 times for app/locale/fre/ LC_MESSAGES/default.po. Only 'fre' is working as a language directory 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?hl=en -~--~~~~--~~--~--~---
i18n language name
Hi, The ISO language name for french is fra , fre. I made a directory app/locale/fra/LC_MESSAGES/ and put there a default.po and default.mo and followed the instructions about using i18n : $language = 'fra'; $this->Session->write('Config.language', $language); with a very simple page ( no controller only a view template ), Cake 1.2. But the translation didn't appeared. $I18n::__bindTextDomain() searched 4 times for app/locale/fre/ LC_MESSAGES/default.po. Only 'fre' is working as a language directory 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?hl=en -~--~~~~--~~--~--~---
Re: Access control lists :: Creating groups using acl.php script
The 2nd argument is the parent. On Feb 23, 3:39 pm, "josoroma" <[EMAIL PROTECTED]> wrote: > I was wondering how to create parent groups or child groups using > acl.php script, for example, i just used "php acl.php initdb" and > every table was created well. Then i used: > php acl.php create aro 0 null Users > php acl.php create aro 0 null Members > and those groups were created without problem. > > Now using the same acl.php script i need to organize groups in this > manner: > Users > Members > Regular > Premiun > Gold > > Thanks in advanced. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: 1.2 Pagination forgetting conditions?
I found that if you have other params set (field sort, direction, order), then you need to also unset those as well: unset($this->params['pass']['page']); unset($this->params['pass']['sort']); unset($this->params['pass']['direction']); unset($this->params['pass']['order']); Other wise you can't page and retain the same sort order. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Pagination Page Numbers in 1.2?
Your example was extremely timely and helpful for me since I was working on a search page today. I was able to clean-up the link creation so that it will retain any other params that might be set, like sort field and direction: '; for ( $page = 1; $page <= $paginator->params['paging'][$paginator- >__defaultModel]['pageCount']; $page++) { if ($page != $paginator->current() ) { $this->params['pass']['page'] = $page; echo '' . $paginator->link($page, $this- >params['pass']) . ''; } else { echo '' . $page . ''; } } echo ''; ?> --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Everything but webroot files working in subdomain?
All right, I have figured out a portion of this, but I am still unclear as to entirely what's happening. First of all, somewhere in Cake, the function writing out the stylesheet link is inserting a "/" before the CSS address. This means that even if you set the path for a CSS document in the config/paths.php file, there will still be a slash inserted. Is this a bug? At the very least it doesn't seem like the correct procedure here. Can anyone tell me where the function that writes out the stylesheet URL is located? I can't really understand this either. Shouldn't anything having to do with the HTML side of things be in the Views directory? After all, anything in HTML is bound to be involved in a view of some kind. Thanks for any help! --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Access control lists :: Creating groups using acl.php script
I was wondering how to create parent groups or child groups using acl.php script, for example, i just used "php acl.php initdb" and every table was created well. Then i used: php acl.php create aro 0 null Users php acl.php create aro 0 null Members and those groups were created without problem. Now using the same acl.php script i need to organize groups in this manner: Users Members Regular Premiun Gold Thanks in advanced. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: eternal routing
On Feb 23, 11:14 pm, "Oneill" <[EMAIL PROTECTED]> wrote: > Hi All, > > Here a dutch friend which needs some wisdom.;-) > > I am trying to build my own mini cms... Who doesn't... ;-) > > I would love to get my urls like this : /whatever/here/nice/blabla > The most scripts I saw on the google group are too simple for this. I > would like this to be eternal... So as many things after /sdd/ss/ > after blabla as needed. So how can I read this out with my > sitecontroller? > Has anybody have a clue to this problem? My nodes database looks like > this: > > CREATE TABLE `nodes` ( > `id` int(10) NOT NULL auto_increment, > `title` varchar(255) NOT NULL default '', > `position` int(10) NOT NULL default '0', > `parent_id` int(10) NOT NULL default '0', > `url` varchar(255) NOT NULL default '#', > `visible` tinyint(1) NOT NULL default '1', > `pages_id` int(6) default NULL, > `module` tinyint(1) default NULL, > `action` varchar(50) NOT NULL default '', > `controller` varchar(50) NOT NULL default '', > `start` tinyint(1) NOT NULL default '0', > PRIMARY KEY (`id`), > UNIQUE KEY `pages_id` (`pages_id`,`module`) > ) ENGINE=MyISAM DEFAULT CHARSET=latin1; > > Could someone please help me? > > Greetz,Stephan why not use the pages controller? if you create /app/views/pages/ something/somethingelse/apple/banana.thtml, you would access that by default with the url /pages/something/somethingelse/apple/banana, but you can change the routes to make the urls however you want. It's then quite easy looking at the file structure to know what is where (either manually or by code). If you need to add something to the pages controller (such as access control checks) you can do that by copying the pages controller that alraedy exists under the cake folder to your app/controllers folder and stick whatever extra logic you need in it. HTH, AD --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: multi-page forms
thanks guys. the FormsWizard looks interesting. What does the author mean by 'ways'? Bit of an odd term to choose. Routes through the form? Chris - can you elaborate on the problem with the back button? I assume you mean the browser back button? I guess there are three options - sessions, database and hidden fields. If the user hits 'back' - is the session data lost? do hidden fields get lost? would using a database help? i found a class here: http://www.phpclasses.org/browse/package/108.html and a useful article here: http://www.zend.com/zend/spotlight/code-gallery-wade7.php?article=code-gallery-wade7&kind=sl&id=5749&open=1&anc=0&view=1 any thoughts? On 23 Feb, 19:02, "jitka" <[EMAIL PROTECTED]> wrote: > Search snippets at cakeforge .org for FormWizard component - it stores > info in session and handles validation for every step as well as data > from multiple models used in different form steps. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Houston Bakers?
Me, waving from University of Houston On Feb 23, 3:01 pm, "naryga" <[EMAIL PROTECTED]> wrote: > Any Bakers in the Houston, TX Area? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Menus Controller Looking for Plural Model
I have double checked all my naming conventions numerous times and for some reason my controller (Menus) is looking for a Model looking Menus instead of Menu. Any help will be greatly appreciated. Here are the filenames and file contents. Controller: filename: menus_controller.php set('menu_data', $this->Menu->findAll('Menus.page_id='. $id,'Pages.page_name,Pages.page_url,Pages.page_level')); } } ?> Model: filename: menu.php View: directory: /views/menus filename: get_menu.thtml Test Menu directory: /views/menus filename: index.thtml Testing Menu Index Thanks, Scott --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Pagination Page Numbers in 1.2?
Ya! Awesome Thank You bbuchs! I have a few question(s) though if you can answer them or if anyone else can. How can I default the displaying of the home page for the controller to the last page. So if there is 10 pages ... instead of going to page 1 ... it goes to page 10 first. Is this possible? My second questions I answered myself :) ... so just that one question. Thank You once again! - J On Feb 23, 12:57 pm, "bbuchs" <[EMAIL PROTECTED]> wrote: > loop through the pageCount paramater and output the links > > params['paging'] > [$paginator->__defaultModel]['pageCount']; $page++): ?> > current() ): ?> > link($page, > '/admin/'.$paginator->params['controller'].'/index/page:'.$page) ?> > > > > > > > On Feb 23, 1:23 pm, "Jon M." <[EMAIL PROTECTED]> wrote: > > > Nobody can help me out :( ? > > > I tried doing a search but couldn't find anything on it. Please :) > > > On Feb 22, 3:11 pm, "Jon M." <[EMAIL PROTECTED]> wrote: > > > > I am curious if anyone can show me how to add selectable page numbers > > > along side the "prev" and "next" links. Having 50 pages and having to > > > click next 50 times to get to the last page is not fun :) so if > > > someone can help me out with that ... I would be very thankful :D ! --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Everything but webroot files working in subdomain?
I didn't do much but follow the installation instructions that came with cake, only I installed it in a subdomain. Given that Cake should think its in a root web document directory, I didn't think it would matter too much. And it didn't. My first controllers and models work fine. But the CSS file is not getting called. I can call it directly through the URL: http://dev.domain.com/app/webroot/css/cake.generic.css But it isn't getting pulled into my pages. Could this be a configuration variable problem? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
eternal routing
Hi All, Here a dutch friend which needs some wisdom.;-) I am trying to build my own mini cms... Who doesn't... ;-) I would love to get my urls like this : /whatever/here/nice/blabla The most scripts I saw on the google group are too simple for this. I would like this to be eternal... So as many things after /sdd/ss/ after blabla as needed. So how can I read this out with my sitecontroller? Has anybody have a clue to this problem? My nodes database looks like this: CREATE TABLE `nodes` ( `id` int(10) NOT NULL auto_increment, `title` varchar(255) NOT NULL default '', `position` int(10) NOT NULL default '0', `parent_id` int(10) NOT NULL default '0', `url` varchar(255) NOT NULL default '#', `visible` tinyint(1) NOT NULL default '1', `pages_id` int(6) default NULL, `module` tinyint(1) default NULL, `action` varchar(50) NOT NULL default '', `controller` varchar(50) NOT NULL default '', `start` tinyint(1) NOT NULL default '0', PRIMARY KEY (`id`), UNIQUE KEY `pages_id` (`pages_id`,`module`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; Could someone please help me? Greetz, Stephan --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
generate assoc array from single column
Is there a quick way to get an assoc array from a single column in a table? For example, I want an array of years like array(2000=>2000,2001=>2001) by running a query like select distinct year from mytable order by year I use a generic query and make it myself, thought there might be built in tools. I did look through online manual, didn't see anything that jumped out at me,unless some version of generateList will do this??? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: relationships for simple pick lists
Your are right, that works, I didn't think in the reverse direction. thanks, On Feb 23, 4:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Sounds like what you need is > > Vehicle belongs to make > Make has many vehicles > > See how you go with 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?hl=en -~--~~~~--~~--~--~---
Re: relationships for simple pick lists
Sounds like what you need is Vehicle belongs to make Make has many vehicles See how you go with 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?hl=en -~--~~~~--~~--~--~---
relationships for simple pick lists
I'm trying to understand the best way to set up model relationships for common pick lists, such as: model Vehicle hasOne Make where the makes table is basically: id, make And the vehicles table uses a column make_id to join to the associated make. The hasOne doesn't seem to apply, and the HABTM doesn't either, as the vehicle doesn't have more than one make. Do I use the HABTM relationship anyway, with a join table, even though a vehicle will never have more than one make? Brian --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
RE: Problems with FileHandler between 1.1.5 and 1.1.12?
Load the model before manually instantiating: loadModel('FileHandler'); $FileHandler =& new FileHandler(); BTW, there's no such thing as CakePHP 1.1.14, yet :) -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de Scott Sharkey Enviado el: Viernes, 23 de Febrero de 2007 06:18 p.m. Para: cake-php@googlegroups.com Asunto: Problems with FileHandler between 1.1.5 and 1.1.12? I've been using the FileHandler class for uploading, and it seems to be working fine in versions of cake up to about 1.1.7. But when trying to use the same code under 1.1.12 (and probably 1.1.14) it's telling me Fatal error: Cannot instantiate non-existent class: filehandler in /home/websvr/realconst/dev/app/controllers/admin_controller.php on line 36 --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Can cake (or php) handle huge amounts of data?
On Feb 23, 2007, at 12:01 PM, [EMAIL PROTECTED] wrote: > > Im working on a project where I have to make a frontend for store > sales (reports), where each store has a very large number (100k+) of > receipts and even larger number of sold items. The database is a mysql > datamart. If I limit the number of receipts cake will show the > information fine, but for 10,000 or more receipts it will only show a > blank page. I even tried removing associations to bring less data. > > Is this a cake or php problem? how can I bring back 10,000, 20,000, or > + records at a time ? My guess is that you might be getting max memory errors. Have you turned up DEBUG to see any error messages? -- John --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Problems with FileHandler between 1.1.5 and 1.1.12?
Hi All, I've been using the FileHandler class for uploading, and it seems to be working fine in versions of cake up to about 1.1.7. But when trying to use the same code under 1.1.12 (and probably 1.1.14) it's telling me Fatal error: Cannot instantiate non-existent class: filehandler in /home/websvr/realconst/dev/app/controllers/admin_controller.php on line 36 The file hander is class FileHandler, in file_handler.php, in the Models subdirectory. It is defined thusly: class FileHandler extends Model { ... } and is instantiated (or I'm attempting to!) thusly, in a function in my controller: function adm_imgupload() { // If not empty, process the file, else display the form... if ( !empty($_FILES) ) { $FileHandler =& new FileHandler(); This has worked fine, but broke somewhere between the two versions above. Suggestions for corrections would be appreciated! -Scott --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Houston Bakers?
Any Bakers in the Houston, TX Area? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Pagination Page Numbers in 1.2?
loop through the pageCount paramater and output the links params['paging'] [$paginator->__defaultModel]['pageCount']; $page++): ?> current() ): ?> link($page, '/admin/'.$paginator- >params['controller'].'/index/page:'.$page) ?> On Feb 23, 1:23 pm, "Jon M." <[EMAIL PROTECTED]> wrote: > Nobody can help me out :( ? > > I tried doing a search but couldn't find anything on it. Please :) > > On Feb 22, 3:11 pm, "Jon M." <[EMAIL PROTECTED]> wrote: > > > I am curious if anyone can show me how to add selectable page numbers > > along side the "prev" and "next" links. Having 50 pages and having to > > click next 50 times to get to the last page is not fun :) so if > > someone can help me out with that ... I would be very thankful :D ! --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Help with ACL and/or tree behavior
I just went through this myself... have you looked at the sample in the manual (http://manual.cakephp.org/chapter/acl) ? I found that it describes what you need to do pretty well and from the look of it you might be missing a step. cheers On Feb 23, 3:17 pm, "scragz" <[EMAIL PROTECTED]> wrote: > I'm having some issues getting ACL working in the 1.2 branch. I think > I'm finally pretty close and was wondering how to properly save a tree > model. I have, so far: > > $acl->Aro->create(array('model' => 'Role', 'foreign_key' => 1, > 'parent_id' => 0, 'alias' => 'foo')); > > $acl->Aro->save(); > > Outputs: > > 1. TRUNCATE aros; > 2. DESC `aros` > 3. DESC `acos` > 4. DESC `aros_acos` > 5. INSERT INTO `aros` (`model`,`foreign_key`,`parent_id`,`alias`) > VALUES ('Role','1','0','foo') > 6. SELECT `Aro`.`parent_id` FROM `aros` AS `Aro` WHERE > (`Aro`.`id` = '1') LIMIT 1 > > This works except it doesn't set the lft/rght, what I think should be > happening next. Anyone have a clue as to what I'm doing wrong? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
New baker struggling with hasAndBelongsToMany
Hey gang, been doing php for years but brand new to CakePHP. I am stuck and need a nudge. I have a table with Groups. The a table with Admins. I also have a Admins_Groups table and with the proper hasAndBelongsToMany in place the scaffolding sees the groups an admin is admin for and what admins are admins for a group. All is fine. But I need to have a super-admin be able to assign and remove admins from the groups. I cannot figure out how to save this. I have read the manual and tried a few tests, but no luck. Please assume that the super admin would select the group first. On this page for group "A" he would select one or many admins from a multi select list and save. I also need to be able to remove admins. First I cant figure out how the save code should look and further more, what is the admin removes an existing admin from a group, doe Cake remove that relationship from the "admins_groups" tabel? How would it know to? Hope you all can help, this stuff rocks big time. 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?hl=en -~--~~~~--~~--~--~---
Help with ACL and/or tree behavior
I'm having some issues getting ACL working in the 1.2 branch. I think I'm finally pretty close and was wondering how to properly save a tree model. I have, so far: $acl->Aro->create(array('model' => 'Role', 'foreign_key' => 1, 'parent_id' => 0, 'alias' => 'foo')); $acl->Aro->save(); Outputs: 1. TRUNCATE aros; 2. DESC `aros` 3. DESC `acos` 4. DESC `aros_acos` 5. INSERT INTO `aros` (`model`,`foreign_key`,`parent_id`,`alias`) VALUES ('Role','1','0','foo') 6. SELECT `Aro`.`parent_id` FROM `aros` AS `Aro` WHERE (`Aro`.`id` = '1') LIMIT 1 This works except it doesn't set the lft/rght, what I think should be happening next. Anyone have a clue as to what I'm doing wrong? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Pagination Page Numbers in 1.2?
Nobody can help me out :( ? I tried doing a search but couldn't find anything on it. Please :) On Feb 22, 3:11 pm, "Jon M." <[EMAIL PROTECTED]> wrote: > I am curious if anyone can show me how to add selectable page numbers > along side the "prev" and "next" links. Having 50 pages and having to > click next 50 times to get to the last page is not fun :) so if > someone can help me out with that ... I would be very thankful :D ! --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Can cake (or php) handle huge amounts of data?
Im working on a project where I have to make a frontend for store sales (reports), where each store has a very large number (100k+) of receipts and even larger number of sold items. The database is a mysql datamart. If I limit the number of receipts cake will show the information fine, but for 10,000 or more receipts it will only show a blank page. I even tried removing associations to bring less data. Is this a cake or php problem? how can I bring back 10,000, 20,000, or + records at a time ? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Ajax tutorials
http://ahsanity.wordpress.com/2007/02/23/get-started-with-ajax-in-cakephp/ [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Ajax tutorials
Check the group's history, there was a post earlier today with links to just that.. :P Junal Rahman escreveu: > I want to use Ajax in Cakephp. Can anybody give me a link of example where i > can see how to use Ajax in cake. > > > > --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Inline scripts_for_layout after failed validation missing
I'm using the "inline" option to include CSS and JS on a per-view basis (as described by Nate: http://cake.insertdesignhere.com/posts/view/17) example: in an "admin_edit.ctp" file, I link to a CSS file that styles my form inputs: $html->css('admin',null,null,false); When a submitted form fails validation and the view is re-rendered with error messages, the inline scripts/styles aren't being included. (It works like a charm on the initial load) Can anyone confirm this, or am I missing something? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: multi-page forms
Search snippets at cakeforge .org for FormWizard component - it stores info in session and handles validation for every step as well as data from multiple models used in different form steps. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Ajax tutorials
hmmm. Big word AJAX on the Bakery takes me to http://bakery.cakephp.org/tags/view/ajax searching this group for the word ajax gives 796 results, the first page has several useful answers. HTH, David Lloyd -- lloydhome consulting, inc. http://lloydhome.com On Feb 23, 12:49 pm, "Junal Rahman" <[EMAIL PROTECTED]> wrote: > I want to use Ajax in Cakephp. Can anybody give me a link of example where i > can see how to use Ajax in cake. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Ajax tutorials
I want to use Ajax in Cakephp. Can anybody give me a link of example where i can see how to use Ajax in cake. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Notice: Undefined variable
Is there anyway to turn these noticies off while keeping Configure::write('debug', '2'); ? They are really freaking annoying. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: multi-page forms
On 2/23/07, lukemack <[EMAIL PROTECTED]> wrote: > > hi, > > does anyone know of a tutorial regarding multi-page forms in cakephp? > What I'm going to be doing is a form which allows the user to submit a > review, then after the first page submit, they get a a registration > form (only registered users can submit reviews). registered users can > login there or maybe the second page would not appear for registered > users. Page 3 of the form will show a preview of the review they are > going to submit and a few checkboxes etc. > > can anyone suggest a good approach for doing this in cakephp? i'm just > looking for a few pointers to get me started. i'm using the current > stable release so won't have access to 1.2 functionality. > > many thanks, > > lukemack. You might need to store the values in sessions or as hidden fields in the forms themselves. I think the sessions method is the least kludgy, but it doesn't stop the problem of people messing things up by using the back button. Hope that helps. -- Chris Hartjes My motto for 2007: "Just build it, damnit!" rallyhat.com - digital photo scavenger hunt @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
RE: Email Problem
With the "will you please" part you were too nice ;) It should go something like: "hi need my app to write to a file then to read database and parse XML so it can go into webservice using REST but also display results in AJAX showing when a request is being made so I need code to do this and also an installer script because my client needs it this is URGENT so help now!" -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje original- De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre de [EMAIL PROTECTED] Enviado el: Viernes, 23 de Febrero de 2007 01:36 p.m. Para: Cake PHP Asunto: Re: Email Problem I'm looking for code that will pay my bills and call my mom every week. Will you please give me an example this this code. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Blank page of death
Hi, I am having a very strange issue on my webspace provider, this does not happen on my local installation. I tried to get Cake to work on my webspace (Cake 1.2, released version), installed everything, database works. I implemented a simple scaffolding app with two tables, "articles" and "comments". And it seems to work. However, after entering some article, when I try to look at http://dev.reya.de/articles Firefox returns a blank page. Totally blank, no header, no content. Funny though, http://dev.reya.de/articles/edit/7 works just fine. (If anyone should give this a try, please don't delete that entry, so this example will still work :) ) I debugged into this and it came down to around line 700 in /cake/libs/ view/view.php (in the _render function): if (Configure::read() > 0) { include ($___viewFn); } else { @include ($___viewFn); } For debug purposes, I changed that to: if (Configure::read() > 0) { $this->log('_render in view. #694, trying to include ' . $___viewFn ); include ($___viewFn); } else { @include ($___viewFn); } $this->log('_render in view. #700.'); That's what the log file says (first /articles, then /articles/edit/7) 2007-02-23 18:13:45 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:46 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:46 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:47 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:48 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:48 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:49 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:49 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:50 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:50 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:13:51 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/index.thtml 2007-02-23 18:14:30 Debug: _render in view. #694, trying to include cake/libs/view/templates/scaffolds/edit.thtml 2007-02-23 18:14:30 Debug: _render in view. #700. 2007-02-23 18:14:30 Debug: _render in view. #694, trying to include / is/htdocs/wp1034476_1QHLDZ3T0M/www/cake/cake/libs/view/templates/ layouts/default.ctp 2007-02-23 18:14:30 Debug: _render in view. #700. Configure::Read() is greater than zero, it tries to include $___viewFn which is "cake/libs/view/templates/scaffolds/index.thtml" which seems to be correct, the file exists. But after that it just dies. I tried to put debug stuff into that file but it must die somewhere before that. It doesn't really die that but it tries that about 10 times and then I get the blank page. Why 10 times? Why does the blank page show up? Has anyone seen something like this before? I want to make sure this works before I actually put more time in for development. I tried to make sure all files don't end with spaces or newlines, edited the db config correctly and /app/tmp is writable as well. Don't know what to do. Any help is greatly appreciated. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
multi-page forms
hi, does anyone know of a tutorial regarding multi-page forms in cakephp? What I'm going to be doing is a form which allows the user to submit a review, then after the first page submit, they get a a registration form (only registered users can submit reviews). registered users can login there or maybe the second page would not appear for registered users. Page 3 of the form will show a preview of the review they are going to submit and a few checkboxes etc. can anyone suggest a good approach for doing this in cakephp? i'm just looking for a few pointers to get me started. i'm using the current stable release so won't have access to 1.2 functionality. many thanks, lukemack. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Sum problem
well thx for ur reply.i kno its may not be related to cakephp but im using the cakephp framework and showing the result using controller and model...thx. On Feb 23, 8:05 am, "Eric C Blount" <[EMAIL PROTECTED]> wrote: > Please explain how this problem relates to CakePHP, not simply to PHP. > > foreach($yourArray as $yourValue) > $totalTime += $yourValue; > > Eric > > On 2/22/07, Junal Rahman <[EMAIL PROTECTED]> wrote: > > > > > hi everybody ! im net at cakePhp. im trying to show data from different > > tables. i have done it. problem is i want to sum the total time of the > > array. let say i have data like this > > $data['Style']['Sp'][0]['Test'][0]['time']. i have been using a foreach > > loop to show the data. here Style Sp n Test are models. now next loop will > > be like $data['Style']['Sp'][0]['Test'][1]['time'] which will show the next > > time belongs to the id. now my question is how can i get the total time from > > it. i mean how can i add the time?..plz give me a suggestion. thank > > you. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Email Problem
Hi, I'm looking for code that will pay my bills and call my mom every week. Will you please give me an example this this code. Ha! --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: FLEX 2 Integration Issues
Repo is currently not available due to the following error: Error: Can't open file 'C:\My_Path\!CakePHP\CakeForge\svn_cakeamfphp \trunk\amfBB\ria\deploy\.svn\tmp\text-base\don't use this directory. put swfs in app:webroot:swf.svn-base': The parameter is incorrect. Any help obtaining the latest and greatest would be much appreciated... On Jan 26, 2:13 pm, "gwoo" <[EMAIL PROTECTED]> wrote: > You need to get the latest version of CakeAMFPHP. The only catch is > that its only in SVN. > > svn checkout ofhttps://svn.cakeforge.org/svn/cakeamfphp/trunk/amfBB > > This is an example app that has the latestamfphpand cakeamfphp stuff > integrated into it already. > Along with the latest working service browser for amf3. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Beta testing invitation
Hi all, I've been putting together an online event registration system in CakePHP that will be a hosted, commercial web app. I'd love to hear from anyone who is interested in testing the app in its current form, even use it to run an event perhaps... Happy to give something back in return. Just ping me an email or reply to this thread and I will point you in the right direction. Cheers, Ianh --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
problem with pagination
hi I am having some problems with the pagination display. I don't know what went wrong.Well the records are showing up correctly according to the criteria,but their no is less than the actual one.For eg if the correct no of records is 25 it is showing only up to 20.However when I change the show variable to 100 it is showing them up.But in the normal case it is only showing up to 20 records .Needing help.Please reply soon --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: best practice multiple checkboxes
"GreyCells" also wrote a Helper for this purpose - I'm using it on a 1.2 project now, and it's great. I think the HTML it outputs could be a little cleaner, but it does what it should. https://trac.cakephp.org/ticket/1901 I'm hoping something like this makes it into the source - from a usability perspective, multiple-select option lists are horrible. On Feb 23, 4:56 am, "szeta" <[EMAIL PROTECTED]> wrote: > Does anybody have an idea here? > > Every hint is appreciated. :-) > Regards > Ralph > > On 22 Feb., 10:23, "szeta" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I'm using CakePHP now for a few months on a project and I really love > > the framework. > > It helped me to safe a lot of time! > > > But one thing, I always run into is, that it's not so easy to generate > > comfortable checkboxes (e.g. for maintaining HABTM relations). > > > I tried e.g. $html->checkboxMultiple and it works, that's already much > > better than the scroll-box baked by default. > > > But I'd like to give more Information to the related items (not only > > the primary key, but also the name or something else..) > > > How do you handle this? Is there a method I have overseen? > > > Best wishes! > > Ralph --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: best practice multiple checkboxes
hum... Honnest I haven't had a look at the $html->checkboxesMultiple yet but well.. here's how my apps do it; I've extended the html helper as I've got quite a few 'custom' functions. One of them I called checkboxGroup (and other one is radioGroup, which I though looks better than a select box in some cases) The function behaves pretty much like the input one, so my views don't have any more 'layout processing' to do. So I call it like this; param1 is the association name, and $keywords the list of all keywords an article could be assigned to (~100). checkboxGroup('Keyword',$keywords); ?> The signature for the method is ; function checkboxGroup ($assocName, $items, $htmlAttributes = null, $separator = null, $selected_label = null, $selected_key = null, $div = true ) { * @param string $assocName the name of the association Model. Used to generate the proper input name. * @param array $items collection of items to display (from generatedList is fine). * @param array $htmlAttributes to assign to the wrapping div * @param string $separator to be inserted between every elements (default is ) * @param string $selected_label attribute from a $item to use as a label (default: name) * @param string $selected_id attribute from the $item object to map the selection to (default: id) * @param bool $div wrap the whole thing in a div or not - same as the - >submit behavior in 1.2+ * @return string html generated Same as most other HtmlHelper method, the values (selected items) are pulled out of the current data. The function then generates; label label The to make a nice look and feel, I use the css to give the checklist div a fixed height and make the overflow scroll (auto). Looks like this; http://img341.imageshack.us/my.php?image=untitledes0.png Hope this helps! Seb ' On Feb 23, 9:56 pm, "szeta" <[EMAIL PROTECTED]> wrote: > Does anybody have an idea here? > > Every hint is appreciated. :-) > Regards > Ralph > > On 22 Feb., 10:23, "szeta" <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I'm using CakePHP now for a few months on a project and I really love > > the framework. > > It helped me to safe a lot of time! > > > But one thing, I always run into is, that it's not so easy to generate > > comfortable checkboxes (e.g. for maintaining HABTM relations). > > > I tried e.g. $html->checkboxMultiple and it works, that's already much > > better than the scroll-box baked by default. > > > But I'd like to give more Information to the related items (not only > > the primary key, but also the name or something else..) > > > How do you handle this? Is there a method I have overseen? > > > Best wishes! > > Ralph --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Email Problem
As an avid writer of rants about the postings of n00bs and rude people, I have to say that pretty much sums it up. Eric, you get a gold star. On Feb 23, 5:52 am, "Eric C Blount" <[EMAIL PROTECTED]> wrote: > No one is going to *give* you sample code. We're not getting paid to write > your program. > > We've pointed you in the right direction. Go learn it! > > Good luck, > Eric > > On 2/23/07, anandrv <[EMAIL PROTECTED]> wrote: > > > > > i am using cake1.1.12.4205 give me example codin this is my controller > > coding > > > var $helpers = array('Html', 'Form' ); > > function add() > > { > > $this->set('catArray', $this->Product->Category- > > >generateList(null,null,null,'{n}.Category.id','{n}.Category.catname')); > > if (!empty($this->data)) > > { > > if($this->data["Category"]["catid"] == "" || $this->data['Product'] > > ['prodname'] == ""|| $this->data['Product']['description'] == "" || > > $this->data['Product']['imgpath'] == "" || $this->data['Product'] > > ['price'] == "" ) > > { > >$this->Session->setFlash('Please correct errors below.'); > > } > > else > > { > >$currentFile = $this->params['data']['File']['imgpath']; > >$filePath ="C:/www/gadgets/app/views/img/".$currentFile['name']; > >if(!file_exists($filePath)) > >{ > > if (is_uploaded_file($currentFile['tmp_name']) && > > move_uploaded_file($currentFile['tmp_name'], $filePath)) > > { > > echo "No Error"; > > } > >} > > } > > } > > >} > > > Please Give me an sample coding. > > > Thanks and Regards, > > > On Feb 23, 2:44 pm, Ámon Tamás <[EMAIL PROTECTED]> wrote: > > > anandrv wrote: > > > > I have Developed by Registration Page.I need After Registration > > > > Completed the Thank you mail was send to the user and the Admin also > > > > received one mail.Please Give me examples. > > > > Which version of Cake do you use? In 1.2 there is a very nice email > > > component, what is easy to use. > > > > -- > > > Ámon Tamáshttp://linkfelho.amon.hu --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Associations and Scaffolding
Thanks for that - its just me wishing for the magic bullet! If scaffolding did all that we wanted then whay would we take it down! Thanks again On Feb 23, 12:42 pm, "hydra12" <[EMAIL PROTECTED]> wrote: > That is right. If you don't pick the patient id from a drop down, how > will the diagnosis model know which patient to associate with? As far > as I know, that's standard practice for Cake's scaffolding. You can > set the $displayField property for your patient model, though, so you > can choose patient names instead of patient id's. > > I'm guessing here, but it sounds like you want to view a patient, then > add a related diagnosis from the diagnosis section at the bottom of > your scaffolded patient view, and have it remember which patient you > were viewing and automatically fill that information in for you? > Scaffolding won't do that for you. I'd recommend using bake.php to > build your basic views, then edit your patient view so that when you > add a related diagnosis, it passes the patient id to the diagnosis add > view. From there you could set it to fill in the patient_id field > automatically. > > I hope that helps. > hydra12 > > On Feb 23, 5:01 am, "g5Maniac" <[EMAIL PROTECTED]> wrote: > > > I am probably missing something fundamental and it may just be a > > function of scaffolding and something I need to add in later but... > > > if I have a related record ie... > > > patient Model > > > var $hasMany = 'Diagnosis'; > > > Diagnosis Model > > > var $belongsTo ='Patient'; > > > when I scaffold that and add a new diagnosis it doesn't automatically > > add the correct patient id i.e I need to pick the correct one from a > > drop down! > > > That cant be right...? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Associations and Scaffolding
That is right. If you don't pick the patient id from a drop down, how will the diagnosis model know which patient to associate with? As far as I know, that's standard practice for Cake's scaffolding. You can set the $displayField property for your patient model, though, so you can choose patient names instead of patient id's. I'm guessing here, but it sounds like you want to view a patient, then add a related diagnosis from the diagnosis section at the bottom of your scaffolded patient view, and have it remember which patient you were viewing and automatically fill that information in for you? Scaffolding won't do that for you. I'd recommend using bake.php to build your basic views, then edit your patient view so that when you add a related diagnosis, it passes the patient id to the diagnosis add view. From there you could set it to fill in the patient_id field automatically. I hope that helps. hydra12 On Feb 23, 5:01 am, "g5Maniac" <[EMAIL PROTECTED]> wrote: > I am probably missing something fundamental and it may just be a > function of scaffolding and something I need to add in later but... > > if I have a related record ie... > > patient Model > > var $hasMany = 'Diagnosis'; > > Diagnosis Model > > var $belongsTo ='Patient'; > > when I scaffold that and add a new diagnosis it doesn't automatically > add the correct patient id i.e I need to pick the correct one from a > drop down! > > That cant be right...? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Getting started with Ajax in CakePhp
Hello folks. I have just compiled an article with useful links for getting started with Ajax in CakePhp. Though its very basic, I feel people who are new to Cake will benefit from it (hopefully). Do let me know your views and suggestions. I am sure there is room for improvement. Here's the link: http://ahsanity.wordpress.com/2007/02/23/get-started-with-ajax-in-cakephp/ [EMAIL PROTECTED] --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Integrate a datepicker
Steniskis escreveu: > I use this one > http://www.frequency-decoder.com/2006/10/02/unobtrusive-date-picker-widgit-update > It is all right and simple to install. > Jean Hi, I'm new to cake php anda I´m trying to integrate this date picker also. I can't get it to work , instead of a popupmenu with the calendar, it apears at the botom of the window. Can you tell me how you integrated it in your project ? Thanks in advance. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Associations and Scaffolding
I am probably missing something fundamental and it may just be a function of scaffolding and something I need to add in later but... if I have a related record ie... patient Model var $hasMany = 'Diagnosis'; Diagnosis Model var $belongsTo ='Patient'; when I scaffold that and add a new diagnosis it doesn't automatically add the correct patient id i.e I need to pick the correct one from a drop down! That cant be right...? --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: best practice multiple checkboxes
Does anybody have an idea here? Every hint is appreciated. :-) Regards Ralph On 22 Feb., 10:23, "szeta" <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using CakePHP now for a few months on a project and I really love > the framework. > It helped me to safe a lot of time! > > But one thing, I always run into is, that it's not so easy to generate > comfortable checkboxes (e.g. for maintaining HABTM relations). > > I tried e.g. $html->checkboxMultiple and it works, that's already much > better than the scroll-box baked by default. > > But I'd like to give more Information to the related items (not only > the primary key, but also the name or something else..) > > How do you handle this? Is there a method I have overseen? > > Best wishes! > Ralph --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Email Problem
No one is going to *give* you sample code. We're not getting paid to write your program. We've pointed you in the right direction. Go learn it! Good luck, Eric On 2/23/07, anandrv <[EMAIL PROTECTED]> wrote: > > > > i am using cake1.1.12.4205 give me example codin this is my controller > coding > > > var $helpers = array('Html', 'Form' ); > function add() > { > $this->set('catArray', $this->Product->Category- > >generateList(null,null,null,'{n}.Category.id','{n}.Category.catname')); > if (!empty($this->data)) > { > if($this->data["Category"]["catid"] == "" || $this->data['Product'] > ['prodname'] == ""|| $this->data['Product']['description'] == "" || > $this->data['Product']['imgpath'] == "" || $this->data['Product'] > ['price'] == "" ) > { >$this->Session->setFlash('Please correct errors below.'); > } > else > { >$currentFile = $this->params['data']['File']['imgpath']; >$filePath ="C:/www/gadgets/app/views/img/".$currentFile['name']; >if(!file_exists($filePath)) >{ > if (is_uploaded_file($currentFile['tmp_name']) && > move_uploaded_file($currentFile['tmp_name'], $filePath)) > { > echo "No Error"; > } >} > } > } > >} > > Please Give me an sample coding. > > Thanks and Regards, > > > On Feb 23, 2:44 pm, Ámon Tamás <[EMAIL PROTECTED]> wrote: > > anandrv wrote: > > > I have Developed by Registration Page.I need After Registration > > > Completed the Thank you mail was send to the user and the Admin also > > > received one mail.Please Give me examples. > > > > Which version of Cake do you use? In 1.2 there is a very nice email > > component, what is easy to use. > > > > -- > > Ámon Tamáshttp://linkfelho.amon.hu > > > > > --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: How to select a country in user table
First off, I think you need to name things correctly. In users, you should have country_id, and your table should be named countries. Next, just add the following to the Country model: var $hasMany = array( 'User' => array('className' => 'User', ), ); And in the User model: var $belongsTo = array( 'Country' => array('className' => 'Country', ), ); Set $this->User->recursive = 1; before you query the users table, and you should be all set! Also, as good as the IBM tutorials are, you should really read http://manual.cakephp.org/ thoroughly. Tons of great information there. HTH, Eric On 2/22/07, josoroma <[EMAIL PROTECTED]> wrote: > > I was learning cake with the IBM tutorials, and everything is working > nice, is a piece of art, a piece of cake. > > My question, what can i have to add an use in: model, controller and > view to add a select of Country in a user table? Cuz, a user can edit > the information later, how to show the country name and not the > country number, how do i manage this. > > table users: > id > username > password > countrys_id -> do i have to use inflections? > > table countrys: -> do i have to use inflections? > id > name > > > > http://www-128.ibm.com/developerworks/views/opensource/libraryview.jsp?search_by=cook+web+sites+CakePHP > > Thanks in advanced. > > > > > --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: *CakePHP IRC and GoogleGroup Etiquette Suggestions*
IRC has no code formatting nor does this google group. Please paste code in http://bin.cakephp.org/ and give the link. On Feb 23, 9:43 am, MJ Ray <[EMAIL PROTECTED]> wrote: > "John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > > > - Critique on a community contributed, open source project is silly > > unless you're willing to pony up some help. [...] > > I'd modify that one to: > - Constructive critique on a community contributed, open source > project is OK, but don't expect it to change unless you're willing to > help. Destructive critique is unhelpful and silly. [...] > > Regards, > -- > MJ Ray <[EMAIL PROTECTED]> www.ttllp.co.uk +44-870-4321-9-10 > Web, localisation, koha, databases, GNU/Linux and statistics. > Registered in England and Wales, partnership number OC303457 > Reg. Office: 36 Orchard Cl., Kewstoke, Somerset, GB-BS22 9XY --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Email Problem
i am using cake1.1.12.4205 give me example codin this is my controller coding var $helpers = array('Html', 'Form' ); function add() { $this->set('catArray', $this->Product->Category- >generateList(null,null,null,'{n}.Category.id','{n}.Category.catname')); if (!empty($this->data)) { if($this->data["Category"]["catid"] == "" || $this->data['Product'] ['prodname'] == ""|| $this->data['Product']['description'] == "" || $this->data['Product']['imgpath'] == "" || $this->data['Product'] ['price'] == "" ) { $this->Session->setFlash('Please correct errors below.'); } else { $currentFile = $this->params['data']['File']['imgpath']; $filePath ="C:/www/gadgets/app/views/img/".$currentFile['name']; if(!file_exists($filePath)) { if (is_uploaded_file($currentFile['tmp_name']) && move_uploaded_file($currentFile['tmp_name'], $filePath)) { echo "No Error"; } } } } } Please Give me an sample coding. Thanks and Regards, On Feb 23, 2:44 pm, Ámon Tamás <[EMAIL PROTECTED]> wrote: > anandrv wrote: > > I have Developed by Registration Page.I need After Registration > > Completed the Thank you mail was send to the user and the Admin also > > received one mail.Please Give me examples. > > Which version of Cake do you use? In 1.2 there is a very nice email > component, what is easy to use. > > -- > Ámon Tamáshttp://linkfelho.amon.hu --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Email Problem
anandrv wrote: > I have Developed by Registration Page.I need After Registration > Completed the Thank you mail was send to the user and the Admin also > received one mail.Please Give me examples. > Which version of Cake do you use? In 1.2 there is a very nice email component, what is easy to use. -- Ámon Tamás http://linkfelho.amon.hu --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: *CakePHP IRC and GoogleGroup Etiquette Suggestions*
"John David Anderson (_psychic_)" <[EMAIL PROTECTED]> wrote: > - Critique on a community contributed, open source project is silly > unless you're willing to pony up some help. [...] I'd modify that one to: - Constructive critique on a community contributed, open source project is OK, but don't expect it to change unless you're willing to help. Destructive critique is unhelpful and silly. [...] Regards, -- MJ Ray <[EMAIL PROTECTED]> www.ttllp.co.uk +44-870-4321-9-10 Web, localisation, koha, databases, GNU/Linux and statistics. Registered in England and Wales, partnership number OC303457 Reg. Office: 36 Orchard Cl., Kewstoke, Somerset, GB-BS22 9XY --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Multiple Paths for Models/Views/Controllers in paths.php
for the record... in bootstrap.php, you can use $modelPaths $viewPaths $controllerPaths $helperPaths $componentPaths $behaviorPaths To add one or more paths to be looked up. I've submitted a patch (dams simple) to add additional paths for vendors (so that a vendor be reused across multiple projects) and I have the weird feeling it's going to fall through the cracks! So anyway! The future will tell us! On Feb 23, 2:58 pm, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > Regarding point 1 below: I was looking at loadModels(), but loadModel() has > the same: > > function loadModel($name = null) { > // ... > > if (!is_null($name) && !class_exists($name)) { > $name = Inflector::underscore($name); > $paths = Configure::getInstance(); > > foreach($paths->modelPaths as $path) { > if (file_exists($path . $name . '.php')) { > // ... > } > } > } > > } > > -MI > > --- > > Remember, smart coders answer ten questions for every question they ask. > So be smart, be cool, and share your knowledge. > > BAKE ON! > > blog:http://www.MarianoIglesias.com.ar > > -Mensaje original- > De: Mariano Iglesias [mailto:[EMAIL PROTECTED] > Enviado el: Viernes, 23 de Febrero de 2007 12:54 a.m. > Para: 'cake-php@googlegroups.com' > Asunto: RE: Multiple Paths for Models/Views/Controllers in paths.php > > 1. cake/basics.php - loadModels() has this: --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Re: Email Problem
So, have you searched the group for examples? Have you searched the bakery? http://bakery.cakephp.org/ search for mail, see the top article. http://www.php.net/mail HTH, Eric On 2/23/07, anandrv <[EMAIL PROTECTED]> wrote: > > > I have Developed by Registration Page.I need After Registration > Completed the Thank you mail was send to the user and the Admin also > received one mail.Please Give me examples. > > > > > --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---
Email Problem
I have Developed by Registration Page.I need After Registration Completed the Thank you mail was send to the user and the Admin also received one mail.Please Give me examples. --~--~-~--~~~---~--~~ 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?hl=en -~--~~~~--~~--~--~---