Re: Slides from my talk at php|works
Interesting slides. I started putting mine together a few days ago. Nice to see a little re-enforcement of the idea that the tools should be built to the strengths of the language. Too many frameworks out there try to make PHP look like Java or Ruby (insofar as it is possible). --~--~-~--~~~---~--~~ 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: Transform query result in a XML
You're better off rendering the results as HTML and replacing the form with the generated HTML. Check here: http://manual.cakephp.org/chapter/helpers. The Ajax section is about 1/3 of the way down the page. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Slides from my talk at php|works
Hey guys. Some of you may remember that I gave a talk at last week's php|works conference on the topic "What Can PHP Learn From Ruby On Rails". It went really well, generated a lot of comments afterwards, and led to some nice discussions with some of the people who work on Zend Framework. Anyway, I wasn't able to record the audio (couldn't find any equipment in time) but the slides are available from my web site. http://www.littlehart.net/php_works_06.pdf I'm hoping to take this talk to other conferences as well. -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @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 -~--~~~~--~~--~--~---
Re: Access associations array
Hi, I don't think you'd have to set 'inactive' for all child records of an inactive model. Instead, when listing the child records (e.g. comments) then check that the parent is 'active' and don't display any records who have and inactive parent. Just my €0.02 Sonic --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Transform query result in a XML
hi, I need to create a aplication that uses ajax to consult a database and returns a XML and i can use that XML to populate a FORM.. if someone knows a 'cake-way' to do this post ok? tk's! ;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 -~--~~~~--~~--~--~---
Re: findAll() memory exhaustion
One thing I missed completely the first time around: if you set $recursive to null, it just uses the default level of recursion, which is 1. To disable pulling of associated model data, set $recursive to 0. To disable all associations, incuding LEFT JOINs, set $recursive to -1. --~--~-~--~~~---~--~~ 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: Bakehouse anybody ??
Hi. I'd love to heard about the future of bake. Not when but what, having an idea of the direction. I loved rdbakery, which was quite web developer-friendly rather than sysadmin-friendly like bake. One thing I hope on, is to have the possibility to add our own "code templates" to the default ones. Any informal info that can be disclosed ? nate wrote: > Nowhere as yet. I'll post details as soon as I have some. > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: findAll() memory exhaustion
nate wrote: > Yes, query results are cached (somewhere in DboSource I believe). But > if you're paging results, why are you doing it by reading the entire > resultset into memory? > > Model::findAll( ) has the $limit and $page parameters so you don't have > to. Ah, I think I may not have explained my situation clearly enough, sorry. I tried first to read the entire resultset into memory and that failed so I then started to use the $limit and $page parameters and to my surprise found myself *still* running out of memory. The code fragment I pasted in the original posting was supposed to demonstrate my use of findAll( ..., $limit, $page ) and I guess I was asking for advice as to whether the code fragment was valid (is this how findAll() is expected to be used) or not. If it is valid then something is wrong 'cos it looks to me that I'm not using great amounts of memory using this approach. Allan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: findAll() memory exhaustion
Yes, query results are cached (somewhere in DboSource I believe). But if you're paging results, why are you doing it by reading the entire resultset into memory? Model::findAll( ) has the $limit and $page parameters so you don't have to. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: findAll() memory exhaustion
nate wrote: > Hey Alan, why you'd ever want to pull 7500 records at once in the > normal operation of an app is quite beyond me, but I know for certain > things, I have pulled somewhere around 10,000 records at once with no > issues. i have found a way round this, using a direct SQL query() but ... > You might want to check your memory settings in php.ini. I think the > default is only about 8mb or so, so that might be the problem. Yup, the default memory is about 8M and is used up, I could up that to 32M etc etc BUT the point is by paginating I should be able to avoid having to change this. Is there something in findAll() that's caching the data somewhere? Allan --~--~-~--~~~---~--~~ 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: ADMIN question
I have a similar problem trying to use the built in admin routes: I have a controller named "Home" with an "index" action and a "admin_index" action. For the front end I have this route which works fine: $Route->connect ('/', array('controller'=>'home', 'action'=>'index')); But for the admin I tried this which gives me a "Trying to access private method in class": $Route->connect ('admin/', array('controller'=>'home', 'action'=>'admin_index')); I ended up making a dummy "admin" controller with a single index action which just does a $this->redirect('/admin/home/'); Does anybody know the right way to 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 -~--~~~~--~~--~--~---
Re: Bakehouse anybody ??
Nowhere as yet. I'll post details as soon as I have some. --~--~-~--~~~---~--~~ 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: Bakehouse anybody ??
Where can we read up on the "CakePHP" IDE? I would like to find out moreOn 9/20/06, nate <[EMAIL PROTECTED] > wrote:Hey Olle, interesting idea.Galathas, also an interesting idea (but "Bakehaus" would be way cooler). Actually, there is a CakePHP IDE in development, and I hearthere's supposed to be a beta out in a couple months. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php -~--~~~~--~~--~--~---
Re: findAll() memory exhaustion
Hey Alan, why you'd ever want to pull 7500 records at once in the normal operation of an app is quite beyond me, but I know for certain things, I have pulled somewhere around 10,000 records at once with no issues. You might want to check your memory settings in php.ini. I think the default is only about 8mb or so, so that might be the 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 -~--~~~~--~~--~--~---
Re: Bakehouse anybody ??
Hey Olle, interesting idea. Galathas, also an interesting idea (but "Bakehaus" would be way cooler). Actually, there is a CakePHP IDE in development, and I hear there's supposed to be a beta out in a couple months. --~--~-~--~~~---~--~~ 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: formatting model values
Another option is to write the mapping into a component, which would allow you to use the mapped data in your controller, and pass it to your view when you are done. You could also do it in a callback of the model itself, so the data is mapped right out of the gate. --~--~-~--~~~---~--~~ 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: ADMIN question
See also http://manual.cakephp.org/chapter/configuration (Section 4). --~--~-~--~~~---~--~~ 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: ADMIN question
in config/routes.php i added $Route->connect ('/admin', array('controller'=>'pages', 'action'=>'display', 'admin_home')); $Route->connect ('/admin/', array('controller'=>'pages', 'action'=>'display', 'admin_home')); On 9/20/06, green-mamba <[EMAIL PROTECTED]> wrote: > > Hi, > I have been using admin routes to set up an 'admin' area and everything > works OK (i can use /app/admin/controller/edit and so on. > > It is just that I would now like to have a separate starting 'admin' > home page - how would I do that? > > Christine > > > > > -- == S. DeVore (the old fart) the advice is free, the lack of crankiness will cost 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 -~--~~~~--~~--~--~---
ADMIN question
Hi, I have been using admin routes to set up an 'admin' area and everything works OK (i can use /app/admin/controller/edit and so on. It is just that I would now like to have a separate starting 'admin' home page - how would I do that? Christine --~--~-~--~~~---~--~~ 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: Re: formatting model values
and cache the look ups so the queries don't kill ya :) On 9/20/06, lloydhome <[EMAIL PROTECTED]> wrote: > > I think it is a matter of taste and how you want to use it. The simple > solutions are if it is view-centric then a simple helper might do the > trick. The other is to create a lookup table in the database, a model, > and hookup the associations. > > HTH, > > David > > > > > -- == S. DeVore (the old fart) the advice is free, the lack of crankiness will cost 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 -~--~~~~--~~--~--~---
Re: formatting model values
I think it is a matter of taste and how you want to use it. The simple solutions are if it is view-centric then a simple helper might do the trick. The other is to create a lookup table in the database, a model, and hookup the associations. HTH, David --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
formatting model values
Hello, I got one issue with cake and would need your help. I have a model called Spot with different attribut. For example, one of its variable is type. In my database type is an integer, but when I display the data on the web page, I want to map each value with a specific text : db value / value to display 0 / text0 1 / text1 2 / text3 etc I could do this mapping in the view but I would like to put it on a more centralized place as this mapping will be used at differents places in my application. Any idea / advice ? --~--~-~--~~~---~--~~ 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: Just starting.. mod_rewrite behaviour?
Have you tried $this->redirect('/downloads/index'); HTH, David --~--~-~--~~~---~--~~ 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: Bakehouse anybody ??
Welcome to Cake, G. Perspective: Nowadays, there is a manual, with things in it that one can learn from. Great times, indeed. I believe the shortcut the newcomer is looking for _is_ the manual. A story told in sequence, telling little bits, one at a time. I am a sucker for manuals. The "search Cake" function at the website, is also golden for the newcomer. I heard Ruby on Rails developer David Heinemeier Hansson talk about generated scaffolding (think about the code that Bake.php outputs, that's the stuff I mean). "It is primarily a teaching tool, so we should maximize the teaching of convention in those generated files." Perhaps /cake/scripts/bake.php could become better at teaching the conventions? cheers, Olle --~--~-~--~~~---~--~~ 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: ajax link layout issue
Matt2012, I also don't quite understand this question ;) but the answer is probably include the "RequestHandler" component ( amongst other things ensures that AJAX calls get no layout, normal calls get layout) leave the layout variable untouched. HTH, AD7six --~--~-~--~~~---~--~~ 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: ajax link layout issue
someone answered this further up $this->layout = 'ajax'; in the action rather than using var $layout = 'ajax' in the controller --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
begginer call for help
Hi to all experienced bakers ! I am calling for help&advice. It looks, that I am still not able to figure out cake dir/file structure . I read some tutorials & man pages, but still can not solve following problem: 1. I want my project(web) be in c:\www\project <-- = app dir by default 2. I create virtual domain in apache httpd-virt.conf file which point to www.project.com ( + set hosts file accordingly on winxp ) + create default.thtml&home.thtml 3. now cake install is in www\cake <-- there are lib/scripts dirs 4. I created mysql db with tables according to cake conventions, start Apache+Mysql server, set mysql connection in www\project\config\database.php and set index.php in webroot dir accordingly - all goes well in browser. 5. my php&mysql installation htdocs (webroot/server root dir) is in c:\program files\xampp\htdocs Now, problem is that if I run BAKE.PHP to generate mvc for my PROJECT, it nows only c:\program files\xampp\htdocs as ROOT path, and tries to save generated files to silly path like c:\program files\xampp\htdocs\\www\project which of course does not exist... Is there any solution, how to say to BAKE.PHP that I want to work with c:\www\project instead ? Sorry if this question seems stupid to you, but I try for a long time with my small knowledge and I am not able to figure it out. THANKS MUCH for HELP ! Any advice would be greatly appreciated ! Good Luck to all bakers :-) --~--~-~--~~~---~--~~ 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: Weirdness involving AJAX layout
On 9/20/06, AD7six <[EMAIL PROTECTED]> wrote: > > Not sure I understand the problem, but regarding the error message try > $this->layout = 'ajax'; > That fixed it up right away. Wow, who knew. ;) Thanks very much AD7six! -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @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 -~--~~~~--~~--~--~---
Re: Weirdness involving AJAX layout
Not sure I understand the problem, but regarding the error message try $this->layout = 'ajax'; HTH, AD7six --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Weirdness involving AJAX layout
I've been banging away at this for about an hour to no avail. Here's my scenario: I've been developing some code on my iBook to use the cool PHP/SWF Charts stuff. It works just fine on the iBook but not in the production environment. Basically, I have a controller/action pair that spits out some data. On my iBook if I add $this->layout = 'AJAX' it works and displays the graph like it shoud. If I comment out that line, I get the default graph which indicates that the Flash graphing component didn't get data in a format it could use. Now, I move all that code over to the production environment. Make sure debug is set to 2. Make sure $this->layout in my graphing controller is 'AJAX'. I get the default graph. WTF? So, I hit the action that spits out the info for the graph directly. I get this error: You are seeing this error because the layout file /var/www/verticalscope_stats/app/views/layouts/AJAX.thtml can't be found or doesn't exist. Notice: this error is being rendered by the app/views/errors/missing_layout.thtml view file, a user-customizable error page for handling missing/invalid views during rendering. This error DOES NOT appear in my development environment. Any ideas on what the heck is going on here? Any help would be appreciated. -- Chris Hartjes "The greatest inefficiencies come from solving problems you will never have." -- Rasmus Lerdorf @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 -~--~~~~--~~--~--~---
Just starting.. mod_rewrite behaviour?
Hi all... I'm struggling a bit with this first installation. (Windows XP, Apache 2.0.55, PHP 4.3.10, CakePHP 1.1.7.3363) Since I wanted to leave only cake's webroot under the "real" web server DocumentRoot, I followed this tutorial: http://wiki.cakephp.org/tutorials:alternative_installation_locations Now, say my website alias (in httpd.conf) is "/temp", and I'm developing on "localhost". Browsing to http://localhost/temp should get me the default home page. This happens. Now, if I just write myself an AppController and put a redirect inside, like: redirect('/downloads/index'); The Index action of DownloadsController gets called (I traced it), but then I see a 404 since the browser is going to: http://localhost/downloads/index instead of http://localhost/temp/downloads/index If I enter the 2nd URL in the address bar, the browser goes again to the 1st. Whose fault is it? Mine? :-) mod_rewrite? Note that I deleted all .htaccess files except the one in my webroot (tutorial instructions), and I added "RewriteBase /temp" to that one. I'd really appreciate any ideas... thanks in advance. TBlack --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Cake error: Warning: Unknown: 1 result set(s) not freed
Hi I have cake running on apache2triad on windows and i get the following error message on all pages within cake: "Warning: Unknown: 1 result set(s) not freed. Use mysql_free_result to free result sets which were requested using mysql_query() in Unknown on line 0" I don't get it when doing regular php work. Can't figure it out. Does anyone else use apache2triad with cake and get this problem? If so any ideas for a fix? Cheers TWIOF --~--~-~--~~~---~--~~ 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: Copying a db record
> nate - I don't understand why it is not considered a bug. I understand > that Cake is intercepting all requests, but why should a request for > favicon.ico be turned into extra requests for the database transaction? Because however you have your controller code setup, the path that is being generated to favicon.ico is mapping to a controller/action that is firing your save action. Is it in a callback, or maybe AppController? However it's happening, it wouldn't happen that way unless your code was setup to make it so. Typing in the URL manually, and having the action that writes the record dump a stack trace (debug_backtrace). Then you should be able to see where and what is being triggered. --~--~-~--~~~---~--~~ 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: Copying a db record
chris - This is a legacy (MS Access) app that I'm transferring, so I was living with the decisions of the prior developer. If I'm not too lazy, I'll probably change the whole sexes thing. nate - I don't understand why it is not considered a bug. I understand that Cake is intercepting all requests, but why should a request for favicon.ico be turned into extra requests for the database transaction? Let's say someone on my design team mistakenly deletes an image file (opr favicon.ico) that is referenced from a view on a production system. Now, instead of a broken image, we are left with database problems, as presumably the actions that called that view are called over and over. That would cause real havoc on a production system... And meanwhile, we would be inclined to troubleshoot the database problem and program logic, instead of looking for a missing image file. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
ajax link layout issue
when I use an ajax link it is including elements in the default.thtml layout in the updated div. If I put layout 'ajax' in the relevant controller it gets rid of all layout. What I want is default layout of page -> link clicked -> div updated only with information from specidfied controller/action. Can anyone 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 -~--~~~~--~~--~--~---
Re: Help with defining recursive table in database
Perfect! Thanks a bunch! On 9/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: lower $this->Category->recursive? (set it 0 or so) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Bakehouse anybody ??
Hi to all bakers! First - I want to thank to all developers of CAKE php framework. I am pretty new to CAKE, but as I am digging deeper inside it I love it more and more. Much thanks for it! Second - Has anyone thought about developing some kind of simple like "IDE" app suited for CAKE ? And yes, I know about excellent bake.php script - BUT with this I mean, some app that would create new project (automatically observes all config in user enviroment and set all needed things it accordingly ), create all m/c/v with all associations, generate forms automatically ( + wizard based custom validation ), set all views based on simple css&xhtml compliant pre-made templates (2-collumn/3-collums - further modification possible after its done), and preview it in the browser ? I think that this would be great BOOST for CAKE, because this app would be simple enough to use for begginer cake bakers ( advanced options for master bakers would be still present) to start using this very quickly ! The main reason for I think about this, is that I tommorow read through hundred pages CAKE manual and I feel a little bit confused about complexity of CAKE framework ( I never used simmilar framework - as I said I am pretty new to this) , I think about this app as little shortcut for begginers, cause there is a lot of constants, rules which we need to know to use cake properly and effectively, and after that there is MCV model, which is excellent in idea, but a little bit difficult to understand for "framework rookies" like me :-) . And that is one of possible things, which this like "IDE" app could take care of for begginers. Any ideas, thoughts on this topic ? Please share them. I am looking forward your posts ! Have a nice day to all bakers :-) --~--~-~--~~~---~--~~ 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: Help with defining recursive table in database
lower $this->Category->recursive? (set it 0 or so) --~--~-~--~~~---~--~~ 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: Help with defining recursive table in database
Cool! Thanks! Could we maybe add this function to http://manual.cakephp.org/chapter/models ? So, that worked, but there's too much information in the array. The categories table hasMany articles. findAllThreaded has an Article array under each category. I just want the categories. What can I do? Thanks again, Eric On 9/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I think you need findAllThreaded for that http://api.cakephp.org/class_model.html#181aefe1bf7efe1504692c485c83caa8 --~--~-~--~~~---~--~~ 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: Help with defining recursive table in database
I think you need findAllThreaded for that http://api.cakephp.org/class_model.html#181aefe1bf7efe1504692c485c83caa8 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Help with defining recursive table in database
Hey all, I'm having some trouble telling Cake that a table has a parent_id column that should define a tree hierarchy. I've tried setting the $recursive argument in $model->findAll(), but it's just returning a standard array, not a tree. Is there any recommended reading? Has anyone done a tree in Cake? Thanks in advance! Eric --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
findAll() memory exhaustion
Hi, I am using findAll() to retrieve about 7500 records. My current PHP setup is such that this fails with an out of memory error. So I tried this: $conditions = null; $fields = null; $order = null; $page = 0; $limit = 200; $recursive = null; while( 1 ) { echo "$page"; $allTests = null; $allTests = $this->Test->findAll($conditions,$fields,$order,$limit,$page,$recursive); $this->set('data', count($allTests) ); echo "";echo count($allTests);echo ""; if( count($allTests) ==0 ) { break; } $page++; } and this too runs out of memory. It works OK for a few 'pages' worth ($page can get as high as about 12 before memory is exhausted). It seems that memory is being consumed by findAll() somewhere along the line. My DEBUG level is set to 2 so caching of queries should not be happening, should it? Any ideas? Allan --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Flash method in a plugins
Hi baker! I've a plugins "Plugin"; when i call $this->flash in an admin function, cake don't make the correct url: for example: $this->redirect_page = 'admin/Plugin/PluginController'; function admin_add() { $this->flash('Ok, good luck',$this->redirect_page); } redirect to: Plugin/admin/Plugin/PluginController/ $this->redirect_page = 'admin/PluginController'; redirect to: Plugin/admin/forumPluginController/; I can solve easy the problem but i'd know what's the "ufficial way" for admin routing with flash method and plugins :) --~--~-~--~~~---~--~~ 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: Copying a db record
nannyforum, just out of curiousity, do you have a separate table for Sexes? that's what it looks like, and i'm trying to figure out why. Do you anticipate having to add a third sex when AI is invented or 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 -~--~~~~--~~--~--~---
Re: Shared Components
Glad you knew enough to know that there was a nice CakePHP way to solve your problem and make upgrading and maintaining very easy! --~--~-~--~~~---~--~~ 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: Access associations array
If you baked your application then each controller already has the delete function in it. I would add functionality in there that delete doesn't delete it just updates active field. Also, keep in mind that you don't have to deactivate every single record. If for instance comments belong to a post. If you deactivate (delete) the post you don't have to deactivate all the comments. Since during the normal course of your application you never really get at comments other than thru the post. So, if the post never shows anywhere, then the comments won't either. So, in this manner you would only need to worry about your container models and deactivating them. Of course, you could also get really complex I guess and make a whole new application that ties to another database. Make like a history controller and have it use a seperate database. The history controller would just take records and save them there. Without knowing exactly what your application does, and its parameters I can't help much past 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 -~--~~~~--~~--~--~---
Re: File
You can use it in the following way: append('hello'); exit; } } ?> 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 -~--~~~~--~~--~--~---
Re: cacheAction and Sessions
I found the problem. i just realized that cake discourages the use of: $this->controller->Session->check('my_session') in our view templates. instead, we should use: $session->check('my_session') hope this helps someone --~--~-~--~~~---~--~~ 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: Runniing application in different Time zones.
Cheeze wrote: > Appreciate the update. It'll help other people as well. > > Just wanna check with you - by 'setting the cookie to domain wide root > path' do you mean you set the cookie in AppController? No. One can do it in any controller, I'd imagine. Basically you need to specify the fourth and fifth paramenter such as : setcookie (cookiename, cookievalue, time, '/', 'domain name'); The fouth parameter being the root directory. My earlier mistake was I left the fourth and fifth parameters, in which case the cookie will be visible to the current controller. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---