Re: Release: CakePHP 1.2.6

2010-01-29 Thread Miles J
Awesome, upgrading now :] On Jan 29, 8:37 pm, Marcelo Andrade wrote: > On Sat, Jan 30, 2010 at 12:50 AM, mark_story wrote: > > (..) > > Good job Mark and all of CakePHP Team! > > Keep baking! > > -- > MARCELO F ANDRADE > Belem, Amazonia, Brazil > > "I took the red pill" Check out the new CakePH

Re: Release: CakePHP 1.2.6

2010-01-29 Thread Marcelo Andrade
On Sat, Jan 30, 2010 at 12:50 AM, mark_story wrote: > (..) Good job Mark and all of CakePHP Team! Keep baking! -- MARCELO F ANDRADE Belem, Amazonia, Brazil "I took the red pill" Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

Release: CakePHP 1.2.6

2010-01-29 Thread mark_story
The CakePHP development team is happy to announce CakePHP 1.2.6[1]. 1.2.6 is a bug fix release of the latest stable branch. Check the changelog[2] for all the changes. CakePHP 1.2.6 Includes more than 160 commits improving performance and fixing more than 75 related tickets. There have been a num

scraping / preg_match_all / ->beginner in cakephp

2010-01-29 Thread 512banque
Hi all. I'm totally newbie to CakePhp. I have a problem with some preg_math_all function. Let me explain you. This is what I want to do : I'm doing a kind of personnal bookmark "software". Something very easy. But I can't achieve it. Too bad. I want to manage my bookmarks by category. This is

Re: How & where to define a new class for routes

2010-01-29 Thread mark_story
Well considering you're using an example from my post, why not read the rest of it. I explain it there. -Mark On Jan 28, 11:47 pm, Ram wrote: > Hi all, > >      In my application i need to analyze the url, I seen in one > article that in order to do this stuff we can define a class to routes >

CakePHP 1.3 (newest), fatal error while baking views

2010-01-29 Thread Wievior
I've just downloaded the newest beta of CakePHP 1.3 for a new project (not a serious one, so no worries with the beta, still learning stuff, I'm actually trying to get grip on acl/auth). I've baked model and controllers for four databases, but baking a view results in a fatal error: Fatal error: C

Re: Setting up Cakephp - hello world?

2010-01-29 Thread Daniel S. Reichenbach
Hi, the general installation manual is here: http://book.cakephp.org/view/32/Installation > The cake php framework is place in a shared folder in the server. > Under the developer folder is the application. Cakephp comes with an app/ folder, which basically *is* the hello world application you a

CakePHP on Media Temple (dv) - permissions issue for cache

2010-01-29 Thread fahd
Hey, I just migrated my website from Media Temple's (gs) server to (dv). I got an error that the /tmp/cache folder is not writable. Changing the permissions to 777 fixes this error - however it seems unsafe (is this true?). How come the server can't write to the cache file? The user for that folde

Setting up Cakephp - hello world?

2010-01-29 Thread Natkeeran L.K.
The cake php framework is place in a shared folder in the server. Under the developer folder is the application. How do I use the Cakephp in my application. A simple hello world example would be helpful. Thanks. Nat Check out the new CakePHP Questions site http://cakeqs.org and help others wit

RE: Localsite Virtual Setup

2010-01-29 Thread Dave
Perfect that's what I was looking for. 1 cake for many sites. Thanks I will give that a try. I have the virtual hosts all set up using Apache. Its just a pain having to copy cake folders / upgrade them when I can do it this way once. Good looking out! Thanks, Dave -Original Message- F

Re: Localsite Virtual Setup

2010-01-29 Thread cricket
On Jan 29, 1:00 pm, Jon Bennett wrote: > Hi Dave, > > > I want to set up my virtual environmant so i can use 1 copy of Cake and all > > site being developed can use that 1 copy. > > Pressumming you're using Apache. You just need to set a vhost up for > each site, eg: > > domain.dev > another-domai

Re: Localsite Virtual Setup

2010-01-29 Thread Bryan De Asis
In order for you to setup that kind of structure you need to follow this structure. www/ lib/ -- putting all the cakephp versions you can dump any version of cake here for reference cakephp1.2.5/ cake/ vendors/ .htaccess

Re: Dojo toolkit integration with CakePHP now supported!!

2010-01-29 Thread LordZardeck
Okay, I have released the version of DojoCake that supports CakePHP 1.3. You can get it at the project page, and read up about the release at the blog: http://dojocake.blogspot.com Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. Yo

Bypassing validation

