Re: CakePHP future

2010-09-04 Thread Jamie
The Lithium framework is a completely separate project from CakePHP.
It doesn't represent its "future" or anything like that. It has its
roots in the now-defunct "Cake 3", but that's as far as it goes...
it's totally separate. CakePHP is not affiliated with Lithium. The
articles you quote - especially the second one on debuggable.com - are
out of date.

The main difference between Lithium and CakePHP, aside from being two
completely separate frameworks, is that Lithium requires PHP 5.3 since
it uses namespaces. CakePHP supports 5.3, but doesn't use any 5.3-only
features.

- Jamie

On Sep 2, 9:10 pm, sambo  wrote:
> Does Lithium framework is the future of CakePHP? And what is different
> with CakePHP 2.0 and Cake3 (released under a new name: Lithium)?
>
> You can see this link below for 
> morehttp://www.phpframeworks.com/news/p/614/cakephp-is-dead-lithium-was-bornhttp://debuggable.com/posts/Cake_3_interview_with_Nate_Abele:4a665a5e...
>
> Thanks,
> Sambo

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: CakePHP future

2010-09-04 Thread Robert J. Maiolo
good questions..I look forward to reading what people say on this..

On Thu, Sep 2, 2010 at 9:10 PM, sambo  wrote:

> Does Lithium framework is the future of CakePHP? And what is different
> with CakePHP 2.0 and Cake3 (released under a new name: Lithium)?
>
> You can see this link below for more
> http://www.phpframeworks.com/news/p/614/cakephp-is-dead-lithium-was-born
>
> http://debuggable.com/posts/Cake_3_interview_with_Nate_Abele:4a665a5e-5bfc-4e42-96ee-6d284834cda3
>
> Thanks,
> Sambo
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Validation doesn't give me errors

2010-09-04 Thread Simon
Hello everyone,

