deconstruct problem
Hi, I did download the version 1.2.3.8166 of CakePHP. It doesn't allow the cleanUpFields method. I tryied to use this $this-Metodologia-deconstruct(Metodologia, $this-data['Metodologia']['metodologia']); for editing a field. My array is this: Array ( [Metodologia] = Array ( [metodologia] = Convencional (MAPA, SDA, IN 62/2003) [Metodologia/id] = ) ) When I use this it save. But the problem is that it doesn't edit the data it create a new data. Regards, Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: cake_1.2.3.8166 and AdminAuth
I did find the solution: http://book.cakephp.org/view/172/Authentication simon...@terra.com.br escreveu: Good Night, I'm trying to make the AdminAuth component work on cake_1.2.3.8166. I did uncomment Configure::write('Routing.admin', 'admin'); on line 67 of the file app/config/core.php. On the file app/app_controller.php lines 49-50 I have this code: $this-AdminAuth-msgError = Error.; //$this-AdminAuth-init($this); On the file app\controllers\components\admin_auth.php line 110, I had this code loadModel(Admin), it was depreceated so I did change it to App::Import('Admin');. I don't know if I should use App::Import('Admin'); or ClassRegistry::init('Admin');? When I uncomment the line 50 of the file app/app_controller.php ( $this-AdminAuth-init($this); ). Instead of showing my site when I enter my domain, it shows directly the administrator. What I'm doing wrong? Regards, Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
cake_1.2.3.8166 and AdminAuth
Good Night, I'm trying to make the AdminAuth component work on cake_1.2.3.8166. I did uncomment Configure::write('Routing.admin', 'admin'); on line 67 of the file app/config/core.php. On the file app/app_controller.php lines 49-50 I have this code: $this-AdminAuth-msgError = Error.; //$this-AdminAuth-init($this); On the file app\controllers\components\admin_auth.php line 110, I had this code loadModel(Admin), it was depreceated so I did change it to App::Import('Admin');. I don't know if I should use App::Import('Admin'); or ClassRegistry::init('Admin');? When I uncomment the line 50 of the file app/app_controller.php ( $this-AdminAuth-init($this); ). Instead of showing my site when I enter my domain, it shows directly the administrator. What I'm doing wrong? Regards, Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: cake_1.2.3.8166+ Query: execute
That's the full error code I had: I did find that in the APP\app_model.php, line 15 there was execute so I just changed it to query and it was fixed. Thanks Dr.Loboto Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [CORE\cake\libs\model\datasources \dbo_source.php, line 525] Code | Context $sql= execute $error = 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 $out= null $out = null; if ($error) { trigger_error(span style = \color:Red;text- align:left\bSQL Error:/b {$this-error}/span, E_USER_WARNING); DboSource::showQuery() - CORE\cake\libs\model\datasources \dbo_source.php, line 525 DboSource::execute() - CORE\cake\libs\model\datasources \dbo_source.php, line 201 DboSource::fetchAll() - CORE\cake\libs\model\datasources \dbo_source.php, line 337 DboSource::query() - CORE\cake\libs\model\datasources\dbo_source.php, line 298 Model::call__() - CORE\cake\libs\model\model.php, line 437 Overloadable::__call() - CORE\cake\libs\overloadable_php5.php, line 52 Noticia::execute() - APP\app_model.php, line 15 AppModel::__construct() - APP\app_model.php, line 15 ClassRegistry::init() - CORE\cake\libs\class_registry.php, line 140 Controller::loadModel() - CORE\cake\libs\controller\controller.php, line 503 Controller::constructClasses() - CORE\cake\libs\controller \controller.php, line 457 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 207 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194 require - APP\webroot\index.php, line 88 [main] - CORE\index.php, line 61 Query: execute Query: execute On 17 jul, 03:31, Dr. Loboto drlob...@gmail.com wrote: Open this error message and inspect stack trace there. You'll see which model/controller/behavior still uses execute() method instead of query() one. On Jul 17, 3:06 am, simon...@terra.com.br simon...@terra.com.br wrote: HI, I'm using cake_1.2.3.8166 version. I get this error: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [CORE\cake\libs\model\datasources \dbo_source.php, line 525] Query: execute Query: execute I did change all the execute() to query(), but the problem is still there. Any ideas? Regards, Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: cake_1.2.3.8166+ Query: execute
That's the full error code I had: I did find that in the APP\app_model.php, line 15 there was execute so I just changed it to query and it was fixed. Thanks Dr.Loboto Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [CORE\cake\libs\model\datasources \dbo_source.php, line 525] Code | Context $sql= execute $error = 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 $out= null $out = null; if ($error) { trigger_error(span style = \color:Red;text- align:left\bSQL Error:/b {$this-error}/span, E_USER_WARNING); DboSource::showQuery() - CORE\cake\libs\model\datasources \dbo_source.php, line 525 DboSource::execute() - CORE\cake\libs\model\datasources \dbo_source.php, line 201 DboSource::fetchAll() - CORE\cake\libs\model\datasources \dbo_source.php, line 337 DboSource::query() - CORE\cake\libs\model\datasources\dbo_source.php, line 298 Model::call__() - CORE\cake\libs\model\model.php, line 437 Overloadable::__call() - CORE\cake\libs\overloadable_php5.php, line 52 Noticia::execute() - APP\app_model.php, line 15 AppModel::__construct() - APP\app_model.php, line 15 ClassRegistry::init() - CORE\cake\libs\class_registry.php, line 140 Controller::loadModel() - CORE\cake\libs\controller\controller.php, line 503 Controller::constructClasses() - CORE\cake\libs\controller \controller.php, line 457 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 207 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194 require - APP\webroot\index.php, line 88 [main] - CORE\index.php, line 61 Query: execute Query: execute On 17 jul, 03:31, Dr. Loboto drlob...@gmail.com wrote: Open this error message and inspect stack trace there. You'll see which model/controller/behavior still uses execute() method instead of query() one. On Jul 17, 3:06 am, simon...@terra.com.br simon...@terra.com.br wrote: HI, I'm using cake_1.2.3.8166 version. I get this error: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [CORE\cake\libs\model\datasources \dbo_source.php, line 525] Query: execute Query: execute I did change all the execute() to query(), but the problem is still there. Any ideas? Regards, Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: cake_1.2.3.8166+ Query: execute
That's the full error code I had: I did find that in the APP\app_model.php, line 15 there was execute so I just changed it to query and it was fixed. Thanks Dr.Loboto Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [CORE\cake\libs\model\datasources \dbo_source.php, line 525] Code | Context $sql= execute $error = 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 $out= null $out = null; if ($error) { trigger_error(span style = \color:Red;text- align:left\bSQL Error:/b {$this-error}/span, E_USER_WARNING); DboSource::showQuery() - CORE\cake\libs\model\datasources \dbo_source.php, line 525 DboSource::execute() - CORE\cake\libs\model\datasources \dbo_source.php, line 201 DboSource::fetchAll() - CORE\cake\libs\model\datasources \dbo_source.php, line 337 DboSource::query() - CORE\cake\libs\model\datasources\dbo_source.php, line 298 Model::call__() - CORE\cake\libs\model\model.php, line 437 Overloadable::__call() - CORE\cake\libs\overloadable_php5.php, line 52 Noticia::execute() - APP\app_model.php, line 15 AppModel::__construct() - APP\app_model.php, line 15 ClassRegistry::init() - CORE\cake\libs\class_registry.php, line 140 Controller::loadModel() - CORE\cake\libs\controller\controller.php, line 503 Controller::constructClasses() - CORE\cake\libs\controller \controller.php, line 457 Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 207 Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194 require - APP\webroot\index.php, line 88 [main] - CORE\index.php, line 61 Query: execute Query: execute On 17 jul, 03:31, Dr. Loboto drlob...@gmail.com wrote: Open this error message and inspect stack trace there. You'll see which model/controller/behavior still uses execute() method instead of query() one. On Jul 17, 3:06 am, simon...@terra.com.br simon...@terra.com.br wrote: HI, I'm using cake_1.2.3.8166 version. I get this error: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [CORE\cake\libs\model\datasources \dbo_source.php, line 525] Query: execute Query: execute I did change all the execute() to query(), but the problem is still there. Any ideas? Regards, Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
cake_1.2.3.8166+ Query: execute
HI, I'm using cake_1.2.3.8166 version. I get this error: Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 [CORE\cake\libs\model\datasources \dbo_source.php, line 525] Query: execute Query: execute I did change all the execute() to query(), but the problem is still there. Any ideas? Regards, Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Migrating from IsapiRewrite 2 (ini) to Isapi Rewrite 3 (.htaccess)
Good Morning, I have a website that had IsapiRewrite 2 installed, so I was using the IsapiRewrite4.ini file to configure. Now they did update to version 3, so I have to use .htaccess. I'm trying to do the same configuration that I had before, but it doesn't work. Can somebody help me? Here's the code I was using in version 2: # IsapiRewrite4.ini # IsapiRewrite4 options # RewriteLog logs\iirfLog.out RewriteLogLevel 0 MaxMatchCount 10 IterationLimit 10 # Match a fully qualifed domain name such as intranet.domain.com # and redirect it to http://intranet (plus any query parameters). # Replace domain with your domain name # RewriteCond %{SERVER_NAME} ([^\.]+)\.kakarekos.com\.com$ [I] # RewriteRule ^(.*)$ http://%1$1 [R] # RewriteRule^$ app/webroot/[L] # RewriteRule(.*) app/webroot/$1 [L] RewriteRule ^/$/index.php?REQUEST_URI=index.php [L] #RewriteRule ^(.*)$ /index.php?REQUEST_URI=$1[L] Regards, Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
CakePHP 1.2 AdminAuth Problem
Hi Everyone, I did migrate to CakePHP 1.2 and with the older version, I could init the AdminAuth this way in the app_controller file : //init the admin component... $this-AdminAuth-msgError = Erro ao efetuar seu login. Tente novamente.; $this-AdminAuth-init($this); in the beforeFilter method, now it says that it's missing a method, when I use the code $this-AdminAuth-init($this); With the older version that was never a problem. What could I do? Should I change the code? I did saw some changes between the versions like model, controller etc. Regards, --~--~-~--~~~---~--~~ 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Is there a way to not repeat two findAll and models in my site, instead put in just one file?
Good Morning, I have like 20 pages on my site and they all use these: $menu = $this-Grupo-findAll(null,null, array(Grupo.grupo ASC)); $this-set('menu', $menu ); $submenu = $this-Linha-findAll(null,null, array(Linha.linha ASC)); $this-set('submenu', $submenu ); Now I'm putting them in every controller and I also put those two models: var $uses = array('Linha','Grupo'); Can I put this in the app_controller.php file or somewhere else, instead of repeating this in every file? Regards, --~--~-~--~~~---~--~~ 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---