Re: Screencasts lack audio
Beautiful work PhpNut, very happy to see the docs and vids come together. That's one thing that makes me very excited about this project. Constant updates. Every time I come back to the site there's more content to help me on my way. Keep up the good work :-) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Following blog tutorial.... problem
Have you created the table and fields in mysql that are required? If so, could you post the code that you are having trouble with? modmans2ndcoming wrote: > I followed the blog tutorial, everything is in the same case and same > plurality (singular or plural where specified) but once I set up the > view I got an error: > > No Database table for model Post (expected "posts"), create it first. > > I have tried playing with the model and the best I can do is to get it > to say: > > No class found for the model Post > > What the heck went wrong? > > thanks, > > Jeremy --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Getting errors when session expires
ok, I figured it out. The problem was caused by mysql v4.1. I had 'CAKE_SESSION_SAVE' set to 'database'. Once I switched that back to 'php', everything went back to normal. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Getting errors when session expires
I've setup a test user. Go to www.alliancegameservers.com, click client login and enter this: Login Name: test Password: test Now wait 10 seconds, then hit your browsers refresh button. Look at the top of the page and you'll see what I'm talking about. It's not loading my controllers action. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Getting errors when session expires
Sorry, I didn't make myself too clear in that last post. I still get the 'The requested address %s was not found on this server.' error. So my problem is: Why doesn't cake pull/access the controller/action when I refresh the page after a session expires? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Getting errors when session expires
ok, I've gone through my code and checked to make sure that (isset($action_name)), so those error don't appear if the controller/action is not called. So my problem is: Why doesn't cake pull/access the controller/action when I refresh the page after a session expires? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Getting errors when session expires
I'll try to make this as clear as possible. I created a variable in every controller using this statement: $this->set('current_action', 'action_name'); Some of my elements use $action_name. My problem happens when my session expires. When I go to a different page after leaving my computer for a few minutes, it seems that cake doesn't call the action in that controller. I get a 'The requested address %s was not found on this server.' error, and my elements have a 'Notice: Undefined variable: action_name' error, which leads me to believe that when the session ends, cake can't call the controller/action. Do you know what might cause this problem? If you'd like to see some code let me know. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Do you need a view for every action?
Thank you very much for the response. That info will come in very handy :-) I've been coding like a mad man since I've posted this, and have made many changes. I must have fixed the problem that was causing the 'Unable to load controller' during my travels, as it has not happened in a few hours. I must have fixed an error somewhere and not realized it lol. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Do you need a view for every action?
I've just tested it with just a '/' in the flash $this->flash('You are now logged out. Click here to return to the home page.', '/'); and it works fine. I have modified the 'routes.php' file so the root is /newsblogs/index before this problem arose. What is the problem with the code I posted above? Right now it fits my purposes to a point, but in the future I want to return the user to the page/action/view that they were on when they clicked the login or logout link, so I'm going to need to use the syntax I posted above in the future. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Do you need a view for every action?
If a controller is going to do a simple action and then send a flash, does there need to be a view? I'm creating a login/logout script, and the logout action just removes the logged in key from the session and flashes the user to the home page, yet when it gets back to the home page, it can't initialize the home controller. It gives the 'Fatal: Unable to load controller' error, but the home page works other times. I think it might be because I didn't create a view for the logout action, but I'm not sure. I've only been messing with cake for about a week now, and this is the first project I'm trying to do that doesn't mirror the tut's, so I'm still getting used the in's and out's of cake. Would having the link in the flash end in '/' cause a problem, i.e. $this->flash('You are now logged out. Click here to return to the home page.', '/newsblogs/index/'); I've tried it with and without the ending '/', but with the same results. As a side note, I randomly get the 'Fatal: Unable to load controller' error, mainly on my 'index' page, and I just have to refresh the page and it works. What would be the reason for that as well? Is it a bug in cake? Let me know if you want to see some code. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Installed Cake in subdirectory, shared hosting
Good to know. I've actualy just reached the part of the tutorial that shows you how to use the helpers. I plan on making that a practice in all my future code. Thanks for the feedback :-) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Installed Cake in subdirectory, shared hosting
ok, I think I solved my problem. Following the link, I was using the tag ''>'. Once I changed it to ''>', everything worked out fine. I just had to add the '/' in front of my subdirectory so Cake wouldn't look at it like an action in my controller. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Installed Cake in subdirectory, shared hosting
I'm also using CakePHP v0.10.5.1701_beta. Is that not the most recent stable version? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Installed Cake in subdirectory, shared hosting
I'm using the dev setup, so those folders are in the same directory, but they are in a subdirectory on my web server, and cake is trying to link to the root directory. I have the code exactly as shown in example A.4 on this page (http://manual.cakephp.org/pages/apas08), yet the links are going to 'mysite.com/posts/view/1', rather than 'mysite.com/cake_blog/posts/view/1'. I'm not sure about the AllowOverride setting though, and I'm not sure if I made myself clear enough in my first post. Would that still cause this problem? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Installed Cake in subdirectory, shared hosting
I'm working on the first 'Cake Blog' tutorial in the manual, and I've uploaded Cake to a subdirectory (cake_blog). I don't have access to change the server include path directives because I'm using a hosting company. Is there a config that I can alter to let cake know that it should look in the subdirectory for all calls? I've looked in 'core.php', and noticed the 'define ('BASE_URL', $_SERVER['SCRIPT_NAME']);' entry, but I'd like to use mod_rewrite (I'm not familiar with it, but it's working fine). Any suggestions? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---