Launched a new cake app

2009-05-16 Thread Miles J
I redid one of my old sites in CakePHP, it can be found here: http://www.sc2armory.com/ Another app of mine is: http://www.gamesync.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to thi

Re: Calling method in associated controller

2009-05-16 Thread matt
The upload method is empty right now. I can't even figure out how to access the piece's associated image(s). I can get the image data, but when I try to call upload() I get an error about calling a method on a non-object, so I'm not getting the actual image object, only its data. I feel like I'

Re: Creating pages without models/controllers

2009-05-16 Thread matt
If I understand your question properly, you can use the Pages controller.. Just put your views in view/pages and they will be available at /pages/. If you aren't happy with having "pages" in your url you can use the router to make it look prettier. On May 16, 4:32 pm, hahmadi82 wrote: > How do

Re: Calling method in associated controller

2009-05-16 Thread Miles J
Can we see your upload method? If you want multiple controllers to use the method, place the method in the appcontroller or make a component. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post t

Calling method in associated controller

2009-05-16 Thread matt
Hi all, I am still pretty new to CakePHP and I can't seem to figure this one out for the life of me. I am writing an admin site to manage a collection of art pieces which will be available on the front end of the site. I have a pieces controller, and an images controller. A piece "hasMany" imag

Re: what do you use to deploy?

2009-05-16 Thread majna
Check out fredistrano http://code.google.com/p/fredistrano/ SVN is compatible with all files... On May 16, 7:53 pm, adam wrote: > I currently use FileZilla and Windows Explorer.  My IDE of choice is > eclipse, but have never used any integrated features or plugins for > deployment/synchronizing

Re: api.cakephp.org still broken

2009-05-16 Thread mark_story
Sure, there is an open bug on the firefox bugzilla. https://bugzilla.mozilla.org/show_bug.cgi?id=215055 Which has been open for 6 years. Firefox uses a 16bit api in windows to render elements with scroll bars. However the 16bit api runs out of numbers after 16384. So the rest of the box is no

Creating pages without models/controllers

2009-05-16 Thread hahmadi82
How do I create a page in cakephp that can get data from various classes/models/controllers without having to create a set of models and controllers for the page itself? I have set up all my models/controllers/views/indexes for everything in my database and now I want to start pulling that da

Re: Installing CakePHP to mediatemple(dv) issue

2009-05-16 Thread leafchild
httpdocs/cake/app I just entire folder as it unzipped and also I did same to the different server and everything was fine. I have this issue with mediatemple and still no chance to figure this out yet. On May 16, 1:59 am, Miles J wrote: > What is your full cake setup, like where are your app

what do you use to deploy?

2009-05-16 Thread adam
I currently use FileZilla and Windows Explorer. My IDE of choice is eclipse, but have never used any integrated features or plugins for deployment/synchronizing localhost and webhost. I use Dreamhost, and I know they offer SVN as a feature, but was scared away by SVN's incompatibility with .htac

Re: Configure::write('Session.start', true); does *NOT* turn sessions on but session_start() does.

2009-05-16 Thread Miles J
Put your security level to low and see what happens. On May 16, 8:33 am, Charles wrote: > I am echoing the session and nothing happens, it keeps resetting > itself. > > On May 16, 3:58 am, Miles J wrote: > > > And how do you know your sessions aren't started, what exactly happens? --~--~---

debug = 0 -> Layout problem

2009-05-16 Thread elmurci
Hi, After setting debug to 0 all pages are loaded without layout. Any ideas? Thanks --~--~-~--~~~---~--~~ 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 T

Re: Configure::write('Session.start', true); does *NOT* turn sessions on but session_start() does.

2009-05-16 Thread Charles
I am echoing the session and nothing happens, it keeps resetting itself. On May 16, 3:58 am, Miles J wrote: > And how do you know your sessions aren't started, what exactly happens? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Appropriate requestAction() alternative required

2009-05-16 Thread Braindead
Have a look at the Cake based Neutrino CMS: http://dsi.vozibrale.com/articles/view/neutrinocms-0-1-beta-has-been-released It uses a component to get these kind of data. I use this approach all the time and it works like a charme. Markus --~--~-~--~~~---~--~~ You re

Re: data not write in excel sheet on server

2009-05-16 Thread Braindead
You should have a look at PHPExcel. It's a very good class for creating Excel sheets on the fly. http://www.codeplex.com/PHPExcel Hope that helps. Markus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" grou

Re: CakePHP validates invalid data

2009-05-16 Thread jitka (poLK)
or $form->create('Users' instead of 'User' --~--~-~--~~~---~--~~ 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

Re: CakePHP validates invalid data

2009-05-16 Thread jitka (poLK)
> Array > ( > [Users] => Array It should be 'User', so it tells me you're using $form->input ('Users.email' instead of 'User.email' etc in view. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. T

Re: Not fully understanding associations. Id showing instead of name.

2009-05-16 Thread j0n4s.h4rtm...@googlemail.com
Is the name field a varchar255 not null or tinytext? Try using cake bake to create your starting environment and work from there On May 15, 5:38 pm, number9 wrote: > Actually I tried displayfield earlier when I was searching, but it > didn't work, presumably because: "The model will use name or

Re: How manage triple relation between Model in CAKEPHP?

2009-05-16 Thread j0n4s.h4rtm...@googlemail.com
Like this?: Message HasOne User (From) Message HasOne ToUser (To) Message HasOne CcUser (Copy) In message.php: var $belongsTo = array( 'User' => array( 'className' => 'User', 'foreignKey' => 'user_id',

CakePHP validates invalid data

2009-05-16 Thread Roman Brunnemann
Hi, strange behaviour I got in my register-form. I have a form that collect some basic data: Sourcecode: when I submit the form, the output of print_r($this->data) is the following: Array ( [Users] => Array ( [title] => Mr [firstname] => test

Re: Installing CakePHP to mediatemple(dv) issue

2009-05-16 Thread Miles J
What is your full cake setup, like where are your app folders located? --~--~-~--~~~---~--~~ 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 fro

Re: Configure::write('Session.start', true); does *NOT* turn sessions on but session_start() does.

2009-05-16 Thread Miles J
And how do you know your sessions aren't started, what exactly happens? --~--~-~--~~~---~--~~ 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 fr

Re: Check user session

2009-05-16 Thread Miles J
If you mean you only want a single user account to be able to login at one time, you would have to store a unique session id with the user (in the db). Then do a check to see if the ids match, if they dont log em out. --~--~-~--~~~---~--~~ You received this message

Re: Check user session

2009-05-16 Thread Faza
maybe try this: function login() { if (($this->Auth->user() ) && !($this->Session->read('Auth.User.online'))){ $this->Session->write('Auth.User.online', true); $this->Session->write('Auth.User.host', {function of your choice}); $this->redire

Re: Problems with belongTo and hasMany

2009-05-16 Thread Faza
or try using containable behavior: http://book.cakephp.org/view/474/Containable hahmadi82 pisze: > bump > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to c

Re: last_login update

2009-05-16 Thread Faza
This is the code I'm using, works 100%. function login() { $this->layout = 'login'; if ($this->Auth->user()) { $this->User->id = $this->Auth->user('id'); $this->User->saveField('last_visit', 'now()'); $gr = $this->User->Group->findById($this->A