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.)
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
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
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
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...
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:
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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.
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
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*/
101 - 123 of 123 matches
Mail list logo