Problema de migracion a otro isp. CORE/cake/libs/cake_session.php

2012-11-22 Thread Oscar Lastera
Hola,

Estoy migrando a otro isp un sistema Cake.
Me da varios errores que tiene pinta de ser de lo mismo. 
¿Como puedo solventar este error?
Gracias a todos.

[http://php.net/function.session-start]: 
open(/home/imcb/tmp/sess_t6p9j5a42rla2l6h085pplm302, O_RDWR) failed: Permission 
denied (13) [*CORE/cake/libs/cake_session.php*, line *584*]

[http://php.net/function.session-write-close]: Failed to write session data 
(files). Please verify that the current setting of session.save_path is correct 
(/home/imcb/tmp) [*CORE/cake/libs/cake_session.php*, line *216*


*Warning* (2): session_write_close() 
[http://php.net/function.session-write-close]: 
open(/home/imcb/tmp/sess_t6p9j5a42rla2l6h085pplm302, O_RDWR) failed: Permission 
denied (13) [*CORE/cake/libs/cake_session.php*, line *216*]


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

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




large pdf

2012-05-04 Thread oscar aguilar morales

Hello. I've been using cakephp for 2 years, but now I'm working with a kind of 
huge database almost 600,000 , With this system the user need to be able to 
download a pdf file can reach 100,000 so with these creating a script for 
writing the pdf file would crash with the server. But I have put attention to 
the way the xampp make a script of a database downloadable ,it seems like the 
the server create the file on the client side, please I would like to know if 
you know how to deal with it and if so, where I can read more about this topic, 
Thanks For Your Time :)

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


RE: Bake

2011-02-07 Thread oscar aguilar morales

Ok. if u are working on u machine u need to add a global variable to the system 
, i Would like to explain it to you but i don't know if u understand english in 
this case gimme another email and i'll put the steps to make the baking ñ_ñ

From: sam.sherl...@gmail.com
Date: Mon, 7 Feb 2011 20:07:40 +
Subject: Re: Bake
To: cake-php@googlegroups.com

Are you getting any error messages at all

is it working correctly via http? - S






2011/2/7 alexsandro andre 


Boa tarde pessoal!
tava lendo essa seção do bake 
http://book.cakephp.org/pt/view/1522/Gera%C3%A7%C3%A3o-de-c%C3%B3digo-com-o-Bake
 mas não consigo chegar nesse resultado para criar o model view controler.



Já consigui criar o projeto e configurar a base de dados. Alguém pode dar uma 
dica?

Atenciosamente,

Alexsandro André
Joinville - SC
47-8825-0133









-- 

Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 

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

 

 

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








-- 

Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 

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

 

 

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
  

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


RE: Warning (2): Cannot modify header information - headers already sent by

2010-08-19 Thread oscar aguilar morales

THE PROBLEM IS THAT U A PRINTINT SOMETHING IN THE ACTION WHERE YOU A REDIRECTO 
TO OTHER  ACTION, MAYBE YOU A PRINTING AN ARRAY O AN ALERT WITH JAVASCRIPT, 
WHEN U WANT TO REDIRECT TO OTHER ACTION U CAN NOT PRINTING ANYTHING, I HAVE 
TASTED IT

From: vrh2...@gmail.com
Date: Tue, 17 Aug 2010 17:10:51 +0530
Subject: Re: Warning (2): Cannot modify header information - headers already 
sent by
To: cake-php@googlegroups.com

Comment all print and echo in your script. Kind Regards


Vikas.R.Hanagodimath



On Tue, Aug 17, 2010 at 04:47, milos  wrote:



I have just descovered something very important. My controller was working just 
fine with all redirect etc. After I changed the controller file to utf8 and 
whenever I had a redirect or session command it gave me information already 
send by my controller file.

It is because I change it to utf8. I changed it back to ansi and it was all ok.
It is very hard to see this error because part of controller does work. 
Probably when notepad++ changed my file to ut8 it added some chars which are 
not readable to us, but are to the server.

Check this when you get an error



View this message in context: Re: Warning (2): Cannot modify header information 
- headers already  sent by



Sent from the CakePHP mailing list archive at Nabble.com.





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
  

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: Auth problem

2010-08-19 Thread oscar aguilar morales

YEAH, I LOG CORRECTLY, BUT IT DOES NOT HAPPEN ALWAYS JUST SOMETIMES, FIRST I 
THOUGHT ABOUT THE SESSION TIME, I CHANGED IT AT THE CORE TO 1000, BUT IT STILL 
DOING IT

> Date: Wed, 18 Aug 2010 11:16:57 -0300
> Subject: Re: Auth problem
> From: ham1...@gmail.com
> To: cake-php@googlegroups.com
> 
> I don't know :S, seems very strange. You can log in right? (If you try
> to enter a view that is not allowed by the Auth component and you are
> not logged in you will be redirected).
> 
> 2010/8/17 Oscar :
> > Hello, I'm having problems with the Auth component it seems that the
> > session get lost because, I get out every time I use the aplication,
> > does someone have an idead about this problem?
> >
> > 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
  

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 problem

2010-08-17 Thread Oscar
Hello, I'm having problems with the Auth component it seems that the
session get lost because, I get out every time I use the aplication,
does someone have an idead about this problem?

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


Componente Auth

2010-08-17 Thread Oscar
Buen día, empecé a utilizar el framework cakephp hace unos meses y
actualmente he concluido con una aplicación, en esta manejo el
componente Auth, pero al parecer hay un pequeño bug que no he logrado
detectar, el problema radica en que se pierde la sessión y por lo
tanto me saca del servidor, es decir me redirecciona al login de mi
sitio, ¿alguien tiene alguna idea de cual pudiera ser el problema?

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: Using UploadBehavior by AD7Six

2008-10-23 Thread Oscar


On 23 Okt, 12:20, Oscar <[EMAIL PROTECTED]> wrote:
> As the model for my attached documents, I 
> usehttp://trac.assembla.com/mi/browser/branches/base/models/attachment.php
> (just changed the Belongs to to the name of my user model).

I did change $actsAs from "ImageUpload" to "Upload" here. The strange
thing is that if I use "ImageUploadBehavior", it creates different
sized images as expected, but this is what "function view" in
"UploadBehavior" expects (a file named _large at the end).

Anyway, I also found that "SluggedBehavior" needs  "mode"=>"ascii" in
my case, since using swedish characters in the description makes
attachments_controller::view redirect in all eternity.

I would think that some people would be using this?
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Using UploadBehavior by AD7Six

2008-10-23 Thread Oscar

Hi everybody

Trying to use the stuff from Andy, more specific his UploadBehavior. I
started out with http://www.ad7six.com/MiBlog/GenericFileUploadBehavior,
but moved over to checking out http://trac.assembla.com/mi/browser/branches/base
as the code there seemed more polished and 1.2-ish.

My first task is to upload and attach documents (not images) to one of
my models, so, I have these files (just for reference really):

http://trac.assembla.com/mi/browser/branches/base/models/behaviors/upload.php
and its dependencies (slugged and polymorphic).

As the model for my attached documents, I use
http://trac.assembla.com/mi/browser/branches/base/models/attachment.php
(just changed the Belongs to to the name of my user model).

Then, I have the attachments controller:
http://trac.assembla.com/mi/browser/branches/base/controllers/attachments_controller.php

I think that's all the files, yeah, plus the views for attachment as
well.

Uploading and associating works great, using /admin/attachments/add/
Model/1 for example, the problem I have is serving up the documents, I
don't quite understand how to do this.

http://trac.assembla.com/mi/browser/branches/base/controllers/attachments_controller.php#L259
shows the function for doing this, problem is that this only works
with images, not documents? Line 306 checks for the filename and _
$size, which doesn't exist when uploading files, thus it never finds
the file. In the "old" files (Generic Upload Behavior), /files was
routed to view with size set to "Original" if I remember correctly,
but I can't see how to do that with this new code.

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



Some questions about best practice when dealing with ACL

2008-03-09 Thread Oscar

Hi everybody!

I've been struggling for a while now implementing a good Auth/ACL base
for our application, using the built in components of CakePHP 1.2
(using SVN trunk).

I've read all tutorials I could find, and got a fairly good
understanding on how stuff works, but I'm having a hard time finding
information on good practice when designing the ACOs (AROs seem pretty
straight forward, using a group as parent, although I ran into
problems when editing a user and updating the Role, opened up ticket
#4261 for that).

The main question I have is how people generally solve the issue with
a user being able to edit their own records (posts, profiles and so
on). As far as I can see, this isn't possible when using
authorize=actions with the Auth component (see Ticket #3857. The patch
doesn't work, but is easily fixed). Is this correct? Is it just not
implemented yet, won't be supported or is it possible in some other
way I have missed (most likely hehe)?

Following that layout, you would need to create an ACO for every
action possible for a record right? So, for example, three ACOs if a
user would be able to delete, read and edit it? Guess that's no real
problem though, but there will be quite a few ACOs after a while :)

Also, another thing that I haven't been able to find any definitive
answer to is how the alias field is used. Basically, does it need to
be unique? Does it need to follow any other standards to make things
automagically just work?

Thanks for your time!

Best regards, Oscar Carlsson

--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: Error disabling debug

2007-08-20 Thread Oscar Burgos

I´m just getting the same error and behavior with a new model I have
just added and I don´t know why it´s happening..

On 20 ago, 19:44, Darko Romanov <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I can't understand the following behaviour... If I set DEBUG to 1 in
> core.php I can delete a 'product' simply calling, for 
> i.e.,http://cake.local/products/delete/66. The function in
> products_controller is:
>
> function delete($id)
> {
> $this->Product->del($id);
>
> }
>
> but when I set DEBUG to 0 I get this error message (http 404):
>
> Notfound
> Therequestedaddressdelete wasnotfoundon this server.
>
> I couldn't find any help around this ng nor with google..
>
> tnx
> 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?hl=en
-~--~~~~--~~--~--~---



visit counter

2007-07-30 Thread Oscar Burgos

any sugestion about the best place to embed to code for visit counter
like google analytics or something like that?

thank you

Óscar


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



save select

2007-06-25 Thread Oscar Burgos

hi all bakers...I need a little help

I have declare two selectTag in my form and I need to save all values
from the second select not just selected.

any sugestions?? thank 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?hl=en
-~--~~~~--~~--~--~---



pass data from list to list

2007-06-14 Thread Oscar Burgos

Hi bakers...I need a little help...

I have two models: Team and Player with it relations defined. In my
new Team view I want to add which players belong to a Team. I fill a
listbox with all players -solved- and I want to pass the selected
players -with a button- to another listbox which values should be
saved after submit form. I supose I need to use javascript but...

how must I define the button to pass the data? where should i define
the javascript function to do that?

thank 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?hl=en
-~--~~~~--~~--~--~---



Using PhpgaclHtmlHelper helper

2007-06-05 Thread Oscar Burgos

Hi

I´ve been digging in phpGacl to learn how to do somethings

I want to use PhpgaclHtmlHelper so I have copy the file to my views/
helper directory. In my controller I have declare de variable var
$helpers = array( 'PhpgaclHtml' );

but when I try to use $phpgaclHtml in the view I get this error
Undefined variable: phpgaclHtml

any idea of what I´m doing wrong??

thank 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?hl=en
-~--~~~~--~~--~--~---



Re: AppController

2007-06-03 Thread Oscar Burgos

oh my god !!! i have been so stupid !!! my app_controller.php was in
app/controllers and again, again, again...

thank you

On 3 jun, 17:51, francky06l <[EMAIL PROTECTED]> wrote:
> app/app_controller.php
>
> On Jun 3, 2:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Is AppController.php in the right location? I believe it should be:
> > app/AppController.php
>
> > On Jun 2, 10:47 pm, Oscar Burgos <[EMAIL PROTECTED]> wrote:
>
> > > hi, (again)
>
> > > I have a little trouble
>
> > > I´m trying to redefine the AppController but it´s not being executed
> > > and I don´t know why???
>
> > > it is in the correct place..
>
> > > it´s as simple as this...
>
> > > class AppController extends Controller {
> > >   function beforeRender() {
> > > die("ok");
> > >   }
>
> > > }
>
> > > but it doesn´t diewhy??
>
> > > thaks.


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Re: AppController

2007-06-03 Thread Oscar Burgos

Yes it´s is in the right place but it´s not being executed and I don´t
know why

On 3 jun, 17:51, francky06l <[EMAIL PROTECTED]> wrote:
> app/app_controller.php
>
> On Jun 3, 2:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Is AppController.php in the right location? I believe it should be:
> > app/AppController.php
>
> > On Jun 2, 10:47 pm, Oscar Burgos <[EMAIL PROTECTED]> wrote:
>
> > > hi, (again)
>
> > > I have a little trouble
>
> > > I´m trying to redefine the AppController but it´s not being executed
> > > and I don´t know why???
>
> > > it is in the correct place..
>
> > > it´s as simple as this...
>
> > > class AppController extends Controller {
> > >   function beforeRender() {
> > > die("ok");
> > >   }
>
> > > }
>
> > > but it doesn´t diewhy??
>
> > > thaks.


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



AppController

2007-06-02 Thread Oscar Burgos

hi, (again)

I have a little trouble

I´m trying to redefine the AppController but it´s not being executed
and I don´t know why???

it is in the correct place..

it´s as simple as this...

class AppController extends Controller {
  function beforeRender() {
die("ok");
  }
}

but it doesn´t diewhy??

thaks.


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



dAuth 0.3...Undefined variable?

2007-06-02 Thread Oscar Burgos

Hi:

I´m using dAuth 0.3 for my website.

Authentication is done perfectty but if I want to know the name of the
user who has logged in called userinfo element from the layout doing
$this->renderElement('userinfo') i get this messege

Undefined variable: User in ...views\elements\userinfo.thtml on line
20

I dig in userinfo.thml and the message reffer to $User variable and in
the line above there is an advertisement

/* Keep in mind this will only work if you use $userDataInView in the
component */

I dig more in the component and there is a line like this var
$userDataInView = array('unset'=>array('password'));

but how must i do this? do i have to declar User variable in the
AppController?

Thank 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?hl=en
-~--~~~~--~~--~--~---



menu

2007-05-25 Thread Oscar Burgos

I´m trying to develop a menu based on a Categories tables. The
elements of the menu are in a tabla called Items. In Items table there
is FK categories_id to relate each item with his category.

I want to show something like this

Category 1
  Item 1 C1
  Item 2 C1

Category 2
  Item 1 C2
  Item 1 C2

I know how to read the category table, but I need to read the items of
the category just readed. how must I do it?

Thank you from Spain


--~--~-~--~~~---~--~~
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?hl=en
-~--~~~~--~~--~--~---



Manual de Cake PHP en Español

2006-06-22 Thread Oscar Rada

Hola, quisiera saber si alguien me puede ayudar porque necesito un
manual de Cake PHP en Español. Voy a empezar a trabajar con ese
framework y no he trabajado nunca con Frameworks de ningun tipo.
Gracias


--~--~-~--~~~---~--~~
Ha recibido este mensaje porque está suscrito a Grupos de Google "Cake PHP" 
grupo.
 Si quiere publicar en este grupo, mande un correo electrónico a 
cake-php@googlegroups.com
 Para anular la suscripción a este grupo, envíe un mensaje a [EMAIL PROTECTED]
 Para visualizar más opciones, visite este grupo 
enhttp://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---