Re: PHP Fatal error: Class 'Router' not found in cake\libs\view\helper.php on line 178

2009-06-13 Thread AD7six
On Jun 13, 5:19 am, joshua josh...@gmail.com wrote: Hi Cakes, Is there anybody come across this problem? When I try to run cron job in cake console, it print out this error. PHP Fatal error:  Class 'Router' not found in cake\libs\view\helper.php on line 178 If I change to $html-link to

Re: Tough find query!

2009-06-13 Thread AD7six
On Jun 12, 7:16 pm, lavin carloslavi...@gmail.com wrote: Although I am new to cake, this SQL query could work with the query() function SELECT  t1.prod_id FROM    HABTMtable t1 WHERE   t1.user_id=1 AND     t1.prod_id IN                 (SELECT t2.prod_id                 FROM    

Re: PHP Fatal error: Class 'Router' not found in cake\libs\view\helper.php on line 178

2009-06-13 Thread joshua
Why if I change to $html-link to a href =''xxx/a, there will be no this error? Did that mean we couldn't use html helper in shell script? On Sat, Jun 13, 2009 at 2:01 PM, AD7six andydawso...@gmail.com wrote: On Jun 13, 5:19 am, joshua josh...@gmail.com wrote: Hi Cakes, Is there anybody

How using shells inside plugin directory

2009-06-13 Thread marco.rizze...@gmail.com
Hi I have installed a plugin in my cakephp app. Now inside this plugin there is a shell that helps to configure the plugin. My problem is that i don't know how tell to cake console to use this shell My shell is in app/plugins/media/vendors/shells Sorry for the banal question

Re: Auth Component Problem

2009-06-13 Thread cem
I have the same problem I cannot login either. But in your situation maybe you can de-activate the security component and try again ? On 13 Haziran, 06:40, Francisco Rivas friva...@gmail.com wrote: Yes, It's clear: Configure::write('Security.salt', ''); But I still cannot login. There're

Re: $javascript-event() with Event:Selectors

2009-06-13 Thread Nate Abele
It's possible that your event:Selectors and Prototype versions are out of sync. Do you have the latest of both? What does the JavaScript output from the helper look like? On Jun 12, 11:56 am, isho iri...@gmail.com wrote: Nate thanks for the reply. I tried using that syntax but it throws

Re: Auth Component Problem

2009-06-13 Thread Francisco Rivas
What do you mean with re-activate the security component?. Maybe the problem It's in the code. Thanks. 2009/6/13 cem cbay...@gmail.com I have the same problem I cannot login either. But in your situation maybe you can de-activate the security component and try again ? On 13 Haziran,

Re: PHP Fatal error: Class 'Router' not found in cake\libs\view\helper.php on line 178

2009-06-13 Thread Walther
Well, if you use a href =''xxx/a then it's not using the router is it? Why would you want to be outputting links in a shell script anyway? On Jun 13, 10:57 am, joshua josh...@gmail.com wrote: Why if I change to $html-link to a href =''xxx/a, there will be no this error? Did that mean we

Re: Big difference between CakePHP and Joomla

2009-06-13 Thread Walther
You need to know and understand PHP quite well to get the most from Cake. The Cake shells only help with creating a basic system for manipulating the database, it can not make any sort of serious functionality that you would normally need . On Jun 12, 12:06 pm, bbparis bilalbas...@gmail.com

Best approach?

2009-06-13 Thread Dave Maharaj :: WidePixels.com
I have an auth / acl setup and I want to set up where a user can select if they want their profile to be public or private. Public : anyone can view even if not logged into the site Private: must be logged in and permission check (like Hi5 or facebook) So whats the ideal way to approch

Re: $javascript-event() with Event:Selectors

2009-06-13 Thread isho
I figured it out. My actionscript needed to be 'element.select (.delete_action).invoke(hide)' element not this. Thanks for your help. On Jun 13, 6:18 am, Nate Abele nate.ab...@gmail.com wrote: It's possible that your event:Selectors and Prototype versions are out of sync.  Do you have the

Re: xml not parse correctly

2009-06-13 Thread lapinski
my_xml_file.xml is not a valid xml file. a valid xml file needs to have a root node. so if you modify the file to include a root node (such as root.../root) then the parsing should work. Lapinski robert123 wrote: i am using the below codes, took from the bakery, straight

Re: Auth Component Problem

2009-06-13 Thread Miles J
These should be the urls for the DESTINATION after you login or logout, not the pages themself: $this-Auth-loginRedirect = array('controller' = 'personas', 'action' = 'display', 'login'); $this-Auth-logoutRedirect = array('controller' = 'personas', 'action' = 'logout'); Remove these two lines

Re: Auth Component Problem

2009-06-13 Thread Francisco Rivas
Hi Miles, I don't understand about the destination you talking about because I want to redirect to a page called login.ctp and I understand that after you put your username and password you automaticaly go to that direction: $this-Auth-loginRedirect = array('controller' ='personas', 'action' =

Re: Auth Component Problem

2009-06-13 Thread Miles J
$this-Auth-loginRedirect is the page you are redirected to after you have successfully logged in. If the login page IS NOT the one you put in $this-Auth-loginRedirect, then disregard this. --~--~-~--~~~---~--~~ You received this message because you are subscribed

ACL requester wont work

2009-06-13 Thread Luos
Hello, i am making this tutorial: http://book.cakephp.org/view/645/Acts-As-a-Requester (http://book.cakephp.org/view/93/ACL) When im creating groups, there is nothing changing in the aro table (its still empty) AppController: class AppController extends Controller { var $components =

filter of results

2009-06-13 Thread in2lag
hi, i just start to use cake and my problem follows... i have a table lessons and questions, association is one-to-many (lesson has a lot of questions). i try in my controller of lesson filter questions like this: function category($id = null){ $this-set('lessons',

Re: PHP Fatal error: Class 'Router' not found in cake\libs\view\helper.php on line 178

2009-06-13 Thread Adam Royle
I found this problem too, when I was sending emails using a cron job, and needed to link back to the site. However there is an easy workaround. I am using the EmailTask from the Bakery, and added importing the router and routes definitions in here. ?php App::import('Core', 'Controller');

Re: ACL requester wont work

2009-06-13 Thread brian
On Sat, Jun 13, 2009 at 6:32 PM, Luosglp...@gmail.com wrote: Hello, i am making this tutorial: http://book.cakephp.org/view/645/Acts-As-a-Requester (http://book.cakephp.org/view/93/ACL) When im creating groups, there is nothing changing in the aro table (its still empty) AppController:

Re: PHP Fatal error: Class 'Router' not found in cake\libs\view\helper.php on line 178

2009-06-13 Thread joshua
Thanks Adam. It is the solution of this problem. It really save me a lot of time. [?] Hope the others who has the same question can find this ticket. On Sun, Jun 14, 2009 at 9:39 AM, Adam Royle a...@sleekgeek.com.au wrote: I found this problem too, when I was sending emails using a cron job,

Re: PHP Fatal error: Class 'Router' not found in cake\libs\view\helper.php on line 178

2009-06-13 Thread joshua
Yes, it is true. On Sun, Jun 14, 2009 at 1:09 AM, Walther waltherl...@gmail.com wrote: Well, if you use a href =''xxx/a then it's not using the router is it? Why would you want to be outputting links in a shell script anyway? On Jun 13, 10:57 am, joshua josh...@gmail.com wrote: Why if I

After auto redirect from another domain site, the session was lost

2009-06-13 Thread joshua
Hey Guys, Let me write down the steps to reproduce my problem: Reproduce steps: 1. Customer login my site( goog_1244938295219https://www.mysite.com); 2. Choose a product and redirect to Paypal sandbox site( https://developer.paypal.com/cgi-bin/devscr) to complete the payment; 3. After the payment,

Re: filter of results

2009-06-13 Thread joshua
conditions , not condition. On Sun, Jun 14, 2009 at 7:48 AM, in2lag prchal.p...@gmail.com wrote: hi, i just start to use cake and my problem follows... i have a table lessons and questions, association is one-to-many (lesson has a lot of questions). i try in my controller of lesson filter

Re: A better way? Grouping controllers and views

2009-06-13 Thread double07
Hi again. I just need some more clarification on this issue. I like the idea of setting up named parameters for the venues in the routes. However, I'm using an ACL system where users can be restricted by controllers and actions. If I understand correctly the named parameters would allow me to do

Re: After auto redirect from another domain site, the session was lost

2009-06-13 Thread joshua
I found the fail reason, [code] function __initSession() { $iniSet = function_exists('ini_set'); if ($iniSet env('HTTPS')) { ini_set('session.cookie_secure', 1); } switch ($this-security) { case 'high': $this-cookieLifeTime