I try to get validation working on a register-form in my application.
Because it did not work at all, I tried it on a very simple form with
only a username field (it's called 'gebruikersnaam' in the code
because i'm belgian).
I allready did var_dump on $this->data and $this->Member-
>invalidFields(). $this->data does contain input after a submit.
invalidFields() does contain nothing if I submit a blank form.
I also don't get any errors.

Is it maybe necessary to call save() in the function to activate
validation?

In my members_controller.php i have this empty function:

public function registreren()
{
}

In my model I have:

 var $validate = array(
'gebruikersnaam' => array(
'rule' => 'notEmpty',
'message' => 'Kies een gebruikersnaam.'
)
);

and in the view I do:

echo $form->create( 'Member', array('action' => 'registreren',
'inputDefaults' => array('div' => false)) );

echo $form->input( 'gebruikersnaam' );

echo $form->end('Registreer!');

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


liner array

2010-09-04 Thread butterCake
I'm new to cakePHP. What if I want my model to contain only an array
of list. How to do this ?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Session get deleted with chrome browser

2010-09-04 Thread Amjed
Hi,
I have an application which works fine in Firefox.
But when I use chrome, session gets deleted/new session is created for
every page
it is not the the problem of security.level or "php" sessions. I have
check all forums.

In one forum it says that chrome changes HTTP_REFERER, due to this
behaviour new sessions is created.
Any help in this regard will be appreciated.


Thanks,
Amjed

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Query help

2010-09-04 Thread Mohsin kabir
 $params = array(
 'conditions' => array("Profile.company Like " => $i."%"),
 'fields' => array('Profile.company','Profile.id'),
 'contain' => false);
$this->find('first', $params);


Hope , it will work

On Sep 4, 3:49 am, "Dave Maharaj"  wrote:
> I have this query in the model
>
> $params = array(
>
> 'conditions' => array(
>
> 'Profile.company LIKE' => $i.'*'),
>
> 'fields' => array(
>
> 'Profile.company',
>
> 'Profile.id'),
>
> 'contain' => false);
>
> $this->find('first', $params);
>
> Where $i is a single letter so I am trying to get the first record starting
> with A for example produces this SQL query
>
> SELECT `Profile`.`company`, `Profile`.`id` FROM `profiles` AS `Profile`
> WHERE `Profile`.`company` LIKE 'A*' LIMIT 1
>
> And even though I have a Profile.company record in the database starting
> with 'A' nothing is found. Where am I going wrong? I simply want to find 1
> record where the Profile.company starts with $i.
>
> Thanks,
>
> Dave

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


How to make it so I can perform an action right after user has logged in with auth component?

2010-09-04 Thread MrDarren
Hi, how would I make it so I can update database information right
after a user has logged in with the auth component? I want to perform
this in the login action.

Thanks,
Darren

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Auth Component Login Hook?

2010-09-04 Thread MrDarren
Hi all, I want to do an action to my database everytime someone logs
in via the Auth component. Is this possible and what method would I go
about doing this? I have thought about extending the component but
then what method in the component would I use?

Thanks,
Darren

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


call model validation for multiple actions

2010-09-04 Thread amin
Hi,

Can u plz help me out, how to call validation for multiple actions of
a controller

E.g. a user controller, in user controller add, signup, forgot
password .. etc are actions

now in model class User extends AppModel{

}

how to validate mentioned actions validation in User model 

I have tried $validate method but it only allow for only one action

so plz help me out.

thnks in advance

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Preserving value in dependent select list after validation

2010-09-04 Thread aveev
Hi, I'm new to cakephp
I'm trying to create an applicant add form with validation..
If validation fails, it should return to the add page with previously
entered values.
Here's the code snippet
//applicant controller
function add() {

$docTypes = $this->DocumentType->find('list');
$states = $this->State->find('list', array ('fields' => array
('name',
'name')));
$this->set('states',$states);
$this->set(compact('docTypes','states'));

if (!empty($this->data)) {
$this->Applicant->set($this->data);
if($this->Applicant->validates()) {


$this->Session->write('applicantdata',$this->data);

$this->redirect(array('controller'=>'uploads','action' =>
'add'));
} else {
//grab options for select list with 
application id
$this->set('errors', 
$this->Applicant->validationErrors);
}
}
}

//applicant model
class Applicant extends AppModel {

var $name = 'Applicant';
 var $validate = array('name'=>array('rule'=>'alphaNumeric',
'allowEmpty'=>false,'message'=>'This field is required'));
}

//applicant view
$javascript->link('jquery/jquery-1.4.1', false);
   $javascript->link('jquery/applicants_ajax', false);

echo $form->create('Applicant');
echo $form-
>select('document_type_id',array($docTypes),null,array('id'=>'document'),true);
echo $form->select('application_type_id', array(),null,
array('id'=>'application'),true );
echo $form->input('name');
echo $form->input('pob');


echo $form->end('Save');


//jquery
//if validation fails create options for select list with id =
application, and select value based
//on previously entered one

 $('#document').change( function () {
 $.post('http://localhost/doc_apps/documents/
ajax_search_app_type', {app_type_select: $(this).val()},function(data)
{

$('#application').find('option').remove().end().append('');
var obj = jQuery.parseJSON(data);
$.each(obj, function(key, value)
{
 $('#application').
  
append($("").
  attr("value",key).
  text(value));
});

$.each(obj, function(key, value)
{
var strToAdd = "" ;
$('form').append(strToAdd);
});

 });
   });

});


In the form, there are 2 select lists where 1 select list depends on
another select list (dependent select list).
The problem is I cannot preserve the options and selected value of
dependent select list if validation fails. The options in dependent
select list is created using java script  (jquery)
What comes to my mind is that in jquery, I should check if validation
fails or not. If it does, I'll make an ajax call to grab values for
dependent select list options and select an option based on previously
selected value.
Or maybe anyone have another idea to solve this problem ?
Any help would be greatly appreciated

Thanks...
CakePHP 1.2

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


CakePHP future

2010-09-04 Thread sambo
Does Lithium framework is the future of CakePHP? And what is different
with CakePHP 2.0 and Cake3 (released under a new name: Lithium)?

You can see this link below for more
http://www.phpframeworks.com/news/p/614/cakephp-is-dead-lithium-was-born
http://debuggable.com/posts/Cake_3_interview_with_Nate_Abele:4a665a5e-5bfc-4e42-96ee-6d284834cda3

Thanks,
Sambo

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Is this even possible?

2010-09-04 Thread MDavis
I have a table containing basic post data, including id, category_id,
title, and description. I also have a table containing custom field
data, so that I may create custom form fields on a per category basis,
and I have a third table that contains the answers associated with
particular posts, which contains a record for every custom form field
each time a post is submitted that utilizes custom form fields. Each
record in the answer table has a post_id and a field_id, and a value.

