Re: CakePHP Setup, Need Help Please

2008-01-20 Thread longint
Ok, disregard my last message. All set! On Jan 19, 10:45 pm, longint [EMAIL PROTECTED] wrote: Hi Folks, Brand spankin' new to PHP CakePHP.  Coming over from ASP.NET to explore.  I'm following the Blog tutorial from the Cake site and here's what happens: 1.) Move it to the webroot. 2.)

Re: Help please for ultra-beginner

2007-12-12 Thread Sanfly
No good im afraid, same error, except ugroup_id is now ugroupid Notice: Undefined property: UsersController::$Ugroup in C:\server\www \cake\basic_site\plugins\users\controllers\users_controller.php on line 34 Fatal error: Call

Re: Help please for ultra-beginner

2007-12-12 Thread MrTufty
The error message you're getting tells you what the problem is... on line 34, you're referring to $this-Ugroup-findByUgroupid(). This would be fine, except that you haven't told cake to give you access to Ugroup in this way. I'm assuming you have a model for Ugroup, and that it's associated with

Re: Help please for ultra-beginner

2007-12-12 Thread avairet
Hello, My cake knowledge is limited too (2 months), but I think you must specify your 2 models in your controller. Something like that in PHP5 context: ? class UsersController extends AppController { public $uses = array('User','Ugroup'); } ? And maybe you should specify the association in

Re: Help please for ultra-beginner

2007-12-12 Thread avairet
Ok, that works! Very nice! But in this case, some of my find() or save() calls become more complex: $this-Model1-Model2-Model3-save(); And the resultsets of my find are now in the DESC order... Avairet On 12 déc, 15:54, avairet [EMAIL PROTECTED] wrote: Hi Mr Tufty, I didn't know that...

Re: Help please for ultra-beginner

2007-12-12 Thread avairet
I add another comment: if you are using Eclipse and PDT Eclipse, the autocompletion for model's methods in controller doesn't work again. On 12 déc, 16:07, avairet [EMAIL PROTECTED] wrote: Ok, that works! Very nice! But in this case, some of my find() or save() calls become more complex:

Re: Help please for ultra-beginner

2007-12-12 Thread Sanfly
Hi I had tried something similar to this before, using hasOne (ugroup) in the users model, and belongsTo (users) in the ugroup model. The code I had tried, and the one you suggested, both came up with a SQL error. Ive ended up solving this using Tuftys code, with the addition of this from

Help please for ultra-beginner

2007-12-11 Thread Sanfly
Hi Ive only just started mucking around with CakePHP, and am having a little trouble getting my head around the controllers and models thingees. YES - I have tried looking in the manual!! Im trying to make a cake website that will more or less mirror some normal-non-framework php sites I have

Help please! Enumerated fields do not seem to work in admin scaffold view in CakePHP 1.2...

2007-10-23 Thread Olaf Greve
Hi, Last week I gave CakePHP a first try, and then went for the stable 1.17 release. I created some tables, some scaffolded views, and as far as I remember, the enumerated DB fields all showed proper select fields in the edit screens. Now, I've upgraded to the yesterday's 1.2 alpha

Re: Help please! Enumerated fields do not seem to work in admin scaffold view in CakePHP 1.2...

2007-10-23 Thread Grant Cox
1. Cake does not officially support the ENUM or SET field type - apparently implementation is too different between database systems. 2. If they display as normal input fields then you would be able to edit them. Are you sure it isn't displaying as a multi-select list (which can look very

help please

2007-09-06 Thread Gayathiri
controllers instead of views? Can someone help please.. Thanks in advance, Gayathiri --~--~-~--~~~---~--~~ 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

Re: help please

2007-09-06 Thread rtconner
for login purpose. After user logs in ajax box is updated. But I need the entire page to be refreshed along with the ajax form update when user logs in. How do i do that? Is there a way to refresh a page from controllers instead of views? Can someone help please.. Thanks in advance, Gayathiri

How to implement a loading symbol for a html element- someone help please

2007-08-31 Thread Gayathiri
Hi, I am using a select menu in my webpage. When i select an item, all subitems under that are retrieved from database and is displayed in the select menu. Now, again user has to select a subitem from the menu. Then subsub items under that are retrieved from database again. It happens like this

Re: How to implement a loading symbol for a html element- someone help please

2007-08-31 Thread Samuel DeVore
http://ajaxian.com/archives/ajaxload-custom-loading-indicators and look at the example for http://api.cakephp.org/class_ajax_helper.html#7e2e659c88c9cd4d833d531417d7ae03 and then you just have a div with the animated gif in it with display:none as the style attr. On 8/31/07, Chris Hartjes

help please

2006-08-28 Thread checker
Hey guys I am having problems in using HABTM relationship.I am having problems while saving the data from the form to the three tables.Manual was not that helpful.So can anyone help me in this .Just great a form and show me how to save the data in the association table and the the two other

Re: help please

2006-08-28 Thread AD7six
Hi Checker, see http://manual.cakephp.org/chapter/models section Saving hasAndBelongsToMany for an example. Cheers, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,

Re: A little help please?

2006-07-10 Thread AD7six
Hi Sean, You need to create a model for your galleries and images (sounds like you did that already), If you define your gallery to hasMany Images, and your image to belongTo Gallery then you would only need code like this in your controller. function view ($id) { // there is no need to

Re: A little help please?

2006-07-10 Thread SeanCallan
Fantastic! Thanks for the help, I added in the hasMany and belongsTo and everything works perfectly! Thanks again AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send

A little help please?

2006-07-09 Thread SeanCallan
Hey guys, today's the first day I started learning CakePHP. I've got extensive experience with PHP and MySQL but some of the components of Cake are throwing me for a loop so maybe someone on here can help clarify. First off I'm just trying to write a quick gallery script that lets users create

CakePHP layout help please

2006-05-08 Thread tehsuck
I am just getting into Cake, and I really like it so far. It is going to speed up some of the work I do. Here is my problem though. I run a VPS, and since I have clients hosting with us, it's probably a good idea to keep the cake/cake files in a central place, so I put them in

Re: CakePHP layout help please

2006-05-08 Thread calzone
I'm no expert on this, but having just tried something similar, I discovered what may appears to be a bug with one of the core cake files: Check out: http://groups.google.com/group/cake-php/browse_thread/thread/a6e45271704f6798 Close to the bottom of the thread is an explanation.

Re: CakePHP layout help please

2006-05-08 Thread tehsuck
Ok, helping myself out here, but just in case anyone else is looking for the same info. I don't know if you can set CakePHP up like how I wanted to, so I went back to how the alternate config is setup in the manual and I did it that way. So in my case, I wanted http://www.jim.com/admin/ to be

Re: CakePHP layout help please

2006-05-08 Thread Larry E. Masters aka PhpNut
Why are you not using cake admin routes?Do you plan to have a non admin side to this app also, that will use the same controller names?-- /*** @author Larry E. Masters* @var string $userName * @param string $realName* @returns string aka PhpNut* @accesspublic*/

<    1   2