Re: Debug = 2 changes the response context type

2009-11-11 Thread jason m
when using ajax i always set the debug to 0 before rendering the view. You can do that in the controller by doing Configure::write('debug', 0). That will only set the debug temporarily so it should solve your problem. On Nov 12, 6:38 am, Alberto Dominguez

Re: PHP IDEs

2009-09-10 Thread jason m
I have used textmate, coda, eclipse, netbeans, and aptana on Mac. For me, textmate has worked the best with the cakephp bundle. Although it is not free, I feel that I am the most productive on textmate because it uses a fraction of the memory of the Java based editors and is faster than coda. The

Re: PHP IDEs

2009-09-10 Thread jason m
encodings, I wonder why textmate, which is not free, cannot. On Sep 10, 11:45 pm, Martin Westin martin.westin...@gmail.com wrote: On Sep 10, 1:05 pm, jason m ippatsu.ya...@gmail.com wrote: The only downside of textmate is that it doesn't really support any other encodings besides UTF8. Jason

.htaccess and mime-types

2009-08-25 Thread jason m
I have a cakephp 1.2 app (1.2.2.8120) and I am trying to change the mime-type for Japanese cell phones on certain pages with this one line of code in the app/webroot/.htaccess file: AddType application/xhtml+xml .xhtml This works for .xhtml files uploaded directly to the webroot folder, but

Re: How to create models for complex database designs like this?

2009-03-11 Thread jason m
assuming your relations are setup correctly in the models, you probably just need to use the recursive in the movies controller. $movies = $this-Movie-find('all', array('recursive'=2)); that should give you a list of celebs data for each cast. then just use a pr($movies) to see what is in the

Re: Converting SQL query to Cake query

2009-03-07 Thread jason m
I think you should look into one of the methods using the Set class when combining results from a count query like this. I'm not sure exactly which set method you should use but maybe Set::combine. http://book.cakephp.org/view/662/combine I think there is nothing wrong with using a foreach to

Re: Wordpress and cakephp

2009-01-25 Thread jason m
+1 for wildflower. I'm not sure if it's done yet but I think the wildflower developer wanted to make it into a plugin so you could just pop it into your plugin folder and use it right away, while the rest of your app is separate. On Jan 24, 6:15 pm, ache...@gmail.com ache...@gmail.com wrote:

Re: API

2009-01-04 Thread jason m
Also, the first line of the find method description says that it returns a single row as a resultset array. That might have been true for cake 1.1 but for 1.2 I generally use the find method for basically any kind of read from the model, and this method if probably the one I use most and

Re: API

2009-01-04 Thread jason m
One of the most confusing areas of the API when pre-release versions of cake 1.2 came out was probably the Model::find method. I think the cookbook covers it very well, but just by looking at the api, you wouldn't really know how to use it. A simple link to the cookbook in the commend will

Re: findCount different then find('count')

2008-12-30 Thread jason m
i think it should be return $this-find('count', array('conditions'=$conditions)); On Dec 30, 2:59 pm, gearvOsh mileswjohn...@gmail.com wrote: All I did was this: return $this-find('count', $conditions); return $this-findCount($conditions); $conditions = array('OR' = array(  

Re: findCount different then find('count')

2008-12-30 Thread jason m
i think all of the new find methods like 'count', 'all', 'first', etc take a second parameter which is an array with all the options. See api.cakephp.org. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: css is not caling

2008-12-30 Thread jason m
usually you would include the css in the head tag. also the things i would try are: 1) set the debug level to 2 in config/core.php if it's not already. 2) there might be an error somewhere else in your code --~--~-~--~~~---~--~~ You received this message because

Re: Help needed for inline WISIWYG editor...

2008-11-14 Thread jason m
I have had a lot of luck with fckeditor in my cake projects. There is also a tutorial for it in the bakery. On Nov 14, 5:30 pm, Aneesh S [EMAIL PROTECTED] wrote: thanks, but i need more options yahoo would be my choice... Aneesh S --~--~-~--~~~---~--~~ You

Cakephp Conference Japan

2008-10-27 Thread jason m
I attended the cakephp conference in tokyo last saturday. Many different people presented various things about cakephp such as cakephp testing, and general information about cakephp. Also Garrett Woodsworth presented about the state of cakephp and about the cakephp roadmap. One interesting point

Re: installing cakephp on a subdomain

2008-05-15 Thread jason m
There are many different server configurations and I too have had problems installing cakephp. I guess the first step would be to see if php is working. You could do that by placing a php file there with the code ?php phpinfo(); ?. That should print out a bunch of your php settings. If you

Re: looking for a hosting company

2008-03-27 Thread jason m
I've had success with media temple dedicated virtual servers. They are about $50/month (a little less if you pay a year in advance) and I setup cake many times with no problems so far. Speed is pretty good and also the support was always quick and helpful. It was also easy to manage clients and

define() and app_controller

2008-02-21 Thread jason m
I have a method that runs a bunch of define statements for localizations stored in a database. function loadAll($language = 'english',$group=null){ $localizations = $this-Localization-findAll(,array('name', $language)); foreach($localizations as

Re: generateList deprecated ... how to find a list with conditions?

2008-01-14 Thread jason m
How about if you want a list with two fields like Post.id = Post.title? --~--~-~--~~~---~--~~ 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