Now, lets say I want to display all the posts for a particular
category on a page. I can use cake's find method to pull the data and
filter it to only select the posts with a certain category_id, that's
easy. I have setup a HABTM relationship between the field model and
the post model (not sure if that's what needs to be done, but it seems
to be selecting the data I need at this time). On the page that is
displaying the post data, I am also displaying select custom field
names as additional columns.

By the way, I'm selecting all this data inside the posts controller

For instance:
ID   |Title|   Manufacturer   |   Age   |   Condition
-

The first 2 columns are from the post table and the last 3 are labels
that I selected from the field table. Then, I am able to select the
data from the post table and the associated answer data from the
answer table.

For istance (these values are just for demonstration, I'm really using
IDs to represent data that's repeated)::
ID  |Title   |   Manufacturer   |   Age |   Condition
-
1   |Test 1|   Company 1 |   2 years|  Very Good
2   |Test 2|   Company 2 |   5 years|  Good
3   |Test 3|   Company 3 |   12 years  |  Fair

I know how to order the results by a field inside the posts table,
such as id or title, but I cannot for the life of me figure out how to
order these results by a field inside the field tableand I may be
completely crazy by thinking it can be done..maybe I'm missing
something obvious, dunno. For instance, I would like to be able to
sort these results by manufacturer, by age, or by condition. I think
I'm just forgetting something but since I can't seem to rack my brain
around it, can anyone out there point me in the wrong direction or let
me know if something like this is even possible, or if it is possible
but not with the database structure I'm using?

Thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


saving HABTM from other controller

2010-09-04 Thread hvannia
Hi,
Basically I Have a HATBM between "A" and "B" tables,
at the "A" controller, once the data for "A" has been entered I want
to save "A" and "A_B" tables .

I read  the " How to add item using HABTM relation " disussion but
still cant get it done.

This is what i got so far:

// within "A" controller:

function add() {
if (!empty($this->data)) {
   $BId=$this->Session->read('BId');
$this->A->create();
if ($this->A->save($this->data)) {
  $lastCreated=$this->A->find('first',
array('conditions' => array('A.name' => $this->data['A']['name']),
'fields'=>'id'));
$this->set('Bid',$BId);
$this->set('Aid',$lastCreated['A']['id']);
}

// within "A" view

echo $this->Form->input('A_B.A_id', array('type'=>'hidden' , 'value'=>
$AId));
echo $this->Form->input('A_B.B_id', array('type'=>'hidden' , 'value'=>
$BId));

...

thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


config.php debug =2 But no debug data

2010-09-04 Thread hvannia
Hi,
Here comes a very basic question, but here it goes..
I had a fresh cake installation and I added some files data from
another (backup) cake app.
Did not mess around with baked controllers, models and views, but
added default.ctp, a Css file and as far as I can recall that's it.

Now i dont see any debig data a at the bottom of the screen.
Checked the confg file and debug=2, also added Config write debug 2 on
the app_controller but still no data.

Im having a hard time developing w/o looking at the queries, any
ideas??

thanks

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


ajax call, "with" for data serialization - how to handle array

2010-09-04 Thread Mariano C.
I've an ajax link like this:

echo $ajax->link('remove', array(
'controller' => 'posts',
'action' => 'remove',
$id
),
array(
'update' => 'ajaxContent',
'with' => '{
username: "'.$user.'",
page: "'.$page.'",
sort: [\'ab\', \'cd\'],
direction: [12, 23]
}'
)
);

In controller I debug $this->params['form'] and response is:
Array
(
[username] => admin
[page] => 1
[sort] => cd
[direction] => 23
)

As you can see, sort and direction just store last item of serialized
element (cd and 23), how can I code the with parameter to render an
array of all sort and direction elements???

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


RE: Alternate Pagination question

2010-09-04 Thread Dave Maharaj
Thanks for the code. I ended up with something very similar, 
I just ran a query finding first record starting with letter while looping
thru the alphabet (cache query so it only runs once like yours) then pass it
off as an array 0 or 1 for each letter if has record it becomes a link if 0
then just the letter to my alpha_paging helper and that's pretty much it.

Dave



Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: my happiness!

2010-09-04 Thread cricket
It's happened to a lot of people in Google Groups.

On Sat, Sep 4, 2010 at 6:52 AM, Sohei Okamoto  wrote:
> My apologies to everyone who got the following spam message.
> My account got compromised somehow.
> I hope it didn't cause any trouble to anyone, and it won't happen again
> (changed password).
> I'm really sorry about this. Thank you very much.
>
> Sohei
>
> -Original Message-
> From: Sohei Okamoto [mailto:soh...@gmail.com]
> Sent: Friday, September 03, 2010 12:49 PM
> Subject: my happiness!
>
> Dear friend,
> A good news for you! I bought a laptop from Frioffere. Luckily, I was one of
> their first 100 customers that day, so they sold it to me at half price.
> Only 5 days later, I received my laptop. It is really high-quality.
> Same products, much lower prices! Share my happiness quickly. Come to
> visit   www.frioffere.org They also sell mobiles, cameras and other
> electronic products. Now they have a promotion: every day the first
> 100 customers will be given big discount.
> Good luck!
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>
> 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.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Alternate Pagination question

2010-09-04 Thread cricket
On Fri, Sep 3, 2010 at 4:52 PM, Dave Maharaj  wrote:
> Has anyone created,  thought of , started on the idea of an alphabetical
> character paging system?
>
> So rather than 1 | 2 | 3 it spits out A |B |C?

I did that awhile ago. It originally was a non-Cake site and I had
most of the legwork done directly in Postgres. When I moved the site
to Cake I had to switch to MySQL. But it all works very well. It's
lengthy, so I posted it here:
http://pastebin.com/F8gNPVNp

I edited things a wee bit to generalise because the actual app is
pretty complex.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: pageTitle

2010-09-04 Thread hoss7
thank you

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


RE: my happiness!

2010-09-04 Thread Sohei Okamoto
My apologies to everyone who got the following spam message.
My account got compromised somehow.
I hope it didn't cause any trouble to anyone, and it won't happen again
(changed password).
I'm really sorry about this. Thank you very much.

Sohei

-Original Message-
From: Sohei Okamoto [mailto:soh...@gmail.com] 
Sent: Friday, September 03, 2010 12:49 PM
Subject: my happiness!

Dear friend,
A good news for you! I bought a laptop from Frioffere. Luckily, I was one of
their first 100 customers that day, so they sold it to me at half price.
Only 5 days later, I received my laptop. It is really high-quality.
Same products, much lower prices! Share my happiness quickly. Come to
visit   www.frioffere.org They also sell mobiles, cameras and other
electronic products. Now they have a promotion: every day the first
100 customers will be given big discount.
Good luck!

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: pageTitle

2010-09-04 Thread Tilen Majerle
in controller's method do this:

{{{
$this->set("title_for_layout", "yourtitle");
}}}

then in the view or layout:

{{{
print title_for_layout;
}}}
--
LP,
Tilen Majerle http://majerle.eu


2010/9/4 hoss7 

> i want show page title what i am must to do?
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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.comFor
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Internal Error 500 with debug 0

2010-09-04 Thread Tomek Mazur
Problem solved. Details on my blog:
http://tomaszmazur.eu/artykul/44-CakePHP-IdeaCache-Internal-Server-Error-500

For non-polish readers, the reason for this in my case is something
called IdeaCache. To solve this problem i had to hack the core,
replacing a few lines in /cake/libs/cake_log.php

from

if (!defined('DISABLE_DEFAULT_ERROR_HANDLING')) {
set_error_handler(array('CakeLog', 'handleError'));
}

to

if (!defined('DISABLE_DEFAULT_ERROR_HANDLING')) {
$cakeLog =& CakeLog::getInstance();
set_error_handler(array(&$cakeLog, 'handleError'));
}

Tickets for this have already been filed.
http://cakephp.lighthouseapp.com/projects/42648/tickets/923

On 30 Sie, 13:14, Tomek Mazur  wrote:
> Hello,
>
> I have this problem after moving my app to the production server. If I
> have debug = 1 or debug = 2 everything works ok. If I switch debug to
> 0 I get an Internal Error 500. I should add that everything works fine
> on localhost, no matter what the debug is. Maybe someone can point me
> in the direction i should be looking? I read about changing
> RewriteBase in .htaccess but that doesnt seem to work.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


pageTitle

2010-09-04 Thread hoss7
i want show page title what i am must to do?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en