2010-01-29 Thread Craig Francis
(Note: This is my first time using CakePHP). I have a fairly simple user model, with validation along the lines of: var $validate = array( 'username' => array( 'notEmpty' => array( 'rule' => 'n

Re: Localsite Virtual Setup

2010-01-29 Thread Jon Bennett
Hi Dave, > I want to set up my virtual environmant so i can use 1 copy of Cake and all > site being developed can use that 1 copy. Pressumming you're using Apache. You just need to set a vhost up for each site, eg: domain.dev another-domain.dev you then have the cakephp APP folder inside each,

Re: How & where to define a new class for routes

2010-01-29 Thread Miles J
That new route functionality isn't out yet. On Jan 28, 8:47 pm, Ram wrote: > Hi all, > >      In my application i need to analyze the url, I seen in one > article that in order to do this stuff we can define a class to routes > like > > Router::connect('/:slug', array('controller' => 'posts', 'ac

Re: How to implement Comet in CakePHP ?

2010-01-29 Thread BrendonKoz
Okay, so looking at it a bit more, if you're going to use the ACTUAL Comet protocol, you *must* use a server capable of working with it. Apache HTTPD does not, Apache Tomcat supposedly does. This would mean that in addition to the webserver, you'd need a Comet server. I'm not completely positive,

https links not working

2010-01-29 Thread Lorenzo Bettini
Hi I'd like to access my cakephp based web site also using https, but I always get an error saying that the requested url is not found on the server. Note that apache is configured to serve also https requests and it works with other pages... is there anything to set somewhere? thanks in

Localsite Virtual Setup

2010-01-29 Thread Dave
I want to set up my virtual environmant so i can use 1 copy of Cake and all site being developed can use that 1 copy. So i currently have my www folder www/ site1/ app/ cake/ site2/ app/ cake/ site3/ app/ cake/

RE: JSON View

2010-01-29 Thread Dave
This is my controller function function manage_edit($id = null) { if ($this->RequestHandler->isAjax()) { Configure::write('debug', 0); $award = $this->Award->getAward($id, $this->Auth->user('id')); if (!empty($award)) {

Re: TimeAgoInWords in another language

2010-01-29 Thread John Andersen
In your po file, you have to define all the terms used in the timeHelper class. See the code at: http://api12.cakephp.org/view_source/time-helper/#line-423 There you will find that the timeHelper uses the __() and __n() function and if you define the translation for these words, you will get the

TimeAgoInWords in another language

2010-01-29 Thread Céryl
Hi all, I keep runnign into this problem and there is probably something I don;t understand or do right. I'm using the Time helper to display some upcoming activities using the timeAgoInWords function. Everything works fine and it displays it correct like: "3 days, 15 hours" or "on "12-2-10". How

Re: calling a component in a model

2010-01-29 Thread Florian
Thanks, to all. Worked with App::Import On 29 Jan., 08:55, "j0n4s.h4rtm...@googlemail.com" wrote: > While Miles J is right in general, there are exceptions. > > This is how I used Emailcomponent from > amodel:http://github.com/ionas/sna/blob/master/www/app/app_model.php#L98 > (1.2.5) > > I am n

getparentnode and custom validation rule problem

2010-01-29 Thread emmexx
I wrote a model that act as a tree (mymodel). In mymodel.php file I coded some custom validation rule. One of the rules is like the following: function testmyfield($check) { $grandfather = $this->getparentnode($this->data['Category'] ['parent_id']); if ($grandfather) { $condition=ar

Cake PHP Developer wanted in London

2010-01-29 Thread timruffles
If you’re a talented, graduate (of any disicipline) PHP developer with MVC skills and a desire to learn, I’d love to hear from you. We're a web development shop with big clients - currently working on software used by Nike, Discovery and other popular brands. Great Soho office, a big screen and big

$Auth problem when 404 type errors occur.

2010-01-29 Thread mhmh
Hi, I have two elements (short menus) set to appear in the default layout based upon the group ID of the current user. If $Auth['User'] ['group_id']==1 then menu 1 appears,if $Auth['User']['group_id']==2 then menu 2 appears. This works just fine, except when I encounter a 404 type error. When r

How & where to define a new class for routes

2010-01-29 Thread Ram
Hi all, In my application i need to analyze the url, I seen in one article that in order to do this stuff we can define a class to routes like Router::connect('/:slug', array('controller' => 'posts', 'action' => 'view'), array('routeClass' => 'SlugRoute')); I want to to where to define this

How to make different model-data-array compatible

2010-01-29 Thread Freight
Hi, I think find-method returns different data-arrays for recursive date. However I want to use the userdata in the same index-element in different actions. So there will be an error with the var-names. MyModel: Entry hasMany Users Users belongsTo Group Entry->find('first') returns an array lik

Re: return tree node from find('threaded')

2010-01-29 Thread Alexandru Ciobanu
On 1/29/2010 8:35 AM, cricket wrote: But I surely do not have the last word on this. Maybe someone else knows a better way. My best advice: go with MPTT. The same table is used in another part of the application (non-CakePHP), and has to remain exactly like it is. I cannot go MPPT, henc

Re: JSON View

2010-01-29 Thread thomaus
Hi Dave, I tried it this way but it's the same. $this->layout = 'ajax'; $this->autoLayout = false; $this->autoRender = false; $response['html'] = $this->render('/form/form_json'); So is there a way to get the result content of a view in a var (in this case $response['html']) without rendering it

Re: datasource and count()

2010-01-29 Thread John Andersen
Ok, then it is not in the your DataSource class there is a need for the calculate method, but in your generic filesystem class, to which the DataSource refers to (through configuration). As I understand, CakePHP use a DataSource to provide an implementation independent interface to the DboSource (

Re: Pretty URLs don't work without .htaccess ?

2010-01-29 Thread robustsolution
Some web hosting companies do not allow the use of htaccess on shared servers, and sometimes they allow you to use it on linux machines not windows! I think Marcelo has the right answer for this kind of situation Check out the new CakePHP Questions site http://cakeqs.org and help others with thei

Re: datasource and count()

2010-01-29 Thread fain182
2010/1/27 John Andersen : > Ok, I would like to understand what is your issue here, because I do > not see a calculate method in the DataSource class! Do you mean the > DboSource? >   John I tried to make a $this->Image->find('count'); on the model with my datasource, and it gives error: Fatal err

Re: Pretty URLs don't work without .htaccess ?

2010-01-29 Thread AD7six
On Jan 29, 8:55 am, AD7six wrote: > On Jan 29, 3:35 am, Johnny Cupcake wrote: > > > Why did I disable mod_rewrite in the first place?  Well, the core > > config file says pretty URLs are available regardless (see line 48), > > so I figured I'd keep complexity to a minimum. > > I think you misun