How to use ajax to update values using drop down button in cakephp 1.2
Hi all, I am quite new to cakephp. So ...things which are easy for you are quite difficult for me now. Plz help me to get it soon. my problem is i am not able get the edit field id and cant edit it as click on edit button which i made.evrry time i have to get my search done.then,my search disappeares but if i do again searching then i will get it my edited field as edited in -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: Cakefest videos
Thanks. I will be looking forward to viewing them. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Cakefest videos
Are the 2011 cakefest conference recorded and if so can i view the videos online? Thanks. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
How to Create API's user CakePHP
I believe I have set up CakePHP properly but for some reason I do not know how to start user CakePHP to start developing my api. I know I want to use REST for my api calls. What would be a quick way to get my api up and running with CakePHP. It is important to get this going with little downtime with code building. Any help would be nice. Thank you. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Using Pages
That's what I thought. I originally tried it that way but I still got the page not found error. I've gone back and reviewed the API and have even tried modifying the router with a tip I found here http://richardathome.wordpress.com/2007/08/13/cakephp-tip-routing-for-static-pages/ But I'm still having trouble. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Using Pages
I'm just trying to run a quick and dirty test on my site and I thought it would be best to use pages for it. I've created a page called test.ctp in the views/pages folder and a new action called test in the pages controller. But I keep getting a page not found error. Am I missing anything? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Javascript/Ajax Helpers Not Functioning
@Sherlock. I'm not sure where in either of my posts you gathered enough information to assume with such certainty this question had anything to do with migration. I believe this is the second time you've posted a snyde and off topic answer to one of my questions. I, and I'm sure other newcomers to the cake community would appreciate it if you framed your responses to be more helpful. @Ryan. Again I thank you for your help. Though I am working with a 1.2 version of Cake. I'm studying 1.2 because I have a large legacy system I'm trying to debug and eventually upgrade. The issues I'm encountering here are not likely being caused by Cake versioning. Unless I've missed something, the online documentation doesn't mention anything about common incompatibilities or volitilities with these Helpers. So I'm completely dumbfounded as to why these functions are not working on my system. I'm not sure if my assumptions of the HttpRequests being at fault are correct or not, though any clues someone could give me would be MUCH appreciated. On May 11, 6:37 pm, Ryan Schmidt wrote: > On May 11, 2011, at 16:18, Sam Sherlock wrote: > > > Ryan answered your question. > > > you'll find out by reading the migrating link - to me it seems silly to > > list here > > what is listed there especially when you can just get info straight from > > source there > > > assuming all code is correct > > > if you using 1.3 then the code is out of date and therefore not correct for > > the version > > Well, the documentation says it's *deprecated* (not that it's obsolete or > removed) so there is the expectation that the old methods would still work. > > http://en.wikipedia.org/wiki/Deprecation > > ("Features are deprecated—rather than being removed—in order to provide > backward compatibility and give programmers who have used the feature time to > bring their code into compliance with the new standard.") > > I have not attempted to use these features, so I don't know whether they > actually do still work in 1.3, or whether they're really broken (if the > latter, the documentation should be updated to say so and not give false > expectations). > > I guess the lesson is that if you really want to learn using a CakePHP 1.2 > book, you might have better success by using CakePHP 1.2. Once you've learned > how that works, you can read through the 1.2-to-1.3 migration docs to upgrade > to 1.3. > > Or, forget the book you have, and instead read the online cookbook and/or > tutorials written for CakePHP 1.3 and start with that. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Javascript/Ajax Helpers Not Functioning
Thanks for trying to answer my question. Though my main question here is a question of "assuming all code is correct, are there any common problems with getting these deprecated helpers to work?" On May 11, 4:33 pm, Ryan Schmidt wrote: > On May 11, 2011, at 14:28, brandon buster wrote: > > > I've been reading Beginning Cakephp and Practical Cakephp Projects, > > both printed by Apress. Both books use version 1.2 and so far in all > > the tutorials I can't get the Javascript or Ajax functions to work. > > > It seems there're problems with the HttpRequests, but I'm sure it's > > not the code as I've copied it straight from the books. > > > Are there any issues that are likely the root of the problem here? > > Perhaps PHP 5.3.5 is not compatible with the Prototype library? > > PHP is a server-side scripting language. Prototype is a client-side > JavaScript library. They have nothing to do with one another, no opportunity > to cause each other any incompatibilities. > > CakePHP 1.2 is old. In CakePHP 1.3 the JavaScript functions were rewritten -- > the JavaScript helper is deprecated and replaced with the new Js and Html so > any CakePHP documentation you are following about using CakePHP to generate > JavaScript code will probably not be correct. I would refer you to the online > CakePHP cookbook: > > http://book.cakephp.org/ > > See "Deprecated Helpers" under here: > > http://book.cakephp.org/view/1561/Migrating-from-CakePHP-1-2-to-1-3#V... > > You may want to read that entire page, to see what other information you've > learned from your CakePHP 1.2 book needs to be changed to be applicable to > CakePHP 1.3. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Javascript/Ajax Helpers Not Functioning
I've been reading Beginning Cakephp and Practical Cakephp Projects, both printed by Apress. Both books use version 1.2 and so far in all the tutorials I can't get the Javascript or Ajax functions to work. It seems there're problems with the HttpRequests, but I'm sure it's not the code as I've copied it straight from the books. Are there any issues that are likely the root of the problem here? Perhaps PHP 5.3.5 is not compatible with the Prototype library? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
if/else vs. try/catch
Not sure if this is a dumb question or not, but it seems to me these two techniques could be used interchangeably to test for and handle errors. Are there any benefits of using one over the other, or scenarios in which one should be used over the other? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Plugin Views Not Showing
I'm studying 1.2 because I already have a large application built in the version. As I learn more about the framework though I see cake conventions had at some point been abandoned by the developers. I'd like to get everything working systematically before I update the server and application. @Sherlock, I went over your adjustments, but apart from letter casing I couldn't find any variations in file structure or naming from what I'd posted earlier. Am I missing something/ On Apr 11, 5:27 pm, Ryan Schmidt wrote: > On Apr 11, 2011, at 12:19, brandon buster wrote: > > > I'm studying Cake 1.2 > > Why not study CakePHP 1.3.8 instead? Things have changed between 1.2 and 1.3, > so learning 1.2 at this point sounds counterproductive. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Plugin Views Not Showing
I'm studying Cake 1.2 using the Beginning Cakephp from Novice to Professional book by Apress. In chapter 13 they walk you through how to build a custom plugin. My code and DB are identical to the book, as is the file structure: Blog/ App/ Plugins/ calendar_app_controller.php calendar_app_model.php Models/ calendar_event.php Views/ Elements/ calendar.ctp Events/ add.ctp edit.ctp index.ctp Helpers/ calendar.php Controllers/ events_controller.php But for some reason my pages aren't showing. It appears the application is finding the correct actions because I'm not getting an error. All I get is a blank screen. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Reasons for AJAX helper Deprecation
I'm new to Cake, having just gotten into it because I have a commercial site built 3 years ago using Cake1.2. I've been reading up on some older material that pertains to the version my site was built in and I'd like to update versions in the near future. One thing I'd like to know is why were the AJAX and Javascript helpers deprecated? They seem useful, but in following tutorials for their implementation it seems their behavior is a bit erratic. Is this one of the reasons? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Read M S Doc using php from linux and windows
Welcome to the group Naren! There are lots of helpful people and tons of good information about CakePHP on here. Your question is out of the scope of this group, however I found lots information on this page: http://www.google.com/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&q=read+word+doc+with+php&btnG=Search Good luck! On Nov 7, 4:27 am, "NAREN KUMAR" <[EMAIL PROTECTED]> wrote: > hi, > > iam new to this group. > > i need code to Read MS WORD document and stores in string from linux > system as well as from windows > > thanking u 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 -~--~~~~--~~--~--~---
1.2 Console Question
I want to call a controller action via the command line using the Cake console. I can call (this is a linux box) bash-2.03# ./cake -app ../../atm_dev and it returns the various paths that are set as well as the available shells: extract api acl console bake Unfortunately, in playing with these shells, I don't believe any of them will run a controller action. I've done a fair amount of searching and can find nothing about this, but I believe it's a feature of the console. Could you someone point me in the right direction? Thanks! --~--~-~--~~~---~--~~ 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: More Cake Magic in the future?
Hi, Agreed about helpers. Regarding being as easy as possible, well one of its major goals at least is rapid and easy development, while still making the framework itself flexible. At least that's how I see it. Either way, I'd be disappointed if it were changed to not do these certain things automatically. Of course it should always keep the flexibility in case the developer wants to do something differently, but usually the default is sufficient. Brandon -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, January 08, 2007 10:34 AM To: Cake PHP Subject: Re: More Cake Magic in the future? Brandon Olivares wrote: Hi, CakePHP's purpose is to make it as easy as possible to rapidly create web applications. If it weren't the default to help you do these things, then it wouldn't exactly be as rapid. I think it's great it does these things, and you only have to mess with it if you want to do something different than the default. I'd be disappointed if it were changed to not be the default, and that we had to explicitly tell the framework to do these things. Brandon 1) there is no "defaults" for using helpers, you can use them or not. 2) "as easy as possible" is a very unbalanced statement. cakes goals are more complicated then that. Cakes goal is getting a good compromise between RAD, speed, security, development effort,... And even when i say it like this it probably isn't entirely correct. --~--~-~--~~~---~--~~ 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: More Cake Magic in the future?
Hi, CakePHP's purpose is to make it as easy as possible to rapidly create web applications. If it weren't the default to help you do these things, then it wouldn't exactly be as rapid. I think it's great it does these things, and you only have to mess with it if you want to do something different than the default. I'd be disappointed if it were changed to not be the default, and that we had to explicitly tell the framework to do these things. Brandon -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Veloz Sent: Monday, January 08, 2007 9:34 AM To: Cake PHP Subject: More Cake Magic in the future? Hiya Just a philosophical question: Our group is wondering if Cake's long-term philosophy is to have the tool perform as much "magic" as possible? In other words, right now Cake does a fair bit "automatically" behind the scenes based on model data, table keys, file names, etc. It appears that this is increasing with 1.2 .. For example, it looks like the FormHelper class is making several assumptions about desired html control type in the absence of explicit parameters from the caller. The code shows it is checking the model field type and deducing a control type and/or is checking to see if the field type is a primary key and making some decisions based on that as well (generating hidden fields and so on) Also, the generation of a form tag is making a fair number of assumptions on the programmers behalf too. I think we are getting a bit nervous that Cake might be getting close to doing too much "automagically". There comes a point when a framework is doing so much to "help you" that it actually feels like the evnironment is full of side-effects, gotcha's, and booby-traps instead of being helpful. I think we would prefer that Cake do most things only when specifically told to do so, not as a "default", and would make as few assumptions as possible based on field names, types, primary key names, etc. I remember back when MFC was all the rage - it seemed great that the framework embodied/controlled the process of opening and closing files, reading and writing formatted data, handling multiple windows, etc, and that you just had to understand this process and know where/how to insert your code into the right spots. After a while we all fell very much out of love with this because the framework was no longer a "silent partner" that could help when you asked it to, but instead an entity that exerted a lot of influence over your application and if you didn't remember/know how to take all this into account you could not even get a simple application to work as expected in a reasonable amount of time. Each new project had to start again with a refresher of all the things one must remember/consider about the framework's expectations/assumptions about how an application should work and all the things it did "automatically" for you. We actually found that for small applications, more time was spent on getting our interactions with the framework correct than we did on writing our application and solving the business problem. We are a bit nervous that Cake might be heading down this same path... Any thoughts on this? Michael --~--~-~--~~~---~--~~ 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: several "$content_for_layout"?
Hi, I think you're looking for elements. You can render elements within your layout, such as a menu, search, etc. Your $content-for_layout is the content that is to go within the layout for the page. That variable will be set to the content of the view that was rendered. Only make new layouts when, well, you want new layouts. Controllers are used for the various, section sof a site so to speak. For instance, there might be an ArticlesController that has actions (methods) such as index, view, add, edit, delete, search, etc. Brandon --~--~-~--~~~---~--~~ 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: Using ACL to limit access to data
Hi, This sounds along the lines of what I was planning to do. Except that I didn't want to modify the core code, since I'd have to do the same on every version update. So I decided just to make my own implementation, that heavily borrow's from cake's (not in code, just in concept). Sounds useful, though. Brandon --~--~-~--~~~---~--~~ 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: Cake Hosting
Hi, I have both shared and VPS hosting from webonce.com. they've been very satisfactory for me. They also have an addition to the control panel that let's you change between PHP4 and PHP5. Brandon --~--~-~--~~~---~--~~ 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: Suggestion about bake
But urlencode should take care of those special characters. According ot the PHP manual for urlencode(): "Returns a string in which all non-alphanumeric characters except -_. have been replaced with a percent (%) sign followed by two hex digits and spaces encoded as plus (+) signs. It is encoded the same way that the posted data from a WWW form is encoded, that is the same way as in application/x-www-form-urlencoded media type." So it's the same way as data is transferred in an HTTP post, which surely must support special characters (encoded of course). Anyway I don't want to debate the proper way of going about it; I just think it'd be useful as an option. Of course I can make the change locally, well...if I can figure out heads from tails of the script, lol, but I was suggesting it because I think it'd be a useful addition. I'm not familiar with the code base at all, so I probably won't even begin to try to make such a change in my copy. :) Brandon -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, December 28, 2006 9:56 AM To: Cake PHP Subject: Re: Suggestion about bake Brandon Olivares kirjutas: You can just urlencode the names. I didn't say it should be the default method, just that it should be an option. A lot of people seem to prefer doing it this way for many reasons, including SEO, not to mention it can make the URL easier to read. Works :) but just in blinded mode and for english speaking users. Counting that usernames can only consist of "url safe" characters :) because every other language almost certainly will have some kind of spechial character in it. But you can make your change in your local copy of cake for that so the bakeing script would bake it this way. rgds --~--~-~--~~~---~--~~ 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: Suggestion about bake
You can just urlencode the names. I didn't say it should be the default method, just that it should be an option. A lot of people seem to prefer doing it this way for many reasons, including SEO, not to mention it can make the URL easier to read. Brandon -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, December 28, 2006 9:12 AM To: Cake PHP Subject: Re: Suggestion about bake So for example, a link to view the information for user devbanana might look like /users/view/devbanana instead of /users/view/1. think about all the special chars that users are using while submiting data and think about what conversions you might need to make to allow everything works smoothly :) for example some baltic chars that are not allowed in URL -s:and think how many charsets there are with different chars and possibilities. So it's pretty "simple" to achive while there-s no unicode support in URL -s and DNS afcourse you can urlencode almost anything but that makes it even harder for the users to type in the url. rgds --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Suggestion about bake
Hi, Not sure if this is the best place to put this suggestion, but here it is anyway. In the bake script, I think it'd be useful to allow the option to use the display field instead of the ID for referring to records, such as in the URLs for viewing, editing, and deleting, and in some of the flash messages. It's an easy thing to do, but if someone prefers using this method over the currently conventional method, it's tedious to change it in every controller and view. So for example, a link to view the information for user devbanana might look like /users/view/devbanana instead of /users/view/1. I just think this should be an option in bake. Brandon --~--~-~--~~~---~--~~ 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: Testsuite not working
Hi, I did call it without the trailing slash. Will ther be a less buggy version soon? I was looking forward to being able to use TDD in my cake apps. Thanks, Brandon -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Hofstetter Sent: Thursday, December 28, 2006 3:04 AM To: Cake PHP Subject: Re: Testsuite not working Well, the test suite is a bit buggy, you have to call it with http://localhost/projects/blog/tests (notice the missing slash). HTH -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ 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: Joining 2 tables - better practice?
Why not a hasMany association for holidays to products, and a belongsTo association for the other way? I don't see why this wouldn't work? -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of leamas Sent: Sunday, December 17, 2006 2:27 PM To: Cake PHP Subject: Joining 2 tables - better practice? I have two tables that I would like to connect together: 1. products - all the products for sale 2. holidays - each holiday that a product *could* fall under. ex) Christmas, Easter, etc.. A brief look at each table looks like this: products table --- id product_name ... holiday_id holidays table id holiday_name The relations for these two tables is: one product can only have one holiday, where as one holiday can have multiple products. I tried to figure out the associations with CakePHP, but I cannot seem to get the grasp of it. However, when I started to do a little more research I noticed that if I use the variable $useTable in my Holiday Model; I can force the model to use the products table instead of the holidays table. My question is, should I be doing this? I would prefer to learn the more practical way of accomplishing. Thanks for any suggestions. --~--~-~--~~~---~--~~ 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 with IE7
Why are you saying your site would not work for IE7? If it doesn't work for IE7, that's your own fault and up to you to fix. Nothing in the framework itself keeps it from working with IE7, as has been pointed out many times already in this discussion. It is a PHP framework, which has absolutely no effect on browser compatibility. -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of onemind Sent: Sunday, December 17, 2006 11:27 AM To: Cake PHP Subject: Re: CakePHP with IE7 I was afraid this would turn into one of those microsoft are evil threads that the open source community are famous for. The bottom line is, people use ie7 today, i want my site to work for them today and not give them some lame excuse that its microsofts fault or whatever. I realize it is an open source project and people are supposedly expected to fix it however they want but another simple fact is that heaps of non programmers use open source software and are unable to make fixes. I guess cake aint for me or the open source movement for that matter.. --~--~-~--~~~---~--~~ 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 1.1.8.3544... the start of something new
Thanks for that, Nate. It's cool to see how "the masters" build an application. --~--~-~--~~~---~--~~ 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: Leverage Cake For File Downloads
Thanks, Martin! With your help, it took me about 20 seconds on php.net to find just what I needed. I just didn't know what to look for. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Leverage Cake For File Downloads
Sorry for the lame subject, I'm not sure how to title what I would like to do. I have a series of audio files saved on my web server. Information about the audio files are contained in a database (artist, title, date, etc). The audio files are named after the primary key, thus ensuring uniqueness of name (i.e. 1.mp3, 2.mp3, 3.mp3...). When someone downloads the audio file, instead of seeing 1.mp3 for instance, I'd like to be able to create the filename that they see based upon the information for that file in the table. Is there a way that I can use Cake to perform this renaming? For instance, if a user goes to /audio/download/1, their download dialogue will read something like artist-title.mp3. Thanks to you all! --~--~-~--~~~---~--~~ 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: cool editors for using with cakephp
jEdit http://jedit.org Java-based text editor that includes syntax highlighting Runs on Windows, Linux, MacOS, Unix, FreeBSD Has an open API so users can build plugins Current plugins include: sftp/ftp php parser (other languages as well) and much much more! --~--~-~--~~~---~--~~ 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: multi-column primary keys (like in lots of join tables/habtm)
Here's a bit of discussion that took place here a few weeks ago... http://groups.google.com/group/cake-php/browse_thread/thread/d2bf4bb245201cb/015f0feefd9ff482?lnk=gst&q=composite&rnum=1#015f0feefd9ff482 --~--~-~--~~~---~--~~ 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: Associating two models multiple ways
Sorry for the late response, I've been gone for a few days... This is working correctly now, I gave up on trying to use hasOne and instead used belongsTo. Although I would have preferred using hasOne, it really doesn't matter. (It just sounds better to say a menu has one main page than to say a menu belongs to one main page.) Here is the code snippet for the relationship. // the relationship between a menu and its // main page (which is stored in the pages table) public $belongsTo = array( 'Page' => array( 'foreignKey' => 'main' ) ); --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Associating two models multiple ways
Hey guys, I'm currently working on converting one of my websites to Cake...and I'm loving it. I've run into one issue that is probably my fault for misunderstanding association declarations. My site has pages (duh!) and each page belongs to a menu. In my menu model, I declare one page as the main page for that menu. That is the page that a user will be taken to if they click on the menu header rather then the pages beneath it. While the page to menu association was very simple to implement. I had to use the associations wiki (http://wiki.cakephp.org/docs:understanding_associations) for the menu to main page association. Unfortunately, it is still not working. I created a field in the menus table named main that contains the id of the page that the menu will use as its main page. Using the belongsTo example of the wiki page, I came up with the below model structure: class Menu extends AppModel { public $displayField = 'title'; // the relationship between a menu and its // main page (which is stored in the pages table) public $hasOne = array( 'menu' => array( 'classname' => 'page', 'foreignKey' => 'main' ) ); // a menu could have many pages beneath it public $hasMany = 'page'; public $validate = array( 'title' => '/[a-z]{3,}$/i', 'order' => VALID_NUMBER, 'main' => VALID_NUMBER ); } The problem I've run into is that the comments for the hasOne example in the wiki code appear to be a copy and paste from the belongsTo example. 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 -~--~~~~--~~--~--~---
Re: including an element in the depending on which view I'm in
Cool. That looks good, I hadn't seen it before.On 6/29/06, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote: The head helper made by rossoft is probably the best way.brandags wrote: > I don't know if this is the best solution, but I created a variable> called "addHead", which I create in my view (or maybe I created it in> my app controller...? can't remember..), then use it in the layout. > Like so:>> index.thtml:> addHead .= 'This will go in the head section';?>>> layout.thtml:> > addHead)) echo $this->addHead;?> > >> If anyone has a better way, let it be heard!>>> >>> --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
n00b with ACM questions
Hey All, I've been using PHP for about the last 1.5 years and discovered Cake last week. I installed it, liked it, and am working to convert a current site (that includes a homegrown admin area) to Cake. It is currently not using any framework. Anywho...I have installed ACM and played with it just a little. I did some searching through the group, read anything I could find on it, but still don't quite understand how it all works. Right now, I have a table that contains people. I have another table called users that contains login, password, permissions and a foreign key to the people table. That way, only information pertinent to that person's application settings is stored in the users table. Everything else about that person is stored in the people table. I have no problem scrapping the above system if necessary. I'd just like to see more explanation of how ACM fits with everything else. I've got it installed and can access the portion where I setup users and groups. However, the current users don't show up on the "Users or Groups" page of ACM even though I set up the users and roles settings in config.php. It does see my controllers and when I add new groups, I can setup their permissions for each controller. I just can't add any of my users to my groups because the users don't show up anywhere in ACM. By the way, you Cake guys have done a very nice job. Ryan, ACM looks good too. More documentation would be nice, and I know you guys are working on it. I'd be willing to give some time to this project, but I have much learning to do before I'll be helpful. --~--~-~--~~~---~--~~ 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: Simple HABTM Question
I get a very strange result when I do that. I did have to singularize the Model names as well: $result = $this->Contractor->Service->findByID($service_id);The query that's run is this:SELECT `Service`.`id`, `Service`.`service_name` FROM `services` AS `Service` WHERE (`Service`.`i_d` = 2) LIMIT 1Why is the 'id' split up like 'i_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 -~--~~~~--~~--~--~---