cakephp-2.2

Using Oracle database with CakePHP 2.0

戏子无情 提交于 2019-11-28 12:26:49
I have noticed there's no datasource for Oracle in CakePHP 2.0 for the moment, although it seems they are working on in it now: http://ask.cakephp.org/questions/view/any_news_about_oracle_datasource_with_cakephp_2_0 There are some people explaining how to use an Oracle DB adapting some code from CakePHP 1.3: http://www.hassanbakar.com/2012/01/09/using-oracle-in-cakephp-2-0/ http://liamgraham.wordpress.com/2007/04/19/using-oracle-with-cakephp-15-minute-blog-tutorial/ But I'm not sure that's the correct way. If it was so simple, they would have released the feature already for CakePHP 2.X...

$this->Auth->login() creates correct query that returns 1 row, but fails IF check (server specific issue)

被刻印的时光 ゝ 提交于 2019-11-27 08:23:38
问题 We have a site that we're moving to a new server. Everything worked fine on the old server. It's just the start of a site, so it's pretty bare-bones. When moving to our new server, trying to log-in no longer works. BUT - according to debugKit, the query generated by $this->Auth->login() : SELECT `User`.`id`, `User`.`name`, `User`.`email`, `User`.`username`, `User`.`password`, `User`.`role`, `User`.`created`, `User`.`modified` FROM `shopping_main`.`users` AS `User` WHERE `User`.`username` =

Using Oracle database with CakePHP 2.0

自作多情 提交于 2019-11-27 07:03:41
问题 I have noticed there's no datasource for Oracle in CakePHP 2.0 for the moment, although it seems they are working on in it now: http://ask.cakephp.org/questions/view/any_news_about_oracle_datasource_with_cakephp_2_0 There are some people explaining how to use an Oracle DB adapting some code from CakePHP 1.3: http://www.hassanbakar.com/2012/01/09/using-oracle-in-cakephp-2-0/ http://liamgraham.wordpress.com/2007/04/19/using-oracle-with-cakephp-15-minute-blog-tutorial/ But I'm not sure that's

CakePHP Xml utility library triggers DOMDocument warning

白昼怎懂夜的黑 提交于 2019-11-27 05:36:07
I'm generating XML in a view with CakePHP's Xml core library : $xml = Xml::build($data, array('return' => 'domdocument')); echo $xml->saveXML(); View is fed from the controller with an array: $this->set( array( 'data' => array( 'root' => array( array( '@id' => 'A & B: OK', 'name' => 'C & D: OK', 'sub1' => array( '@id' => 'E & F: OK', 'name' => 'G & H: OK', 'sub2' => array( array( '@id' => 'I & J: OK', 'name' => 'K & L: OK', 'sub3' => array( '@id' => 'M & N: OK', 'name' => 'O & P: OK', 'sub4' => array( '@id' => 'Q & R: OK', '@' => 'S & T: ERROR', ), ), ), ), ), ), ), ), ) ); For whatever the