Re: Help / Source code for Simple Authentication tutorial

2014-01-01 Thread Squix

 This error appears at every syntax or logic errors with the Auth 
component. To fix it, simply track the errors (it can be a semi-colon !)

 Squix

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Help / Source code for Simple Authentication tutorial

2013-02-28 Thread Scott Tobias
I had this problem and fixed it

in my AppController.php file  I had:
 class AppController extends Controller {

  public $components=array('DebugKit.Toolbar');
  public $helpers = array('Html', 'Form', 'Session');
  public $components = array('Session');

Removing the last 2 lines to a different controller (UsersController.php in 
my case)   got rid of the error :)



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help / Source code for Simple Authentication tutorial

2013-02-03 Thread Omega
I'm having the exact same error message and can't seem to resolve it. 
Did you ever find the solution? It sounds like you went through the same 
trouble.

  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Help / Source code for Simple Authentication tutorial

2012-12-20 Thread OxfordRob
@cricket - thank you for that explanation of a several points. I made the 
changes as you suggested but still no joy.

Here is the Apache log from when I finished last night...

[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP Fatal error:  
Class 'AppController' not found in 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Controller/CakeErrorController.php on 
line 31
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP Stack trace:
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   1. {main}() 
/var/www/cakephp-2.3.0-RC1/app/webroot/index.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   2. 
Dispatcher-dispatch() /var/www/cakephp-2.3.0-RC1/app/webroot/index.php:97
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   3. 
Dispatcher-_getController() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:152
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   4. 
Dispatcher-_loadController() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:228
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   5. 
class_exists() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:259
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   6. App::load() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   7. include() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:540
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   8. App::load() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   9. 
App::shutdown() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  10. 
App::_checkFatalError() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:899
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  11. 
call_user_func() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:926
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  12. 
ErrorHandler::handleError() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  13. 
ErrorHandler::handleFatalError() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:161
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  14. 
call_user_func() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:211
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  15. 
ErrorHandler::handleException() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  16. 
ExceptionRenderer-__construct() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:125
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  17. 
ExceptionRenderer-_getController() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ExceptionRenderer.php:94
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  18. App::load() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
[Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  19. include() 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:560


On Wednesday, 19 December 2012 21:57:26 UTC, cricket wrote:

 On Wed, Dec 19, 2012 at 3:13 PM, OxfordRob pest...@gmail.comjavascript: 
 wrote: 
  I have a clue... The line: 
  
  App::uses('AuthComponent', 'Controller/Component'); 

 The error msg you posted has nothing to do with AuthComponent. 

  looks as if it is referring to a library component within the folder 
  'Controller/Component'... 
  
  But I only have one file in that folder called 'empty' 

 That's for your application Components. The 'empty' file is there 
 because the Cake devs use Git, which, among other sucky things, can't 
 deal with empty folders. 

  Does that suggest something is missing? Do components have to be 
 downloaded 
  and installed separately? 

 The components that come with Cake, including Auth, are under the lib 
 directory. Store any other components you wish to use under 
 app/Controller/Components. 

 As for you AppController iussues, try setting these in 
 app/Config/core.php: 

 Configure::write('debug', 2); 
 Configure::write('Cache.disable', true); 

 Then delete all the files in the app/tmp/cache/persistent directory. 


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Help / Source code for Simple Authentication tutorial

2012-12-20 Thread Sam Sherlock
@OxfordRob where are the Controller Classes currently they (Users  App
controllers) should be in

app/Controller/

 - S


On 20 December 2012 20:03, OxfordRob pestle...@gmail.com wrote:

 @cricket - thank you for that explanation of a several points. I made the
 changes as you suggested but still no joy.

 Here is the Apache log from when I finished last night...

 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP Fatal error:
 Class 'AppController' not found in
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Controller/CakeErrorController.php on
 line 31
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP Stack trace:
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   1. {main}()
 /var/www/cakephp-2.3.0-RC1/app/webroot/index.php:0
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   2.
 Dispatcher-dispatch() /var/www/cakephp-2.3.0-RC1/app/webroot/index.php:97
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   3.
 Dispatcher-_getController()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:152
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   4.
 Dispatcher-_loadController()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:228
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   5.
 class_exists()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:259
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   6. App::load()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   7. include()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:540
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   8. App::load()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP   9.
 App::shutdown() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  10.
 App::_checkFatalError() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:899
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  11.
 call_user_func() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:926
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  12.
 ErrorHandler::handleError()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  13.
 ErrorHandler::handleFatalError()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:161
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  14.
 call_user_func()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:211
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  15.
 ErrorHandler::handleException()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:0
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  16.
 ExceptionRenderer-__construct()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:125
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  17.
 ExceptionRenderer-_getController()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ExceptionRenderer.php:94
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  18. App::load()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0
 [Wed Dec 19 20:49:25 2012] [error] [client 127.0.0.1] PHP  19. include()
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:560


 On Wednesday, 19 December 2012 21:57:26 UTC, cricket wrote:

 On Wed, Dec 19, 2012 at 3:13 PM, OxfordRob pest...@gmail.com wrote:
  I have a clue... The line:
 
  App::uses('AuthComponent', 'Controller/Component');

 The error msg you posted has nothing to do with AuthComponent.

  looks as if it is referring to a library component within the folder
  'Controller/Component'...
 
  But I only have one file in that folder called 'empty'

 That's for your application Components. The 'empty' file is there
 because the Cake devs use Git, which, among other sucky things, can't
 deal with empty folders.

  Does that suggest something is missing? Do components have to be
 downloaded
  and installed separately?

 The components that come with Cake, including Auth, are under the lib
 directory. Store any other components you wish to use under
 app/Controller/Components.

 As for you AppController iussues, try setting these in
 app/Config/core.php:

 Configure::write('debug', 2);
 Configure::write('Cache.**disable', true);

 Then delete all the files in the app/tmp/cache/persistent directory.

  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 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
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.




-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received 

Re: Help / Source code for Simple Authentication tutorial

2012-12-19 Thread OxfordRob
As a follow upI am suspicious in this area

The tutorial says To add this component to your application *open* your 
app/Controller/AppController.php file and *add* the following lines:

But this is the first mention of an 'AppController.php' file.

So I just created an 'AppController.php' file and put in the code, but that 
does not feel right to me.

I already have a 'UsersController.php' file that contains the class 
definition:

class UsersController extends AppController 

So that makes me thing that 'AppController' is a pre-defined class in cake. 
Am I meant to be overloading this class?

Something seems wrong.

Any ideas please?


On Wednesday, 19 December 2012 12:24:34 UTC, OxfordRob wrote:

 Folks,

 I successfully worked through the blog tutorial and everything worked fine.

 I then moved onto the Authentication example / tutorial here...but can't 
 make it work..


 http://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html

 I get a gibberish error message when I access the page... (Copied below) 
 which does not give me any real clues about what I have done wrong.

 Does anybody know where to download the full source code for this example? 
 Or, if you have made this work, would you post it please?

 Any clues about how to read the error message below, and where I might 
 start looking would be very gratefully received!

 I have attached zip of my /app directory. 

 Thanks for any help!


 *Error message:* on accessing URL: 
 http://localhost/cakephp-2.3.0-RC1/users/add 

 Fatal error: Class declarations may not be nested in 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ExceptionRenderer.php on line 55 
 Call Stack: 0.0014 354512 1. {main}() 
 /var/www/cakephp-2.3.0-RC1/app/webroot/index.php:0 0.1175 2937464 2. 
 Dispatcher-dispatch() /var/www/cakephp-2.3.0-RC1/app/webroot/index.php:97 
 0.1438 3490652 3. Dispatcher-_getController() 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:152 0.1438 
 3490652 4. Dispatcher-_loadController() 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:228 0.1440 
 3491896 5. class_exists() 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Routing/Dispatcher.php:259 0.1440 
 3492168 6. App::load() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0 
 0.1458 3537372 7. App::shutdown() 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0 0.1468 3537344 8. 
 App::_checkFatalError() 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:899 0.1470 3538456 9. 
 call_user_func() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:926 
 0.1470 3538500 10. ErrorHandler::handleError() 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0 0.1471 3538992 11. 
 ErrorHandler::handleFatalError() 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:161 0.1481 
 3548532 12. call_user_func() 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:211 0.1481 
 3548560 13. ErrorHandler::handleException() 
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Error/ErrorHandler.php:0 0.1488 3550236 
 14. App::load() /var/www/cakephp-2.3.0-RC1/lib/Cake/Core/App.php:0 



-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Help / Source code for Simple Authentication tutorial

2012-12-19 Thread Jonathan Sundquist
The AppController.php is part of the default download of CakePHP in all
versions. I just downloaded a fresh copy of CakePHP 2.3.0-RC1 and within
the app/Controllers directory there is in fact an AppController.php file.
 You shouldn't need to re-create the file unless you deleted it.


On Wed, Dec 19, 2012 at 8:23 AM, OxfordRob pestle...@gmail.com wrote:

 As a follow upI am suspicious in this area

 The tutorial says To add this component to your application *open* your
 app/Controller/AppController.php file and *add* the following lines:

 But this is the first mention of an 'AppController.php' file.

 So I just created an 'AppController.php' file and put in the code, but
 that does not feel right to me.

 I already have a 'UsersController.php' file that contains the class
 definition:

 class UsersController extends AppController

 So that makes me thing that 'AppController' is a pre-defined class in
 cake. Am I meant to be overloading this class?

 Something seems wrong.

 Any ideas please?



 On Wednesday, 19 December 2012 12:24:34 UTC, OxfordRob wrote:

 Folks,

 I successfully worked through the blog tutorial and everything worked
 fine.

 I then moved onto the Authentication example / tutorial here...but can't
 make it work..

 http://book.cakephp.org/2.0/**en/tutorials-and-examples/**
 blog-auth-example/auth.htmlhttp://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html

 I get a gibberish error message when I access the page... (Copied below)
 which does not give me any real clues about what I have done wrong.

 Does anybody know where to download the full source code for this
 example? Or, if you have made this work, would you post it please?

 Any clues about how to read the error message below, and where I might
 start looking would be very gratefully received!

 I have attached zip of my /app directory.

 Thanks for any help!


 *Error message:* on accessing URL: http://localhost/cakephp-2.3.**
 0-RC1/users/add http://localhost/cakephp-2.3.0-RC1/users/add

 Fatal error: Class declarations may not be nested in
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Error/**ExceptionRenderer.php on
 line 55 Call Stack: 0.0014 354512 1. {main}() /var/www/cakephp-2.3.0-RC1/
 **app/webroot/index.php:0 0.1175 2937464 2. Dispatcher-dispatch()
 /var/www/cakephp-2.3.0-RC1/**app/webroot/index.php:97 0.1438 3490652 3.
 Dispatcher-_getController() /var/www/cakephp-2.3.0-RC1/**
 lib/Cake/Routing/Dispatcher.**php:152 0.1438 3490652 4.
 Dispatcher-_loadController() /var/www/cakephp-2.3.0-RC1/**
 lib/Cake/Routing/Dispatcher.**php:228 0.1440 3491896 5. class_exists()
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Routing/Dispatcher.**php:259
 0.1440 3492168 6. App::load() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:0
 0.1458 3537372 7. App::shutdown() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:0
 0.1468 3537344 8. App::_checkFatalError() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:899
 0.1470 3538456 9. call_user_func() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:926
 0.1470 3538500 10. ErrorHandler::handleError() /var/www/cakephp-2.3.0-RC1/
 **lib/Cake/Core/App.php:0 0.1471 3538992 11. 
 ErrorHandler::**handleFatalError()
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Error/ErrorHandler.**php:161
 0.1481 3548532 12. call_user_func() /var/www/cakephp-2.3.0-RC1/**
 lib/Cake/Error/ErrorHandler.**php:211 0.1481 3548560 13.
 ErrorHandler::handleException(**) /var/www/cakephp-2.3.0-RC1/**
 lib/Cake/Error/ErrorHandler.**php:0 0.1488 3550236 14. App::load()
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:0

  --
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 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
 cake-php+unsubscr...@googlegroups.com.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.




-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: Help / Source code for Simple Authentication tutorial

2012-12-19 Thread OxfordRob
@jsundquist - that was helpful, thank you. I had deleted the file - and the 
one I had created was missing:

App::uses('Controller', 'Controller');

I am still seeing the long string of error messages however.

Fatal error: Class 'AppController' not found in 
/var/www/cakephp-2.3.0-RC1/lib/Cake/Controller/CakeErrorController.php on 
line 31 Call Stack: 0.0009 354512 1. {main}() 
/var/www/cakephp-2.3.0-RC1/app/webroot/index.php:0 0.0896 2939480 2.  
etc

I am finding it very hard to make any sense of these error messages. They 
are no very 'diagnostic'. Is there any way of getting more useful 
information about where the error might be? I can't see any of my file 
names in there, and I can't even see where one error item starts and 
another ends







On Wednesday, 19 December 2012 14:27:34 UTC, jsundquist wrote:

 The AppController.php is part of the default download of CakePHP in all 
 versions. I just downloaded a fresh copy of CakePHP 2.3.0-RC1 and within 
 the app/Controllers directory there is in fact an AppController.php file. 
  You shouldn't need to re-create the file unless you deleted it.


 On Wed, Dec 19, 2012 at 8:23 AM, OxfordRob pest...@gmail.comjavascript:
  wrote:

 As a follow upI am suspicious in this area

 The tutorial says To add this component to your application *open* your 
 app/Controller/AppController.php file and *add* the following lines:

 But this is the first mention of an 'AppController.php' file.

 So I just created an 'AppController.php' file and put in the code, but 
 that does not feel right to me.

 I already have a 'UsersController.php' file that contains the class 
 definition:

 class UsersController extends AppController 

 So that makes me thing that 'AppController' is a pre-defined class in 
 cake. Am I meant to be overloading this class?

 Something seems wrong.

 Any ideas please?



 On Wednesday, 19 December 2012 12:24:34 UTC, OxfordRob wrote:

 Folks,

 I successfully worked through the blog tutorial and everything worked 
 fine.

 I then moved onto the Authentication example / tutorial here...but can't 
 make it work..

 http://book.cakephp.org/2.0/**en/tutorials-and-examples/**
 blog-auth-example/auth.htmlhttp://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html

 I get a gibberish error message when I access the page... (Copied below) 
 which does not give me any real clues about what I have done wrong.

 Does anybody know where to download the full source code for this 
 example? Or, if you have made this work, would you post it please?

 Any clues about how to read the error message below, and where I might 
 start looking would be very gratefully received!

 I have attached zip of my /app directory. 

 Thanks for any help!


 *Error message:* on accessing URL: http://localhost/cakephp-2.3.**
 0-RC1/users/add http://localhost/cakephp-2.3.0-RC1/users/add 

 Fatal error: Class declarations may not be nested in 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Error/**ExceptionRenderer.php on 
 line 55 Call Stack: 0.0014 354512 1. {main}() /var/www/cakephp-2.3.0-RC1/
 **app/webroot/index.php:0 0.1175 2937464 2. Dispatcher-dispatch() 
 /var/www/cakephp-2.3.0-RC1/**app/webroot/index.php:97 0.1438 3490652 3. 
 Dispatcher-_getController() /var/www/cakephp-2.3.0-RC1/**
 lib/Cake/Routing/Dispatcher.**php:152 0.1438 3490652 4. 
 Dispatcher-_loadController() /var/www/cakephp-2.3.0-RC1/**
 lib/Cake/Routing/Dispatcher.**php:228 0.1440 3491896 5. class_exists() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Routing/Dispatcher.**php:259 
 0.1440 3492168 6. App::load() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:0 
 0.1458 3537372 7. App::shutdown() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:0 
 0.1468 3537344 8. App::_checkFatalError() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:899 
 0.1470 3538456 9. call_user_func() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:926 
 0.1470 3538500 10. ErrorHandler::handleError() /var/www/cakephp-2.3.0-RC1/
 **lib/Cake/Core/App.php:0 0.1471 3538992 11. 
 ErrorHandler::**handleFatalError() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Error/ErrorHandler.**php:161 
 0.1481 3548532 12. call_user_func() /var/www/cakephp-2.3.0-RC1/**
 lib/Cake/Error/ErrorHandler.**php:211 0.1481 3548560 13. 
 ErrorHandler::handleException(**) /var/www/cakephp-2.3.0-RC1/**
 lib/Cake/Error/ErrorHandler.**php:0 0.1488 3550236 14. App::load() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:0 

  -- 
 Like Us on FaceBook https://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP
  
 --- 
 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To post to this group, send email to cake...@googlegroups.comjavascript:
 .
 To unsubscribe from this group, send email to 
 cake-php+u...@googlegroups.com javascript:.
 Visit this group at http://groups.google.com/group/cake-php?hl=en.
  
  




-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find 

Re: Help / Source code for Simple Authentication tutorial

2012-12-19 Thread Jonathan Sundquist
The message is still pretty clear. That's a standard php debug message. No
way of changing the information present.

As far as what that is telling you, its saying it still cannot find your
AppController.
On Dec 19, 2012 12:55 PM, OxfordRob pestle...@gmail.com wrote:

 @jsundquist - that was helpful, thank you. I had deleted the file - and
 the one I had created was missing:

 App::uses('Controller', 'Controller');

 I am still seeing the long string of error messages however.

 Fatal error: Class 'AppController' not found in
 /var/www/cakephp-2.3.0-RC1/lib/Cake/Controller/CakeErrorController.php on
 line 31 Call Stack: 0.0009 354512 1. {main}()
 /var/www/cakephp-2.3.0-RC1/app/webroot/index.php:0 0.0896 2939480 2. 
 etc

 I am finding it very hard to make any sense of these error messages. They
 are no very 'diagnostic'. Is there any way of getting more useful
 information about where the error might be? I can't see any of my file
 names in there, and I can't even see where one error item starts and
 another ends







 On Wednesday, 19 December 2012 14:27:34 UTC, jsundquist wrote:

 The AppController.php is part of the default download of CakePHP in all
 versions. I just downloaded a fresh copy of CakePHP 2.3.0-RC1 and within
 the app/Controllers directory there is in fact an AppController.php file.
  You shouldn't need to re-create the file unless you deleted it.


 On Wed, Dec 19, 2012 at 8:23 AM, OxfordRob pest...@gmail.com wrote:

 As a follow upI am suspicious in this area

 The tutorial says To add this component to your application *open*your
 app/Controller/AppController.**php file and *add* the following lines:

 But this is the first mention of an 'AppController.php' file.

 So I just created an 'AppController.php' file and put in the code, but
 that does not feel right to me.

 I already have a 'UsersController.php' file that contains the class
 definition:

 class UsersController extends AppController

 So that makes me thing that 'AppController' is a pre-defined class in
 cake. Am I meant to be overloading this class?

 Something seems wrong.

 Any ideas please?



 On Wednesday, 19 December 2012 12:24:34 UTC, OxfordRob wrote:

 Folks,

 I successfully worked through the blog tutorial and everything worked
 fine.

 I then moved onto the Authentication example / tutorial here...but
 can't make it work..

 http://book.cakephp.org/2.0/**en**/tutorials-and-examples/**blog-**
 auth-example/auth.htmlhttp://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html

 I get a gibberish error message when I access the page... (Copied
 below) which does not give me any real clues about what I have done wrong.

 Does anybody know where to download the full source code for this
 example? Or, if you have made this work, would you post it please?

 Any clues about how to read the error message below, and where I might
 start looking would be very gratefully received!

 I have attached zip of my /app directory.

 Thanks for any help!


 *Error message:* on accessing URL: http://localhost/cakephp-2.3.**0**
 -RC1/users/add http://localhost/cakephp-2.3.0-RC1/users/add

 Fatal error: Class declarations may not be nested in
 /var/www/cakephp-2.3.0-RC1/**lib**/Cake/Error/**ExceptionRenderer.**php
 on line 55 Call Stack: 0.0014 354512 1. {main}() 
 /var/www/cakephp-2.3.0-RC1/
 **app**/webroot/index.php:0 0.1175 2937464 2. Dispatcher-dispatch()
 /var/www/cakephp-2.3.0-RC1/**app**/webroot/index.php:97 0.1438 3490652
 3. Dispatcher-_getController() /var/www/cakephp-2.3.0-RC1/**lib**
 /Cake/Routing/Dispatcher.**php:**152 0.1438 3490652 4.
 Dispatcher-_loadController() /var/www/cakephp-2.3.0-RC1/**lib**
 /Cake/Routing/Dispatcher.**php:**228 0.1440 3491896 5. class_exists()
 /var/www/cakephp-2.3.0-RC1/**lib**/Cake/Routing/Dispatcher.**php:**259
 0.1440 3492168 6. App::load() 
 /var/www/cakephp-2.3.0-RC1/**lib**/Cake/Core/App.php:0
 0.1458 3537372 7. App::shutdown() 
 /var/www/cakephp-2.3.0-RC1/**lib**/Cake/Core/App.php:0
 0.1468 3537344 8. App::_checkFatalError() /var/www/cakephp-2.3.0-RC1/**
 lib**/Cake/Core/App.php:899 0.1470 3538456 9. call_user_func()
 /var/www/cakephp-2.3.0-RC1/**lib**/Cake/Core/App.php:926 0.1470
 3538500 10. ErrorHandler::handleError() /var/www/cakephp-2.3.0-RC1/**
 lib**/Cake/Core/App.php:0 0.1471 3538992 11. ErrorHandler::**
 handleFatalError**() /var/www/cakephp-2.3.0-RC1/**lib**
 /Cake/Error/ErrorHandler.**php:**161 0.1481 3548532 12.
 call_user_func() /var/www/cakephp-2.3.0-RC1/**lib**
 /Cake/Error/ErrorHandler.**php:**211 0.1481 3548560 13.
 ErrorHandler::handleException() /var/www/cakephp-2.3.0-RC1/**lib**
 /Cake/Error/ErrorHandler.**php:0 0.1488 3550236 14. App::load()
 /var/www/cakephp-2.3.0-RC1/**lib**/Cake/Core/App.php:0

  --
 Like Us on FaceBook 
 https://www.facebook.com/**CakePHPhttps://www.facebook.com/CakePHP
 Find us on Twitter http://twitter.com/CakePHP

 ---
 You received this message because you are subscribed to the Google
 Groups CakePHP 

Re: Help / Source code for Simple Authentication tutorial

2012-12-19 Thread Jonathan Sundquist
What does your current AppController look like?

A stripped down version should look like this

?php
App::uses('Controller','Controller');
class AppController extends Controller{
}



On Wed, Dec 19, 2012 at 1:38 PM, OxfordRob pestle...@gmail.com wrote:

 @jsundquist - Thank you - that makes sense, I can see that information at
 the part of the error string.

 If I look at my cake folder structure, the file seems to be there (see
 attached picture). I am sure that file contains the class definition:

 class AppController extends Controller { ... etc.

 But it does not seem to be found by cake.

 I would think that somehow I have set it up so that cake is looking in the
 wrong place for this file. But that seems odd as the early part of the blog
 tutorial was working before I stated adding the authentication code.




 On Wednesday, 19 December 2012 19:04:10 UTC, jsundquist wrote:

 The message is still pretty clear. That's a standard php debug message.
 No way of changing the information present.

 As far as what that is telling you, its saying it still cannot find your
 AppController.
 On Dec 19, 2012 12:55 PM, OxfordRob pest...@gmail.com wrote:

 @jsundquist - that was helpful, thank you. I had deleted the file - and
 the one I had created was missing:

 App::uses('Controller', 'Controller');

 I am still seeing the long string of error messages however.

 Fatal error: Class 'AppController' not found in
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Controller/**CakeErrorController.php
 on line 31 Call Stack: 0.0009 354512 1. {main}() /var/www/cakephp-2.3.0-RC1/
 **app/webroot/index.php:0 0.0896 2939480 2.  etc

 I am finding it very hard to make any sense of these error messages.
 They are no very 'diagnostic'. Is there any way of getting more useful
 information about where the error might be? I can't see any of my file
 names in there, and I can't even see where one error item starts and
 another ends







 On Wednesday, 19 December 2012 14:27:34 UTC, jsundquist wrote:

 The AppController.php is part of the default download of CakePHP in all
 versions. I just downloaded a fresh copy of CakePHP 2.3.0-RC1 and within
 the app/Controllers directory there is in fact an AppController.php file.
  You shouldn't need to re-create the file unless you deleted it.


 On Wed, Dec 19, 2012 at 8:23 AM, OxfordRob pest...@gmail.com wrote:

 As a follow upI am suspicious in this area

 The tutorial says To add this component to your application *open*your
 app/Controller/AppController.**p**hp file and *add* the following
 lines:

 But this is the first mention of an 'AppController.php' file.

 So I just created an 'AppController.php' file and put in the code, but
 that does not feel right to me.

 I already have a 'UsersController.php' file that contains the class
 definition:

 class UsersController extends AppController

 So that makes me thing that 'AppController' is a pre-defined class in
 cake. Am I meant to be overloading this class?

 Something seems wrong.

 Any ideas please?



 On Wednesday, 19 December 2012 12:24:34 UTC, OxfordRob wrote:

 Folks,

 I successfully worked through the blog tutorial and everything worked
 fine.

 I then moved onto the Authentication example / tutorial here...but
 can't make it work..

 http://book.cakephp.org/2.0/**en/tutorials-and-examples/**blog-**
 a**uth-example/auth.htmlhttp://book.cakephp.org/2.0/en/tutorials-and-examples/blog-auth-example/auth.html

 I get a gibberish error message when I access the page... (Copied
 below) which does not give me any real clues about what I have done 
 wrong.

 Does anybody know where to download the full source code for this
 example? Or, if you have made this work, would you post it please?

 Any clues about how to read the error message below, and where I
 might start looking would be very gratefully received!

 I have attached zip of my /app directory.

 Thanks for any help!


 *Error message:* on accessing URL: http://localhost/cakephp-2.3.**0**
 **-RC1/users/add http://localhost/cakephp-2.3.0-RC1/users/add

 Fatal error: Class declarations may not be nested in
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Error/**ExceptionRenderer.*
 ***php on line 55 Call Stack: 0.0014 354512 1. {main}()
 /var/www/cakephp-2.3.0-RC1/**app/webroot/index.php:0 0.1175
 2937464 2. Dispatcher-dispatch() /var/www/cakephp-2.3.0-RC1/**app***
 */webroot/index.php:97 0.1438 3490652 3.
 Dispatcher-_getController() /var/www/cakephp-2.3.0-RC1/**lib
 /Cake/Routing/Dispatcher.**php:**1**52 0.1438 3490652 4.
 Dispatcher-_loadController() /var/www/cakephp-2.3.0-RC1/**lib
 /Cake/Routing/Dispatcher.**php:**2**28 0.1440 3491896 5.
 class_exists() /var/www/cakephp-2.3.0-RC1/**lib
 /Cake/Routing/Dispatcher.**php:**2**59 0.1440 3492168 6. App::load()
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:0 0.1458
 3537372 7. App::shutdown() 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Core/App.php:0
 0.1468 3537344 8. App::_checkFatalError() 

Re: Help / Source code for Simple Authentication tutorial

2012-12-19 Thread OxfordRob
Here it is:

?php
/**
 * Application level Controller
 *
 * This file is application-wide controller file. You can put all
 * application-wide controller-related methods here.
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. 
(http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. 
(http://cakefoundation.org)
 * @link  http://cakephp.org CakePHP(tm) Project
 * @package   app.Controller
 * @since CakePHP(tm) v 0.2.9
 * @license   MIT License 
(http://www.opensource.org/licenses/mit-license.php)
 */


/**
 * Application Controller
 *
 * Add your application-wide methods in the class below, your controllers
 * will inherit them.
 *
 * @package   app.Controller
 * @link http://book.cakephp.org/2.0/en/controllers.html#the-app-controller
 */

App::uses('Controller', 'Controller');

class AppController extends Controller {

public $components = array(
'Session',
'Auth' = array(
'loginRedirect' = array('controller' = 'posts', 'action' = 
'index'),
'logoutRedirect' = array('controller' = 'pages', 'action' = 
'display', 'home')
'authorize' = array('Controller') // Added this line
)
);

public function beforeFilter() {
$this-Auth-allow('index', 'view');
}

public function isAuthorized($user) {
// Admin can access every action
if (isset($user['role'])  $user['role'] === 'admin') {
return true;
}

// Default deny
return false;
}
}

On Wednesday, 19 December 2012 19:46:02 UTC, jsundquist wrote:

 What does your current AppController look like?

 A stripped down version should look like this

 ?php
 App::uses('Controller','Controller');
 class AppController extends Controller{
 }



 On Wed, Dec 19, 2012 at 1:38 PM, OxfordRob pest...@gmail.comjavascript:
  wrote:

 @jsundquist - Thank you - that makes sense, I can see that information at 
 the part of the error string.

 If I look at my cake folder structure, the file seems to be there (see 
 attached picture). I am sure that file contains the class definition:

 class AppController extends Controller { ... etc.

 But it does not seem to be found by cake.

 I would think that somehow I have set it up so that cake is looking in 
 the wrong place for this file. But that seems odd as the early part of the 
 blog tutorial was working before I stated adding the authentication code.




 On Wednesday, 19 December 2012 19:04:10 UTC, jsundquist wrote:

 The message is still pretty clear. That's a standard php debug message. 
 No way of changing the information present. 

 As far as what that is telling you, its saying it still cannot find your 
 AppController.
 On Dec 19, 2012 12:55 PM, OxfordRob pest...@gmail.com wrote:

 @jsundquist - that was helpful, thank you. I had deleted the file - and 
 the one I had created was missing:

 App::uses('Controller', 'Controller');

 I am still seeing the long string of error messages however.

 Fatal error: Class 'AppController' not found in 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Controller/**CakeErrorController.php 
 on line 31 Call Stack: 0.0009 354512 1. {main}() 
 /var/www/cakephp-2.3.0-RC1/
 **app/webroot/index.php:0 0.0896 2939480 2.  etc

 I am finding it very hard to make any sense of these error messages. 
 They are no very 'diagnostic'. Is there any way of getting more useful 
 information about where the error might be? I can't see any of my file 
 names in there, and I can't even see where one error item starts and 
 another ends







 On Wednesday, 19 December 2012 14:27:34 UTC, jsundquist wrote:

 The AppController.php is part of the default download of CakePHP in 
 all versions. I just downloaded a fresh copy of CakePHP 2.3.0-RC1 and 
 within the app/Controllers directory there is in fact an 
 AppController.php 
 file.  You shouldn't need to re-create the file unless you deleted it.


 On Wed, Dec 19, 2012 at 8:23 AM, OxfordRob pest...@gmail.com wrote:

 As a follow upI am suspicious in this area

 The tutorial says To add this component to your application *open*your 
 app/Controller/AppController.**p**hp file and *add* the following 
 lines:

 But this is the first mention of an 'AppController.php' file.

 So I just created an 'AppController.php' file and put in the code, 
 but that does not feel right to me.

 I already have a 'UsersController.php' file that contains the class 
 definition:

 class UsersController extends AppController 

 So that makes me thing that 'AppController' is a pre-defined class in 
 cake. Am I meant to be overloading this class?

 Something seems wrong.

 Any ideas please?



 On Wednesday, 19 December 2012 12:24:34 UTC, OxfordRob wrote:

 Folks,

 I successfully worked through 

Re: Help / Source code for Simple Authentication tutorial

2012-12-19 Thread OxfordRob
I have a clue... The line:

App::uses('AuthComponent', 'Controller/Component');

looks as if it is referring to a library component within the folder 
'Controller/Component'...

But I only have one file in that folder called 'empty' 

Does that suggest something is missing? Do components have to be downloaded 
and installed separately?


On Wednesday, 19 December 2012 19:57:07 UTC, OxfordRob wrote:

 Here it is:

 ?php
 /**
  * Application level Controller
  *
  * This file is application-wide controller file. You can put all
  * application-wide controller-related methods here.
  *
  * PHP 5
  *
  * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
  * Copyright 2005-2012, Cake Software Foundation, Inc. (
 http://cakefoundation.org)
  *
  * Licensed under The MIT License
  * Redistributions of files must retain the above copyright notice.
  *
  * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (
 http://cakefoundation.org)
  * @link  http://cakephp.org CakePHP(tm) Project
  * @package   app.Controller
  * @since CakePHP(tm) v 0.2.9
  * @license   MIT License (
 http://www.opensource.org/licenses/mit-license.php)
  */


 /**
  * Application Controller
  *
  * Add your application-wide methods in the class below, your controllers
  * will inherit them.
  *
  * @package   app.Controller
  * @link 
 http://book.cakephp.org/2.0/en/controllers.html#the-app-controller
  */

 App::uses('Controller', 'Controller');

 class AppController extends Controller {

 public $components = array(
 'Session',
 'Auth' = array(
 'loginRedirect' = array('controller' = 'posts', 'action' = 
 'index'),
 'logoutRedirect' = array('controller' = 'pages', 'action' = 
 'display', 'home')
 'authorize' = array('Controller') // Added this line
 )
 );

 public function beforeFilter() {
 $this-Auth-allow('index', 'view');
 }

 public function isAuthorized($user) {
 // Admin can access every action
 if (isset($user['role'])  $user['role'] === 'admin') {
 return true;
 }

 // Default deny
 return false;
 }
 }

 On Wednesday, 19 December 2012 19:46:02 UTC, jsundquist wrote:

 What does your current AppController look like?

 A stripped down version should look like this

 ?php
 App::uses('Controller','Controller');
 class AppController extends Controller{
 }



 On Wed, Dec 19, 2012 at 1:38 PM, OxfordRob pest...@gmail.com wrote:

 @jsundquist - Thank you - that makes sense, I can see that information 
 at the part of the error string.

 If I look at my cake folder structure, the file seems to be there (see 
 attached picture). I am sure that file contains the class definition:

 class AppController extends Controller { ... etc.

 But it does not seem to be found by cake.

 I would think that somehow I have set it up so that cake is looking in 
 the wrong place for this file. But that seems odd as the early part of the 
 blog tutorial was working before I stated adding the authentication code.




 On Wednesday, 19 December 2012 19:04:10 UTC, jsundquist wrote:

 The message is still pretty clear. That's a standard php debug message. 
 No way of changing the information present. 

 As far as what that is telling you, its saying it still cannot find 
 your AppController.
 On Dec 19, 2012 12:55 PM, OxfordRob pest...@gmail.com wrote:

 @jsundquist - that was helpful, thank you. I had deleted the file - 
 and the one I had created was missing:

 App::uses('Controller', 'Controller');

 I am still seeing the long string of error messages however.

 Fatal error: Class 'AppController' not found in 
 /var/www/cakephp-2.3.0-RC1/**lib/Cake/Controller/**CakeErrorController.php
  
 on line 31 Call Stack: 0.0009 354512 1. {main}() 
 /var/www/cakephp-2.3.0-RC1/
 **app/webroot/index.php:0 0.0896 2939480 2.  etc

 I am finding it very hard to make any sense of these error messages. 
 They are no very 'diagnostic'. Is there any way of getting more useful 
 information about where the error might be? I can't see any of my file 
 names in there, and I can't even see where one error item starts and 
 another ends







 On Wednesday, 19 December 2012 14:27:34 UTC, jsundquist wrote:

 The AppController.php is part of the default download of CakePHP in 
 all versions. I just downloaded a fresh copy of CakePHP 2.3.0-RC1 and 
 within the app/Controllers directory there is in fact an 
 AppController.php 
 file.  You shouldn't need to re-create the file unless you deleted it.


 On Wed, Dec 19, 2012 at 8:23 AM, OxfordRob pest...@gmail.com wrote:

 As a follow upI am suspicious in this area

 The tutorial says To add this component to your application *open*your 
 app/Controller/AppController.**p**hp file and *add* the following 
 lines:

 But this is the first mention of an 'AppController.php' file.

 So I just created an 'AppController.php' file and put in 

Re: Help / Source code for Simple Authentication tutorial

2012-12-19 Thread lowpass
On Wed, Dec 19, 2012 at 3:13 PM, OxfordRob pestle...@gmail.com wrote:
 I have a clue... The line:

 App::uses('AuthComponent', 'Controller/Component');

The error msg you posted has nothing to do with AuthComponent.

 looks as if it is referring to a library component within the folder
 'Controller/Component'...

 But I only have one file in that folder called 'empty'

That's for your application Components. The 'empty' file is there
because the Cake devs use Git, which, among other sucky things, can't
deal with empty folders.

 Does that suggest something is missing? Do components have to be downloaded
 and installed separately?

The components that come with Cake, including Auth, are under the lib
directory. Store any other components you wish to use under
app/Controller/Components.

As for you AppController iussues, try setting these in app/Config/core.php:

Configure::write('debug', 2);
Configure::write('Cache.disable', true);

Then delete all the files in the app/tmp/cache/persistent directory.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
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 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.