Re: 3.x - SecurityComponent and View Cell

2014-07-20 Thread Thomas von Hassel
is there an issue to track this, or should i create one ?

/thomas

On 19 Jul 2014, at 15:12, mark_story mark.st...@gmail.com wrote:

 That might be a good compromise. Default to isolated scopes, and allow a 
 shared mode.
 
 -mark
 
 -- 
 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/d/optout.

-- 
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/d/optout.


CakePHP Certification

2014-07-20 Thread Saran Pal
Hi All,

Anyone know about the CakePHP Certification, if yes please update.


Sr. CakePHP Developer
Saran

-- 
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/d/optout.


logout a specific user using the Auth Component

2014-07-20 Thread Saif Turki
Hi,

Sorry for my bad english :(
I want to logout a specific user (not the logged one) using the cakephp 
Auth Component but the logout method doesn't accept any param !! is there 
any alternative way to specify the ID of the user that we want to logout ?

thanks

-- 
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/d/optout.


Re: 3.x - SecurityComponent and View Cell

2014-07-20 Thread José Lorenzo
Create one please

On Sunday, July 20, 2014 11:10:58 AM UTC+2, Thomas von Hassel wrote:

 is there an issue to track this, or should i create one ? 

 /thomas 

 On 19 Jul 2014, at 15:12, mark_story mark.st...@gmail.com wrote: 

  That might be a good compromise. Default to isolated scopes, and allow a 
 shared mode. 
  
  -mark 
  
  -- 
  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/d/optout. 



-- 
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/d/optout.


Re: Making Paginator templates work with themes [CakePHP 3]

2014-07-20 Thread José Lorenzo
Is the AppController of the plugin being executed?

On Sunday, July 20, 2014 2:44:21 AM UTC+2, Dr. Tarique Sani wrote:

 Oh! It supports plugin notation. I was just suggesting that for plugin 
 which are acting as themes the helper array in AppController of the plugin 
 is not being read.

 Thanks for your answer.

 On Saturday, July 19, 2014, José Lorenzo jose@gmail.com wrote:

 I don't think it supports plugin notation right now, please open a 
 ticket. It definitely seems like something we need to support 

 On Saturday, July 19, 2014 5:32:01 AM UTC+2, Dr. Tarique Sani wrote:

 Don't know if this is a bug or a feature but I am trying to make 
 Paginator templates work with themes

 I have to put the following in the AppController of the main program to 
 make it work.  

 public $helpers = [
 'Paginator' = ['templates' = 'Twit.paginator-templates.php']
 ];

 If I put the same/similar in the AppController of the plugin it does not 
 work. Am I missing something or it is a bug/oversight/feature

 For theming it would be infinitely better if this worked from the 
 AppController of the Plugin

 Cheers
 Tarique


 -- 
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 = 

  -- 
 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/d/optout.



 -- 
 =
 The Conference Schedule Creator : http://shdlr.com

 PHP for E-Biz : http://sanisoft.com
 =


-- 
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/d/optout.


3.0: defaultConnectionName doesn't create correct connection

2014-07-20 Thread Joe Theuerkauf
i tried this topic before, but the only response was for an older version 
of Cake...

i'm following this documentation:
http://book.cakephp.org/3.0/en/orm/table-objects.html#configuring-connections

i'm trying to keep a few tables that would be application-agnostic in a 
different database. i'm not trying to create associations as mentioned in 
#3463. i just need to query independent records from these tables.

Here's what i have so far:
// Config/app.php
$config = [
// ...
  'Datasources' = [
'default' = [
  // Connection to this DB works.
  'database' = 'kodiak',
],
'websites' = [
  // Connection is identical, except different 'database' value
  'database' = 'websites',
]
  ]
// ...
];

// Model/Table/Websites/CapchasTable.php
class CaptchasTable extends Table {
public static function defaultConnectionName () {
return 'websites';
}
}

// Controller/ContactsController.php
public function index () {
$this-loadModel('Captchas');

$captcha = $this-Captchas-find('all', [
'conditions' = [],
'order' = 'RAND()',
'limit' = 1
]);

// etc.
}

Here's the error output:

SQLSTATE[42S02]: Base table or view not found: 1146 Table 
*'kodiak.captchas'* doesn't exist

Error: An Internal Error Has Occurred.
Stack Trace

ROOT\vendor\cakephp\cakephp\src\Database\Schema\Collection.php line 113 
→ Cake\Database\Schema\Collection-_executeSql(string, array)
ROOT\vendor\cakephp\cakephp\src\ORM\Table.php line 323 → 
Cake\Database\Schema\Collection-describe(string)
ROOT\vendor\cakephp\cakephp\src\ORM\Query.php line 127 → 
Cake\ORM\Table-schema()
ROOT\vendor\cakephp\cakephp\src\ORM\Query.php line 110 → 
Cake\ORM\Query-addDefaultTypes(Cake\ORM\Table)
ROOT\vendor\cakephp\cakephp\src\ORM\Table.php line 927 → 
Cake\ORM\Query-__construct(Cake\Database\Connection, Cake\ORM\Table)
ROOT\vendor\cakephp\cakephp\src\ORM\Table.php line 724 → 
Cake\ORM\Table-query()
APP/Controller\ContactsController.php line 36 → 
Cake\ORM\Table-find(string, array)
[internal function] → App\Controller\ContactsController-index()
ROOT\vendor\cakephp\cakephp\src\Controller\Controller.php line 373 → 
ReflectionMethod-invokeArgs(App\Controller\ContactsController, array)
ROOT\vendor\cakephp\cakephp\src\Routing\Dispatcher.php line 115 → 
Cake\Controller\Controller-invokeAction()
ROOT\vendor\cakephp\cakephp\src\Routing\Dispatcher.php line 87 → 
Cake\Routing\Dispatcher-_invoke(App\Controller\ContactsController)
ROOT\webroot\index.php line 37 → 
Cake\Routing\Dispatcher-dispatch(Cake\Network\Request, 
Cake\Network\Response)

It doesn't seem to matter if CaptchasTable is in Model/Table or 
Model/Table/Websites; loadModel('Captchas') doesn't throw errors either 
way. But the find() call is throwing the error - *regardless where *
CaptchasTable* is placed*. When it's commented, the page loads fine (since 
i'm hitting this error, i haven't actually tried to USE any of the Captcha 
data in my form yet).

