Re: utf-8 encoding problem

2009-01-29 Thread mohammad al-ani
and when i choose the windows-1256 i see the real world which is مقال On Fri, Jan 30, 2009 at 10:23 AM, mohammad al-ani wrote: > params show me the value of the key 'keyword' is yes like this symbols > > > On Fri, Jan 30, 2009 at 2:48 AM, brian wrote: > >> >> What does $this->params show yo

Re: Get count of related model

2009-01-29 Thread Günther Theilen
Very nice, thanks! Webweave wrote: > You could just add a count to the fields that you are fetching like: > > $this->Foo->find('all', array('fields' => array('Foo.*', '(select count > (1) from bars Bar where Bar.foo_id = Foo.id) as bar_count'))); > > I use this approach both with fields and it

Re: utf-8 encoding problem

2009-01-29 Thread mohammad al-ani
params show me the value of the key 'keyword' is yes like this symbols On Fri, Jan 30, 2009 at 2:48 AM, brian wrote: > > What does $this->params show you? > > On Thu, Jan 29, 2009 at 5:18 PM, medo wrote: > > > > hi group, > > > > i have problem with my search feature in my site the problem

Re: Cancel and return to original view

2009-01-29 Thread brian
Are you sure that render path is correct? Try doing: $this->viewPath = 'elements'; // this is relative to views dir $this->render('view_artists'); What do you mean by, "no luck"? What effect are you seeing? Are you loading the form inside the 'view_artists' element area? Are you replacing any

Re: $this->data is being unset

2009-01-29 Thread bioselem...@gmail.com
So, How did you solve it? On Jan 29, 8:11 pm, Delirium tremens wrote: > This part of the problem has been solved. > > On 29 jan, 20:41, Delirium tremens wrote: > > > The following code does not work. > > >     function hashPasswords($data) { > >         return $data; > >     } > >     function

Cancel and return to original view

2009-01-29 Thread WidePixels
I have a ajax area on the page, simple click a link and it loads new content into a div. view: element('view_artists'); ?> I have a link that they can "edit artists" which loads the form. Edit Artists The edit_artists is a form to edit their selections. Now if they want to "Cancel" and not ma

Re: Created & Modified no longer set

2009-01-29 Thread teknoid
Any defaults set in the DB? Cleared the model cache? On Jan 29, 9:17 pm, Chad Casselman wrote: > I just updated one of my apps with the latest of cakephp (just replaced the > cake folder) and now when items are insert the created and modified dates > are set to all 0s. > > Any thoughts on this?

Created & Modified no longer set

2009-01-29 Thread Chad Casselman
I just updated one of my apps with the latest of cakephp (just replaced the cake folder) and now when items are insert the created and modified dates are set to all 0s. Any thoughts on this? Chad --~--~-~--~~~---~--~~ You received this message because you are subs

Re: nice new API layout

2009-01-29 Thread Dardo Sordi Bogado
> API 1.1 is missing! Please put it back ASAP. I'm still using that > version. http://cakeforge.org/frs/?group_id=53&release_id=76 > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to

Re: behaving the CakePHP 1.2 way

