Re: Pages Controller problem

2007-01-21 Thread Jonathon Davis

So No one has an answer to this?


--~--~-~--~~~---~--~~
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: Pages Controller problem

2007-01-21 Thread Dr. Tarique Sani

On 1/22/07, Jonathon Davis [EMAIL PROTECTED] wrote:
  So No one has an answer to this?
I could not download your zip file for some reason - Can you paste
just the app_controller into the cake bin ?

Also did you try using loadModel('Setting');

Perhaps you can take a look at the code of app_controller for
Cheescake-photoblog where we are doing a similar thing via a component
and I do get all the settings in Pages controller as well

HTH
Tarique

-- 
=
PHP Applications for E-Biz: http://sanisoft.com
Cheesecake-Photoblog: http://cheesecake-photoblog.org
=

--~--~-~--~~~---~--~~
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: Pages Controller problem

2007-01-18 Thread Max


You can paste full code here.. This must not be a big problem..

BTW, Did you ever used bake ?


--~--~-~--~~~---~--~~
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: Pages Controller problem

2007-01-18 Thread Jonathon Davis


Well, I'm not sure what file the problem is in, so I zipped up the only
files it could really be a problem with and uploaded it on to this
group's files page.

http://groups-beta.google.com/group/cake-php/web/pages_controller_problem.zip

If someone could open it up and tell me what you think the problem is,
I would greatly appreciate it. Don't worry, I cut out everything except
for a few files. Zip file is under 100k I believe.

And yes, I've used bake for almost every model/view/controller that I
have, but the Pages Controller is a built-in controller, not one that I
created.


--~--~-~--~~~---~--~~
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: Pages Controller problem

2007-01-18 Thread Jonathon Davis


I have some insight. I realized this when I created another item in my
website... I think it may have to do with the Pages Controller not
having its own model. Anyone following me on this? I tried to create a
controller/view without a model (because I really don't need one in
this case) and it gave me the same error as the Pages Controller does.
I commented out the stuff for the settings and it displayed the Cake
warning of having no model. I created a model for it, uncommented the
stuff for the settings, and bada-bing. No error message.

Any way to combat this?


--~--~-~--~~~---~--~~
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: Pages Controller problem

2007-01-18 Thread Watts Martin


On Jan 18, 12:20 pm, Jonathon Davis [EMAIL PROTECTED] wrote:

I have some insight. I realized this when I created another item in my
website... I think it may have to do with the Pages Controller not
having its own model. Anyone following me on this? I tried to create a
controller/view without a model (because I really don't need one in
this case) and it gave me the same error as the Pages Controller does.
I commented out the stuff for the settings and it displayed the Cake
warning of having no model. I created a model for it, uncommented the
stuff for the settings, and bada-bing. No error message.

Any way to combat this?


The $uses variable is what you normally use in a controller without a
model, apparently. (I'm just learning this myself.) In your zip file,
you have pages_controller.php with the line:

var $uses = array('Page', 'Setting');

But there is no 'Page' model; in theory all you should have is

var $uses = array('Setting');

to make this work.

I'm confused by your earlier comment about putting that in
app_controller.php, though -- AFAIK, you shouldn't have to monkey
around in any of CakePHP's internals like that, and I suspect doing so
may be causing new mysterious errors for you rather than solving them.
I'd really suggest putting everything in the cake/libs/ directory back
the way it was.


--~--~-~--~~~---~--~~
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: Pages Controller problem

2007-01-18 Thread Jonathon Davis


Well, if that was the case, then it should have recognized $uses =
array('Setting', 'Link') in my app_controller.php file even before I
started modifying other things.


--~--~-~--~~~---~--~~
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: Pages Controller problem

2007-01-17 Thread Jonathon Davis


One other note, I am running version 1.1.10.3825. I wouldn't mind
upgrading as long as nothing changes in my app file structure/naming.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---