So the question is: why isn't defaultConnectionName setting up the 
connection to the `websites` DB? What's missing? Is it missing 
documentation  i need to do something more, or is this a bug?

i'd appreciate any help before i post this to the Github issues. Thanks.

-- 
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/d/optout.


CakePHP 2.5.3 and 1.3.20 released

2014-07-20 Thread mark_story
The CakePHP core team is proud to announce the immediate availability of 
CakePHP 2.5.3 and CakePHP 1.3.20. CakePHP 2.5.3 is a bugfix release for the 
2.5.x release branch. 1.3.20 is a bugfix release for 1.3.x. The 1.3.20 
release contains an important fix to address a potential race condition in 
Model::save() that can cause data loss when records are deleted during 
concurrent updates. The same fix is included in 2.5.3.

A short list of the changes you can expect in 2.5.3 are:

* TextHelper::autoLinkEmail() now links email addresses adjacent to HTML 
elements.
* 'research' is now pluralized by Inflector properly now.
* 'stadium' is now pluralized by Inflector properly now.
* The schema included for the ACL tables now includes indexes to help 
improve performance.
* APCEngine cache is now compatible with APCu.
* App::pluginPath() is deprecated. You should use Plugin::path() instead.
* API doc blocks have been improved in many classes.
* Email validation rules in CakeEmail have been relaxed. Both email 
addresses with UTF-8 characters and IDN domain names are generally 
deliverable but were failing `filter_var()`.
* CakeResponse::sharable() now sets the public max-age header.
* Model::getDataSource() now correctly switches the schemaName property. 
This fixes a regression introduced in 2.4.8.
* Validation::inList() no longer accepts hexadecimal values for numeric 
checks.
* Multi use CSRF tokens now have their expiration updated on each request.
* h() now performs better.
* Missing fixture errors have been improved.

If you missed out on the early-bird tickets for for CakeFest 2014, there 
are still [tickets available](http://cakefest.org/tickets) and the 
[conference schedule](http://cakefest.org/schedule).

We'd like to thank Kurita Takashi for his on-going help in identifying 
possible security issues in CakePHP. You can view the full 2.5.3 changelog 
and 1.3.20 changelog on cakephp.org. I'd like to thank the people who have 
contributed to this release. Your bug tickets, documentation edits, and 
patches/pull requests are a big part of what keeps CakePHP alive and 
ticking.

You can download packaged releases on 
[github](https://github.com/cakephp/cakephp/tags).

-- 
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/d/optout.


Parse RSS/xml data using cakephp XML Lib (Cake 1.3.X).

2014-07-20 Thread Ravi Saxena(Nethues)
   
$data= trim(file_get_contents($url));
 App::import('Xml');
$xml = new Xml($data);
// This converts the Xml document object to a formatted array
$xmlAsArray = Set::reverse($xml);
// Or you can convert simply by calling toArray();
$xmlAsArray = $xml-toArray(false);
return $xmlAsArray;

Enjoy.

-- 
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/d/optout.