2009-01-29 Thread Delirium tremens
This part of the problem has been solved. On 29 jan, 15:06, Delirium tremens wrote: > What else should I try? > > On 29 jan, 15:01, Delirium tremens wrote: > > > The code from the site: > > >     function hashPasswords($data, $enforce=false) { > >             if($enforce && isset($this->data[$t

Re: $this->data is being unset

2009-01-29 Thread Delirium tremens
This part of the problem has been solved. On 29 jan, 20:41, Delirium tremens wrote: > The following code does not work. > >     function hashPasswords($data) { >         return $data; >     } >     function beforeSave() { >             $this->data['Account']['password'] = Security::hash($this->d

Re: nice new API layout

2009-01-29 Thread Mona
API 1.1 is missing! Please put it back ASAP. I'm still using that version. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscr

newb question: autoRendering a view, even if I specify autoRender=false!

2009-01-29 Thread mark
Basic question, hopefully with a simple answer. I've got a view that I *do* want to re-render after an ajax delete. The delete works properly and the view attempts to re-render, but instead displays the dreaded "requested address was not found" message (basically acting as if it's trying to render

Re: CakePHP Model Advice

2009-01-29 Thread Webweave
OK, just an observation, but first your ID is 0, which doesn't make sense for an ID value. But assuming that's OK for a moment, what is the result if you query the ingredients_recipes table directly for recipe_id of 0. On Jan 29, 10:11 am, matth wrote: > Sure thing. > > My recipes controller v

Re: Using pagination inside elements

2009-01-29 Thread dr. Hannibal Lecter
This is just a wild guess, but perhaps it is not applied when you're using requestAction()? It is (if I understand correctly) a separate request as far as cake is concerned. Try adding the paginator manually in your controller, and if that doesn't work maybe someone else will offer more help. On

Re: Group By in Pagination

2009-01-29 Thread Brett Wilton
I wrote a small pagination example a while back, the link is http://wiltonsoftware.com/posts/view/custom-group-by-pagination-and-a-calculated-field. I used the function for 3 paginated views, since I only had one of the paginated views using the group by clause I just checked for that condition.

Re: CakePHP Model Advice

2009-01-29 Thread brian
Are you certain that you have at least one row in ingredients_recipes with a recipe_id equal to ... hey, wait a minute--your recipe ID is 0. That's not right at all! You'll need to clear that up, first. How did you put that recipe data into the DB? If it was through a Cake form, something's likel

Re: utf-8 encoding problem

2009-01-29 Thread brian
What does $this->params show you? On Thu, Jan 29, 2009 at 5:18 PM, medo wrote: > > hi group, > > i have problem with my search feature in my site the problem is when i > use the search page to search for an Arabic word with the form get > method. and i faced that problem in the prototype below >

Re: Using pagination inside elements

2009-01-29 Thread Xoubaman
I edited some code to make it more readable in the group, looks like that is a misstip. The requestAction works fine, in fact if I comment all $paginator mentions the foreach shows the expected results. The doc reads that setting var $paginate and using the method paginate () automatically adds t

relative urls/caching with default arguments/compressing output

2009-01-29 Thread Ain Uljas
Hello! 1. I have a static (that is, no php in it) file transform.xsl which I put in a folder "xslt" under webroot that has a link to a style.css file. And in my view I am linking transfor.xsl file: '); ?> The problem is, the number of arguments passed to the controller (separated by slashes)

Re: $this->data is being unset

2009-01-29 Thread Delirium tremens
The following code does not work. function hashPasswords($data) { return $data; } function beforeSave() { $this->data['Account']['password'] = Security::hash($this->data ['Account']['password'], null, true); return true; } Can you figure out why?

Accessing $javascript->object() results

2009-01-29 Thread Pyrite
I have found many blogs talking about how you can have your controller send to your view the results of some: $data = $this->MyModel->find('all', array('some params')); $this->set('data', $data); And then in your view: echo $javascript->object($data); Now, how the heck in the view using Javasc

utf-8 encoding problem

2009-01-29 Thread medo
hi group, i have problem with my search feature in my site the problem is when i use the search page to search for an Arabic word with the form get method. and i faced that problem in the prototype below > search_controller.php << layout='page'; if (isset($_GET['keyword']))

Re: Question about Auth component caching

2009-01-29 Thread Mee
Well..thanks a lot then :) On 29 Січ, 23:32, Miles J wrote: > No that's pretty much the only way to refresh the Auth user session. > Any variants of updating the session manually works. > > On Jan 29, 11:18 am, Mee wrote: > > > Hello, > > >  As far as I see Auth->User is cached in session, but

$this->data is being unset

2009-01-29 Thread Delirium tremens
function hashPasswords($data, $enforce=false) { if($enforce && isset($data['Account']['password'])) { if(!empty($data['Account']['password'])) { $data['Account']['password'] = Security::hash($data ['Account']['password'], null, true); }

Re: Question about Auth component caching

2009-01-29 Thread Miles J
No that's pretty much the only way to refresh the Auth user session. Any variants of updating the session manually works. On Jan 29, 11:18 am, Mee wrote: > Hello, > >  As far as I see Auth->User is cached in session, but when I change > some fields in user's record I need to update cache. I do i

Re: nice new API layout

2009-01-29 Thread gerhardsletten
Kudos! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.c

Re: XAMPP for linux

2009-01-29 Thread RoVo
Hi Sergi, I agree with Smelly_Eddie. My LAMP-installation on ubuntu works stable and fast over month. There are some nice HowTo's - search for "ubuntu apache" (GIYF:) Some people prefer a VirtualHost config. But you can also use sudo a2enmod rewrite and "AllowOverride All" in http.conf - and hav

Re: Using pagination inside elements

2009-01-29 Thread dr. Hannibal Lecter
Well, maybe you didn't include the PaginatorHelper in your app. Other thing which seems odd to me is that your controller is "ItemsComments", but in your element you're calling $this- >requestAction('items/get_comments/'.$id). Is 'items/get_comments/' properly mapped to ItemsComments::index()? O

Question about Auth component caching

2009-01-29 Thread Mee
Hello, As far as I see Auth->User is cached in session, but when I change some fields in user's record I need to update cache. I do it in a wierd way: $user = $this->User->findById($this->Auth->user('id')); $this->Session->write($

Re: nice new API layout

2009-01-29 Thread Gwoo
So...your two options are to generate the old style using doxygen or contribute to the api_generator project. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-

Re: implementing keyboard shortcuts

2009-01-29 Thread Brad V. aka iBspoof
MichTex- I have used this before with great success: http://code.google.com/p/js-hotkeys/ Works with jQuery. Brad On Jan 29, 12:18 pm, MichTex wrote: > Has anyone implemented keyboard shortcuts (hotkeys) for CakePHP > applications? I'm looking for real, single-key shortcuts, such as > Gmail a

Re: AuthComponent doesn't work with scaffolding!

2009-01-29 Thread Gwoo
the best way to solve it definitely to add more ! something likeSCAFFOLD IS NOT FOR PRODUCTION USE --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php

Using pagination inside elements

2009-01-29 Thread Xoubaman
I'm trying to code an element that shows the comments about a certain item, but when I'm using the paginator helper i get a "Fatal error: Call to a member function numbers() on a non-object in[...]" message. Searching the group i found that some users had the same problem, but never received a va

Re: nice new API layout

2009-01-29 Thread Hiero
I agree with rogwei - The overall layout looks great, (especially love the use of Mac typefaces) and its very legible. But I do really miss those member list links, its a lot harder to scan and jump-to like I used to (and I rely on the API quite a bit.) On Jan 28, 10:26 am, rogwei wrote: > um

Re: Which editor for Mac OS X?

2009-01-29 Thread Webweave
On Jan 25, 10:49 am, leo wrote: > Sorry to be slow getting back - we've had a thirty hour power outage > following a storm that ripped off roofs and uprooted trees. A little > unusual here in Spain. > @everybody and nobody, I dislike Eclipse and Netbeans because > 1. (without redoing the sums)

implementing keyboard shortcuts

2009-01-29 Thread MichTex
Has anyone implemented keyboard shortcuts (hotkeys) for CakePHP applications? I'm looking for real, single-key shortcuts, such as Gmail and Google Reader provide, and not the multi-key shortcuts (i.e., using the Alt or control keys) which the HTML accesskey attribute gives you. Thanks. --~--~--

Re: CakePHP Model Advice

2009-01-29 Thread matth
Sure thing. My recipes controller view function: function view($id = null) { $this->set('recipe', $this->Recipe->findById($id)); } My recipes/view.ctp debug output: Array ( [Recipe] => Array ( [id] => 0 [created] => 2009-01-21 22:49:23 [n

Re: Which editor for Mac OS X?

2009-01-29 Thread Webweave
I use NetBeans with Cake and haven't seen any serious shortcomings on code completion, can you elaborate ? My only complaint with the PHP support in NB has been that it feels a bit like a bolt-on, but as the past has shown I'm sure the NB team will continue to rapidly improve that. There's also a

Re: nice new API layout

2009-01-29 Thread Gwoo
the previous version used Doxygen, http://www.stack.nl/~dimitri/doxygen/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: nice new API layout

2009-01-29 Thread rogwei
Where can we get the source for the previous version? On Jan 28, 10:03 am, Gwoo wrote: > Api Generator is open source. Feel free to fork the project and add > the features you want to see. > > http://thechaw.com/api_generator --~--~-~--~~~---~--~~ You received thi

Re: XAMPP for linux

2009-01-29 Thread hellfish
I've used Xampp for linux when I didn't know how to use linux. Now that I know how to configure a server I don't need Xampp anymore. I recommend that you fire up google a lean how to install a php, mysql and apache on a linux box. On Jan 29, 5:01 pm, Smelly_Eddie wrote: > WHy would you inst

Re: Twitter - component / model / datasource

2009-01-29 Thread hellfish
@teknoid Good example, actually it's the only one I've seen of a Datasource but I'm affraid that it's a bit to much for me. The best I could do is a Model wich I was extending into a plugin when I just realized the problems that plugins have with AppError. I wanted to put the code up in the bak

Re: behaving the CakePHP 1.2 way

2009-01-29 Thread Delirium tremens
What else should I try? On 29 jan, 15:01, Delirium tremens wrote: > The code from the site: > >     function hashPasswords($data, $enforce=false) { >             if($enforce && isset($this->data[$this->alias]['password'])) { >             if(!empty($this->data[$this->alias]['password'])) { >    

Re: Get count of related model

2009-01-29 Thread Webweave
You could just add a count to the fields that you are fetching like: $this->Foo->find('all', array('fields' => array('Foo.*', '(select count (1) from bars Bar where Bar.foo_id = Foo.id) as bar_count'))); I use this approach both with fields and it can also be used with conditions when you need t

Re: XAMPP for linux

2009-01-29 Thread Smelly_Eddie
WHy would you install XamPP? Your taking already running a perfectly decent LAMP box! XAMPP would never match the tuned performacne you;ll get using the included binaries. On Jan 29, 10:59 am, yusuf widi wrote: > xampp for linux can be find on apachefriend.com > but you know that ubuntu cd hav

Re: behaving the CakePHP 1.2 way

2009-01-29 Thread Delirium tremens
The code from the site: function hashPasswords($data, $enforce=false) { if($enforce && isset($this->data[$this->alias]['password'])) { if(!empty($this->data[$this->alias]['password'])) { $this->data[$this->alias]['password'] = Security::hash ($this->dat

Re: Creating a tagging system for uploaded images

2009-01-29 Thread Webweave
I'm not sure that I understand your question. What is the error you are getting? How are you doing the update of the related data (save, saveAll) ? On Jan 28, 9:18 am, foldiman wrote: > Can anyone give general strategy advice on building a tagging system? > I'm creating an app where users simp

Re: AuthComponent doesn't work with scaffolding!

2009-01-29 Thread BrendonKoz
The "prettier" way to solve this would be to use cake's `bake` application to create all of the methods in a scaffolded way. The issue here is that if you decide to reconstruct your database and/or model, you'd have to delete your cache files *and* re-bake your controller and view files. However

Re: Vote for add Cakephp into Netbeans

2009-01-29 Thread Webweave
C'mon people, there are only 84 votes out there - If NetBeans adds Cake support I'm guessing not only would it do the cool IDE stuff it does now, but we'd be able to debug, and some level of front end for baking (like ModelBaker) On Jan 28, 9:11 am, matt wrote: > Great idea! Netbeans is an aweso

Re: CakePHP Model Advice

2009-01-29 Thread Webweave
What are you seeing in the debug data for your Recipe find? Post the controller code where you do the find, and what the data output is, and it will be easier for someone to answer your question. On Jan 28, 1:29 pm, matth wrote: > Thanks for that tidbit about the Ingredient model. > > I gave re

Re: Validation of a disabled input field

2009-01-29 Thread tobi_one
Martin, thanks a lot! Using "readonly" works exactly as I wanted. Just for reference, my input field looks like this now: input('templatefile', array('label' => 'Template', 'readonly'=>TRUE)); ?> Cheers, tobi_one --~--~-~--~~~---~--~~ You received this message be

Re: HABTM on a HABTM

2009-01-29 Thread yusuf widi
array( 'className' => 'Area', 'foreignKey' => 'parent_id', 'dependent' => true ) ); ?> this stuff works well with me... On Thu, Jan 29, 2009 at 6:35 PM, AD7six wrote: > > > > On Jan 29, 9:58 am, Miles J wrote: > > It seems that my belon

Re: XAMPP for linux

2009-01-29 Thread yusuf widi
xampp for linux can be find on apachefriend.com but you know that ubuntu cd have already contains php, apache and mysql? On Thu, Jan 29, 2009 at 8:44 PM, leo wrote: > > try the xampp or ubuntu websites > > On Jan 29, 12:18 pm, Sergi Pasoev wrote: > > Hi! > > > > Plese, tell me where to download

Re: Twitter - component / model / datasource

2009-01-29 Thread teknoid
Your feeling is correct. Here's what Felix did for Google Analytics: http://debuggable.com/posts/new-google-analytics-api:480f4dd6-c59c-445f-8ce0-4202cbdd56cb It should serve as a nice blue print for building a Twitter datasource... On Jan 29, 10:28 am, hellfish wrote: > I've seen the component

Re: svn or git?

2009-01-29 Thread teknoid
Using Git is cool. Don't you wanna be cool? :) All the kids are using it, you should try it too... On Jan 29, 10:07 am, leo wrote: > @martin - yep I agree. I've tried them both and Cornerstone is great. > I don't like paying for stuff like that though. The kind of things > that are almost alway

Re: Set::combine (or maybe merge and a couple extracts)

2009-01-29 Thread teknoid
Set does quite a bit of looping too, but it also looks much prettier in the code ;) That being said I did not find a way to use Set for this scenario, if you do please share and I'll gladly update the post. On Jan 29, 2:15 am, brian wrote: > That does look nice. While I was trying to avoid loop

Re: Twitter - component / model / datasource

2009-01-29 Thread hellfish
I've seen the component but I have a feeling that it should be a Model. What does the Model Control View structure say on this :p ? On Jan 29, 10:22 am, Alexandru Ciobanu wrote: > hellfish wrote: > > Interacting with twitter and services like these using cake should be > > done > > Using a mo

Re: how to get value from select drop down box

2009-01-29 Thread vikas
thanks Martin.. I got the point.. and problem is solved... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group

Re: svn or git?

2009-01-29 Thread leo
@martin - yep I agree. I've tried them both and Cornerstone is great. I don't like paying for stuff like that though. The kind of things that are almost always freeware on Windows are nearly always payware on Mac :( Don't really know which to go with. I guess I'll stick with Subversion for now, b

Re: svn or git?

2009-01-29 Thread Esoteric
In my opinion Git is where it is at and I am glad to see that CakePHP will be moving to Git eventually, because it is vastly superior IMO than SVN plus you don't have to rely on a server to commit changes as it is all local until you wnat to push to a server if you choose to. Enjoy. -Erik On J

Problem with App::import with classes containing a dot.

2009-01-29 Thread Xav
Hi, The following code returns FALSE and don't load the Class : App::import('Vendor', 'IPReflectionClass', array('file' => 'wshelper'.DS.'lib'.DS.'soap'.DS.'IPReflectionClass.class.php')); when I want to load the class in the following directory : .../vendors/wshelper/lib/soap/IPReflectionClass.

Re: Validation of a disabled input field

2009-01-29 Thread Martin Westin
In my experience a disabled field will not follow the rest of the values to the server. According the the w3c a disabled field "cannot be successful" which I read as "can not have a value when submitted". You can use the attribute "readonly" (only for text inputs) which disables editing but the v

Re: Cache not configured properly on Mac OS X

2009-01-29 Thread Rick
Thanks, that got me on the right track - I tried setting tmp (and contents) to 755 but that made "cache not writable", then 766, back to the orginal error and finally to 777 which worked. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: behaving the CakePHP 1.2 way

2009-01-29 Thread j0n4s.h4rtm...@googlemail.com
I did not try this yet, but this should help you, right?: http://teknoid.wordpress.com/2008/10/08/demystifying-auth-features-in-cakephp-12/ p.s. I believe the whole thing is because AuthComponent is AuthComponent and not AuthBehavior. If it came with such a thing it would be more clear (because

Re: svn or git?

2009-01-29 Thread Martin Westin
If you are on Mac OS X you should really look at Versions and Cornerstone. They are both excellent subversion clients that are very "Mac". I bought Cornerstone after using "Smart"SVN for a while (read years) and it's a world of difference, even for something as basic as versioning code. Well, if

AuthComponent doesn't work with scaffolding!

2009-01-29 Thread JuniorCMS
Hi, I'm in truble with AuthComponent 'cause i want to use scaffolding for simple tasks but I need to restrict access to the application. Diving into the source I found the point o problem in the AuthComponent source file (/cake/libs/controllers/components/auth.php #265). Inizialization check ac

Re: how to get value from select drop down box

2009-01-29 Thread Martin Westin
Hi vikas, Getting the value works no different than the value of a normal text input field. The controller sees this->data['Model']['report_timeframe'] // or whatever you call it. The options array you pass to the select field looks like this: array( 'value' => 'visible label' ) So I usually f

how to get value from select drop down box

2009-01-29 Thread vikas
Hello all.. bit confused.. I have report generation option in my application. In that I want to generate attendnace report by month, by quarter etc. So I would like to put select dropdown box where there is options like ByMonth,ByQuarte, etc.. User selects the option and see the report.. So h

unwated underscore (_) prefixes in form fields?

2009-01-29 Thread the_woodsman
Hi guys, I have a Tag model, which HABTM Images. I use the form helper to generate acombined edit tag and its assoc images form. I found a bug, in which it was already trying to INSERT tags, never UPDATE them. I looked in $data in the controller, and it's something like: Array ( [__Token

Re: XAMPP for linux

2009-01-29 Thread leo
try the xampp or ubuntu websites On Jan 29, 12:18 pm, Sergi Pasoev wrote: > Hi! > > Plese, tell me where to download XAMPP for Ubuntu AMD 64. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

XAMPP for linux

2009-01-29 Thread Sergi Pasoev
Hi! Plese, tell me where to download XAMPP for Ubuntu AMD 64. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this g

Problems using Set::matches and XPATH expression

2009-01-29 Thread orbdex
Hey guys, I'd like to use the Set::matches function as explained in the CakePHP 1.2 book on http://book.cakephp.org/view/670/matches to check the existance of a value within an array. I did not get it to work within my application so I tried the examples directly from the page and it did not wor

Re: Cache not configured properly on Mac OS X

2009-01-29 Thread Graham Weldon
On OS X, you should drop-in the CakePHP directories, and leave them as is. Unless you are running your Apache webserver under a different user than the one you login as. If you have chmod'd the tmp directory recursively to 666, you have removed the execute bit, which is needed for directory trav

Re: Cache not configured properly on Mac OS X

2009-01-29 Thread leo
Try 777. It's the only way I could get it to work. Fwiw, I don't enable the cache on my dev server as it can lead to confusion trying to debug. On Jan 28, 9:26 pm, Rick wrote: > Version 1.2.1.8004 > > I downloaded and installed Cake in my Apache document directory in new > "Test" Directory.  I c

Validation of a disabled input field

2009-01-29 Thread tobi_one
Hi, is there a way to activate the validation of a disabled input field? In my view I have a field like this: input('templatefile', array('label' => 'Template', 'disabled'=>TRUE)); ?> The input field is disabled for the user but gets written to via Javascript. I would like to apply the "notEmp

Re: Twitter - component / model / datasource

2009-01-29 Thread Alexandru Ciobanu
hellfish wrote: > Interacting with twitter and services like these using cake should be > done > Using a model, datasource or component? > Component. http://bakery.cakephp.org/articles/view/twitter-component --~--~-~--~~~---~--~~ You received this message becau

Twitter - component / model / datasource

2009-01-29 Thread hellfish
Just want to get some feedback on this. Interacting with twitter and services like these using cake should be done Using a model, datasource or component? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" gro

Re: New api template =(

2009-01-29 Thread leo
> Tell me please where can I find API-manual in the old design? You can't - it was broken. See:- http://groups.google.com/group/cake-php/browse_thread/thread/9dc3f5648023e2b4?q= This isn't a new template or design. It is a new application. --~--~-~--~~~---~--~--

Re: New api template =(

2009-01-29 Thread leo
http://thechaw.com/api_generator/tickets/view/4 - fixed (thanks Mark) On Jan 29, 9:00 am, Martin Westin wrote: > The new api (new code all the way) was written by Mark Story and Gwoo. > > http://mark-story.com/posts/view/the-new-face-of-cakephp-s-api > > Since they just released it a few days a

Re: svn or git?

2009-01-29 Thread leo
Thanks, Gwoo, that's what I wanted to know. It's like a vote of confidence in Git. Now I'll investigate it. On Jan 28, 7:48 pm, Gwoo wrote: > > Why does CakePHP use SVN. > > Because when we started CakePHP 3 years ago, Git did not exist. > > > while The Chaw appears to use GIT? > > Because now G

Re: HABTM on a HABTM

2009-01-29 Thread AD7six
On Jan 29, 9:58 am, Miles J wrote: > It seems that my belongsTo (it belongs to itself to get its parent > system) causes the crash/white page. Once I remove the belongsTo it > works, weird, no problem though. > > class System extends AppModel { > >         /** >          * Reduce usage >      

Re: Find with two levels of recursion in where clause

2009-01-29 Thread maxmil
Thanks a million that was exactly what i needed. Heres an example of the code that does what you instructed that may help someone else in the future, if it can be improved please let me know. The code executes from within the A model class (A.php) $modelB = ClassRegistry::init('B'); $modelB->un

Re: Find with two levels of recursion in where clause

2009-01-29 Thread maxmil
Thanks a million that was exactly what i needed. Heres an example of the code that does what you instructed that may help someone else in the future, if it can be improved please let me know. The code executes from within the A model class (A.php) $modelB = ClassRegistry::init('B'); $modelB->un

Re: Get count of related model

2009-01-29 Thread Günther Theilen
Works like a charm, thanks. I thought about the counterCache behaviour as well but I need this only in one seldom used function so I think counterCache would be overkill... Regards Guenther brian wrote: > I think the quickest way would be to create a database view. > > CREATE VIEW foobar AS S

Re: HABTM on a HABTM

2009-01-29 Thread Miles J
It seems that my belongsTo (it belongs to itself to get its parent system) causes the crash/white page. Once I remove the belongsTo it works, weird, no problem though. class System extends AppModel { /** * Reduce usage */ var $recursive = -1; /**

Re: Latest Cake Release breaks HABTM pagination

2009-01-29 Thread Fran Iglesias
Hi, first, sorry: I'm not a guru. take a look to this Bakery post by Nate: http://bakery.cakephp.org/articles/view/quick-tip-doing-ad-hoc-joins-in-model-find it completely changed my view about the pagination issue when combined with the custom finds beacause you can force joins on habtm a

Re: HABTM on a HABTM

2009-01-29 Thread AD7six
On Jan 29, 5:14 am, Miles J wrote: > Everytime I try to do this, the page just goes white. Is this even > possible? What other alternatives are there. Alternatives to what, describing your problem/usecase to get help? Don't think so ;) --~--~-~--~~~---~--~~ You

Re: New api template =(

2009-01-29 Thread Martin Westin
The new api (new code all the way) was written by Mark Story and Gwoo. http://mark-story.com/posts/view/the-new-face-of-cakephp-s-api Since they just released it a few days ago I imagine there may be a few minor things to tweak. But I don't see what you describe, at least not when looking at the