Re: referer problems on new server

2013-04-27 Thread Điển
I met this problem, but i don't know why Cake use HTTP_X_FORWARDED_HOST for 
referer ? Anyone know this ?

On Tuesday, January 17, 2012 10:17:51 PM UTC+7, euromark wrote:
>
> I moved a project from a managed server to a server with some proxy 
> routing (apache mod_proxy). 
>
> But now request::referer() is always the domain itself (not the actual 
> referrer url) due to 
>
> $ref = env('HTTP_REFERER'); 
> $forwarded = env('HTTP_X_FORWARDED_HOST'); 
> if ($forwarded) { 
> $ref = $forwarded; 
> } 
>
> The proxy setup is: 
>
> ProxyRequests Off 
>  
> Order deny,allow 
> Allow from all 
>  
> ProxyPreserveHost On 
> ProxyPass / http://192.../ 
> ProxyPassReverse / http://192/ 
>
>
> HTTP_REFERER is set to the correct value "domain.com/some/action/with/ 
> params" 
> HTTP_X_FORWARDED_HOST, though, is only "domain.com" 
>
> why would cake use the host name here instead of sticking to the 
> obviously correct referrer url? 
> thx for any clarification 
> I would like to avoid hacking the core method of the request class.

-- 
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: invalidFields() returns duplicates?

2013-04-13 Thread Điển


https://cakephp.lighthouseapp.com/projects/42648/tickets/2597-model-invalidfields-add-validation-messages-each-time-it-s-called

this answer from *Mark-story:*

Yes, this is how it works. Since you are using lower level methods the 
validationErrors are not reset. You should use create() + save() to 
automatically flush errors. Or if you just want errors, you should access 
the Models->validationErrors property instead of calling invalidFields().


On Saturday, August 11, 2012 11:26:09 PM UTC+7, Shahruk Khan wrote:
>
> array(
> 'email' => array(
> (int) 0 => 'You must enter a proper email address.',
> (int) 1 => 'You must enter a proper email address.'
> )
> )
>
> I get this response when all I have is one field called email in 
> $this->request->data. Any help please?
>

-- 
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.




how clear cache this view

2012-07-21 Thread Điển
I have a page with url : *http://example.com/threads/**một wiki và diễn đàn 
tự do về*  (controller/slug)
cached in
tmp/cache/views/*
threads_view_m_e1_bb_99t_wiki_v_c3_a0_di_e1_bb_85n_c4_91_c3_a0n_t_e1_bb_b1_do_v_e1.php
*

how can i clear cache this page ? 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


How to load all fixture in CakeTestCase ?

2012-07-07 Thread Điển
Do it end up $fixtures = array('User, 'Image',  all model);
Because all models relate to others model. When you have a new model then 
all test will fail because new model relate with a exist model.

How to solve this problem, i want a way to load all fixtures ?

My solve , I created abstract class AppCakeTestCase extends CakeTestCase , 
load all fixtures in app/Testsuite. But i want to a way better this way.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Is there a library read cakephp's logs

2012-07-02 Thread Điển
Is there a Php library or software read cakephp's logs.
I want to read cakephp app's logs on server but don't know any software or 
library.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Generate test mock for model

2012-06-17 Thread Điển

$this-> Posts  = $this->generate('Posts', array(
'models' => array(
'Post' => array('exists')
)
));
$this->Posts->Post 
->expects($this->once())->method('exists')->will($this->returnValue(false));

$this->testAction('/user/posts/edit/' . $post['Post']['id'], array(.

*I expects a exception at here:*

function user_edit(){
if (!$this->Post->exists()) {
throw new NotFoundException(__('Invalid post'));
}

but i keep get this error . What am i doing wrong ? 
*

Expectation failed for method name is equal to  when invoked 
1 time(s).
Method was expected to be called 1 times, actually called 0 times.

*

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Is there any way to know current request is test?

2012-06-11 Thread Điển
Is there any way to know request is test environment's request ?

 More modules or elements , helpers  that i don't want it run when test. It 
is good if there is a way to distinguish request is test or not

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Cakephp Benchmark with debug is 2 and 0

2012-05-31 Thread Điển
I  used ab apache's benchmark , command line: ab -k -n 100 http://b/ . 
please read this :

https://gist.github.com/51757a95763fd8ac7b53 

It seems debug 0 is litle faster compare with debug 2. But i remember in 
previous version debug 0 is a lot faster . 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Cakephp Benchmark with debug is 2 and 0

2012-05-31 Thread Điển
I still think with debug is 0 , cakephp will be run faster when debug is 2. 
But when i use ApacheBench : ab -n 100 http://example.com in localhost . It 
showed results is same.
I ever read this article: 8 ways to speed up 
Cakephp from 
long time ago when cakephp 1.3
Did cakephp 2.0 improved performance  ? 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Duplicate query when use containable

2012-05-14 Thread Điển
I found out this problem cause by my SQL table design mistakes.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Duplicate query when use containable

2012-05-14 Thread Điển
I don't use cacheQueries but I tested with cacheQueries = true or false , 
no change happen.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Duplicate query when use containable

2012-05-14 Thread Điển
I use this query , and it created a lot duplicate query . This problem 
seems many people met. 
$this->Action->find('all', array(
'limit' => 60,
'order' => array('Action.created DESC'),
'contain' => array(
'Thread' => array('Game' => array('Image' => array('limit' => 1))),
'Post' => array('Thread' => array('Game' => array('Image' => array('limit' 
=> 1,
'Game' => array('Image' => array('limit' => 1)),
'User' => array('Avatar')
)
)
);

I searched google a lot but i still can't find out  .  All relationship is 
belongsTo or hasMany. 
how can i solve this problem ?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: User Management Plugin Cakephp 2

2012-05-08 Thread Điển
https://github.com/cakedc 
search *users* , this plugin stable at 95%  , 5% isn't table . but it is 
good, you can see and get code from it .
Now , it is best, if you develop users magnagement for yourself. Then you 
can easier to fix any errors happen.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: User Management Plugin Cakephp 2

2012-05-08 Thread Điển
https://github.com/cakedc 
search *users* , this plugin is stable at 95%  , 5% isn't stable . but it 
is good, you can see and get code from it .
Now , it is best, if you develop users magnagement for yourself. Then you 
can easier to fix any errors happen.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Server Move: Catch old details page url and forward to cake style url

2012-05-08 Thread Điển
Put this code ( modify it fit with your code ) in boostrap.php
   
 if (preg_match('/details\.php?id=(.*)/', $_SERVER['REQUEST_URI'], 
$match) !== false) {
   if (isset($match[1])){
$location = '/details/index/' . $match[1]
 header('Location: ' . $location, true, 301);
 die();
   }
}

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Does the community intend to localize CakePHP core or its default app/?

2012-05-08 Thread Điển

>
> /app/Locale/fre/LC_MESSAGES/cake.po (French)
>
> create cake.po use PoEdit to translate it . It take you several hours to 
translate , not lost too much your time .. 
When you done with translations then post a article to 
http://bakery.cakephp.org

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: A question about test Mock

2012-04-29 Thread Điển
I only need to do .. 

$this->Users = $this->generate('Users', array(
'methods' => array(
 '__sendVerifyEmail'
)
));
It is documented .Sorry,  I confused here , after a long day do testing.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


A question about test Mock

2012-04-29 Thread Điển
I met this error , Email still send . How i can  do protected function 
__sendVerifyEmail in UsersController return true , but don't send email ? 
(Funciton __sendVerifyEmail  use CakeEmail , not EmailComponent.)

*

Expectation failed for method name is equal to  when 
invoked 1 time(s).
Method was expected to be called 1 times, actually called 0 times.

*

This is code lines :

 $this->Users = $this->generate('Users', array(
'components' => array(
'Session' => array('read')
)
));


$this->Users->expects($this->once())->method('__sendVerifyEmail')->will($this->returnValue(true));

$result = $this->testAction('/users/add', array(
'data' => $data,
'method' => 'post'
));

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Best IDE for CakePHP 2.1

2012-04-28 Thread Điển
I forgot to mention Sublime Text 2 , is a fast , cross-platform editor . It 
is good for coding too .
Read this : 
http://net.tutsplus.com/tutorials/tools-and-tips/sublime-text-2-tips-and-tricks/
 .

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Testing in Command line, change output error ?

2012-04-26 Thread Điển
I created TestSuite/Reporter/CakeHtmlReporter.php ( copy in original Lib ) 
then change function _getStackTrace() like this:  
https://gist.github.com/2504656


then I get stack trace like this New stack trace 
, 
it is easier to see a lot compare with before:  
original
 . 

I read this blog 

 It 
seems Mark-Story don't run testing in web 
browser.
 I still can't think how can run all test in CLI, when CLI can't send 
headers/cookies/sessions.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Testing in Command line, change output error ?

2012-04-26 Thread Điển
I tested in CLI : 
cake testsuite core Controller/Component/AuthComponent
cake testsuite core Controller/Component/SessionComponent 
It seems AuthComponent, SessionComponent, CookieComponent can't use in CLI
But it failed . Do any method contains AuthComponent, SessionComponent, 
CookieComponent's method .
i must run in web browser ?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Mock testing , don't save data.

2012-04-26 Thread Điển
 $Posts = $this->generate('Posts', array(
'models' => array('Post' => array('save'))
));
$Posts->Post->expects($this->any())->method('save');
$this->testAction('/user/posts/add', array(
  'data' => array(
  'Post' => array(
  'body' => 'test',
   'guest' => 'hello',
   'thread_id' => '1'
 ),
),
 'method' => 'post'
  ));

$this->assertTrue(is_array($Posts->Post->findByGuest('hello')));  // return 
false

 In this case , data wasn't saved. How can i do test mock save data ?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Testing in Command line, change output error ?

2012-04-25 Thread Điển
I want test a method contain line 
 $this->Auth->user('id');
Do i must run that in browser: http://example.com/test.php
and it's only way ?

And a addition question.
Can i change phpunit's output error warning ? It is hard to see like 
this: http://i.imgur.com/qNFfr.jpg

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Should DebugKit Toolbar's panel be maximum window ?

2012-04-14 Thread Điển
I just think this matter can fix simple by change css for  
#debug-kit-toolbar .panel-content {
 height: 200px; 
}
Default 200px is too small . 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Should DebugKit Toolbar's panel be maximum window ?

2012-04-14 Thread Điển
Should DebugKit Toolbar's panel be maximum window ?


I always must click button  "+"  per when watch . Or may use cookie to 
remember choice .

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Why does cakephp 2.0 still use VENDORS constant ?

2012-04-12 Thread Điển
Why does  cakephp 2.0 still use VENDORS constant ? When its vendor is 
'Vendor' folder .. 

f (!defined('VENDORS')) {
define('VENDORS', ROOT . DS . 'vendors' . DS);
}

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Best IDE for CakePHP 2.1

2012-04-12 Thread Điển
A article about autocomplete on Eclipse ( same as Aptana )  
http://mark-story.com/posts/view/code-completion-for-cakephp-in-eclipse

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Best IDE for CakePHP 2.1

2012-04-12 Thread Điển
it is hard to know if you can code faster only with watch video  . Unless 
you spend time to use it, 1 or 2 week coding, then you will figure out 
which you prefer.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Best IDE for CakePHP 2.1

2012-04-12 Thread Điển


> I think one of the best IDEs is NeptunIDE at http://neptunide.com/ 
> address.
> but it is not available for download.
> I'm looking for an IDE with these facilities.

You can't download it , why you know it is good ? 
I use Aptana , with me it is better Netbeans . I use netbeans more than 2 
years then switch to Aptana.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: How can I run some code only once per day?

2012-01-10 Thread Điển
Use cronjob if your server is Linux.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Problem with constant WWW_ROOT in console.

2012-01-03 Thread Điển
My problem same with this topic 
https://groups.google.com/forum/#!topic/cake-php/WWbLFXnXv3k 

but i used his way (cake -webroot .. )but can't 
my directory structure 
/cakephp
/app 
/webroot  
but when debug(WWW_ROOT) in console it still d:\htdocs\cakephp\app\webroot\

How can i do it return d:\htdocs\cakephp\webroot ? in console

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CAKE PHP Installation Problem

2012-01-01 Thread Điển
If you ask this kind question. Even best developer php don't know where 
error is.
And my friends take half hour to complete that example when begin to learn 
cakephp. 
I learned that example , too. 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: File Upload Plugins

2011-12-28 Thread Điển
I think better you should use your script about uploading. Uploading is 
hard to write plugin use for all case.
And It is easier to change , or add new features, even update to 3.0 
version ( in future ) , because script is yours .



-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CakeDC: Should we group categories plugin with tags plugin ?

2011-12-19 Thread Điển
@AD7six: I want referer to CakeDC. Sorry, if i used mistake words . 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


CakeDC: Should we group categories plugin with tags plugin ?

2011-12-18 Thread Điển
Should we group *categories *plugin with *tags *plugin ?

Tags Plugins  and Categories 
Plugins

I know a little about drupal ( i don't use it in long time), they used "*
term*" for tags and even categories, menu. 
And i see tags and categories, both are near same features ,too.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: I am looking for a good oAuth 2.0 component that will work in cakePHP 2.0.4

2011-12-17 Thread Điển
Oauth Lib 2.0 : 

https://github.com/CakeDC/oauth_lib/tree/2.0 

I only use 1.0 version. It is very good. I don't know but i think 2.0 have 
bugs ^^.  

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: 9gag like sites

2011-12-11 Thread Điển
Upload: https://github.com/jrbasso/MeioUpload
Comments: https://github.com/CakeDC/comments 
Ratings/Votes: https://github.com/CakeDC/ratings
Facebook: https://github.com/facebook/php-sdk
Mobile Theme: I don't know about this.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: How use .htaccess to redirect these urls

2011-12-02 Thread Điển
Thank you very much for help me this matter.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: How use .htaccess to redirect these urls

2011-12-02 Thread Điển
I post at here , because if i use RewriteCond %{REQUEST_URI} in htaccess. 
It seems any urls in cakephp contain webroot. 

And I followed your suggestion redirect urls in routes.php:

if (preg_match('/webroot/', Router::url(null, false))) {
header("Location: " . str_replace('/webroot', '', 
Router::url(null, true)) . "/", true, 301);
exit();
}

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


How use .htaccess to redirect these urls

2011-12-01 Thread Điển


How can i redirect these urls ( use Htaccess):

http://example.com/webroot/posts/1/post_slug
to 
http://example.com/posts/1/post_slug

i read and do a lot but can't . Please help me solve this matter.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Should configure(Cache.check) set = false in beforeSave and beforeDelete ?

2011-11-14 Thread Điển
I think configure::write('Cache.check', false)   beforeSave and 
beforeDelete in  AppModel.php
---
ex: in case, Author hasMany Book and I have a lot cache of action 
: BooksController->view , 1000 cache file 
Then i create new a author, if Cache.check == true, it will auto delete 
1000 cache file book view.

Like ContainableBehavior , Configure::write('Cache.check', false) should be 
recommended in AppModel.php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Validation rules question

2011-11-11 Thread Điển
You set 'last'=> true at mistake place .

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Validation rules question

2011-11-11 Thread Điển

>
> Use required => true , 
>

   'ben_password' => array( 
'required' => array('rule' => 'notEmpty', 'message' => 
'EmptyPassword','required'=>true) 
) 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: How to fix .htaccess in cakephp 2.0

2011-11-11 Thread Điển
CakePHP 2.0 changed in htaccess: 
*cakephp
* / app  / 
webroot / 
.htaccess 
Line 5 from RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] to RewriteRule 
^(.*)$ index.php?/$1 [QSA,L]

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


How to fix .htaccess in cakephp 2.0

2011-11-11 Thread Điển
Recently , i saw in Google Webmaster a lot pages is NOT FOUND as:

http://example.com/webroot/index.php?url=authors/1781/
test_test
http://example.com/webroot/posts/5978/test_test

I don't know as google crawl in pages but it can access in cakephp 1.3 . It 
seems cakephp 2.0 fixed this ?

How  can i redirect url : 
http://example.com/webroot/index.php?url=authors/1781/test_test
 
   ->  
http://example.com
/authors/1781/
test_test
http://example.com/webroot/posts/5978/test_test->
  http://example.com/posts/5978/test_test

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Htaccess in Cakephp 2.0

2011-11-11 Thread Điển
Recently , i saw in Google Webmaster a lot pages is NOT FOUND as:

http://example.com/webroot/index.php?url=authors/1781/
test_test
http://example.com/webrootposts/5978/test_test

I don't know as google crawl in pages but it can access in cakephp 1.3 . It 
seems cakephp 2.0 fixed this ?

But i can redirect 
http://example.com/webroot/index.php?url=authors/1781/test_test
 
-> 
http://example.com
/authors/1781/
test_test
http://example.com/webroot/posts/5978/test_test -> 
http://example.com/posts/5978/test_test

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Convert UTF-8 Problem , but i don't know how to do .

2011-11-04 Thread Điển
Thanks a lot, i used AD7six's shell . All work , now.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Convert UTF-8 Problem , but i don't know how to do .

2011-11-04 Thread Điển
thanks for answer my question. I will tried it .

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Convert UTF-8 Problem , but i don't know how to do .

2011-11-04 Thread Điển
Convert UTF-8 Problem with php , but i don't know how to do .
I want to ask cakephp  about this because i use cakephp .

In cakePHP 1.3 i use 'encoding' => 'UTF-8', it is my mistake. Now i known 
it must be 'encoding'=>'uft8' when update to update to cakephp 2.0
But i end up submit a lot Japanese character , and now it show like this:" 
–ルーアã 
 "

How can i convert it compatible with 'encoding'=>'utf8' . My database is 
utf8_general_ci 
 from 1.3.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: AuthComponent - Multiple Setups

2011-11-02 Thread Điển
Edit: Do you mean : *Admin* to the *Student* login screen if I can't find a 
*Admin *?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread Điển
No, i mean: 
You cannot use nocache tags in elements. Since there are no callbacks 
around elements, they cannot be cached.  (
http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html)
I can use  in elements with cakephp 1.x but can't with cake 
2.x
I see it is harder to cache 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread Điển
No, i mean: 
You cannot use nocache tags in elements. Since there are no callbacks 
around elements, they cannot be cached.  (
http://book.cakephp.org/2.0/en/core-libraries/helpers/cache.html)
I can use  in elements with cakephp 1.x but not can't use it 
. 
I see it is harder to cache 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: CakepHP 2.0 plugins no longer cache in elements

2011-11-02 Thread Điển
Many element can't cache but repeat in many layouts. 
Only me met trouble about this matter ?...

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


CakepHP 2.0 plugins no longer cache in elements

2011-11-01 Thread Điển
CakepHP 2.0 plugins no longer cache in elements.

Is it harder to code ? I use nocache a lots in cakephp 1.3.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: plugins for uploading images/ files in cakephp v2.0

2011-10-28 Thread Điển
https://github.com/jrbasso/MeioUpload

All plugin for 2.0 seems not stable .. You try to fix it.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: plugins for uploading images/ files in cakephp v2.0

2011-10-28 Thread Điển
https://github.com/jrbasso/MeioUpload

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Html::scriptStart can't use when requestAction in 2.0

2011-10-28 Thread Điển
Html::scriptStart can't use when requestAction in 2.0

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Cakephp delete all relationship's cache

2011-09-02 Thread Điển
Sorry, because poor my English.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Cakephp delete all relationship's cache

2011-09-02 Thread Điển
Sorry because poor my Engish.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Cakephp delete all relationship's cache

2011-09-02 Thread Điển
When i use this line: 
 $this->User->saveField('last_activity', date('Y-m-d H:i:s', time()));
CakePHP delete all cache of model relation with User. ( Almost all model 
relate with User) .
I must use Configure::write('Cache.check', false); prevent Cakephp clear all 
.
Is this normal in cakePHP ?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Load components in components

2011-08-15 Thread Điển
Thanks a lot.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Load components in components

2011-08-15 Thread Điển
I asked in cakephp IRC, A person answer is not:

> [11:05]  it will not be slow, I believe it passes those around via 
reference 
>
>[11:05]  so you have nothing to worry about

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Load components in components

2011-08-15 Thread Điển
if i use and create much components and that components use other components 
.It will make  app is very slow?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Load components in components

2011-08-13 Thread Điển
in app_controller.php  load Session, Auth components. 
And in posts_controller.php,  i use CustomComponent with $components = 
array('Session','Auth'); 
Then do CustomComponent must reload Session, Auth?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: Authentication and ACL in cake php

2011-07-05 Thread Điển
Understand ACL and use it , you may take several days to 1 week . Config 
like this in model http://book.cakephp.org/view/93/ACL . Try to figure out , 
do your best 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Ask about regex in routes rule .

2011-06-22 Thread Điển
In routers.php , i wrote this line.

Router::connect('/pages/:id/:slug', array('controller' => 'pages', 
'action' => 'view'), array('pass' => array('id', 'slug'), 'id' => 
'[0-9A-Za-z]{6}'));

now i can access http://example.com/pages/7hf763/this_is_slug 
but how i can access function public() action : http://example.com/pages/public 


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Re: How to use Jquery with CakePHP 1.3...PLEASE HELP

2011-06-13 Thread Điển
Don't use JavascriptHelper , use JsHelper instead.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Tr.lời: Re: Load content into static page with ajax

2011-05-31 Thread Điển
Sorry, cakephp don't set $this->autoRender = false. But it will check your 
ajax.ctp. I only need create blank layout ajax.ctp
writeBuffer(); // recommmend
?>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Tr.lời: Re: Load content into static page with ajax

2011-05-31 Thread Điển
CakePHP auto set $this->autoRender = false  when you request ajax .But you 
must create views/layouts/ajax.ctp .   

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Tr.lời: Load content into static page with ajax

2011-05-31 Thread Điển
You try to check this: http://api.jquery.com/jQuery.get/
and learn how use http://book.cakephp.org/view/1592/Js
remember create views/layout/ajax.ctp ( writeBuffer();?> )

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


How create beta (testing) website ?

2011-05-31 Thread Điển
How create beta (testing) website use same webroot and cake folder ?
That beta (testing) website probably is at http://beta.example.com or 
http://example.com/beta

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Tr.lời: Re: When need to use Set::combine ?

2011-04-17 Thread Điển
It may be 2 question : when use Set::combine and  extract this data :
$this->User->find('all);

   1. 
   
   Array
   (
   [0] => Array
   (
   [User] => Array
  (
   [id] => 4
   [username] => myname
   [password] => abc
  )
)
[1] => ...
[2] => ...
   )
   
   2. )


to 

   1. Array(
   2.   'myname'=>array(
   3. 'id'=>1,
   4. 'password'=>'abc'
   5. }


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


When need to use Set::combine ?

2011-04-17 Thread Điển

   
   1. $result = Set::combine($a, array('{0}: {1}', '{n}.User.Data.user', 
   '{n}.User.Data.name'), '{n}.User.id');
   2. 
   3. /* $result now looks like: 
   4. Array
   5. (
   6. [mariano.iglesias: Mariano Iglesias] => 2
   7. [phpnut: Larry E. Masters] => 14
   8. [gwoo: The Gwoo] => 25
   9. )
   10. */

With format: [gwoo: The Gwoo], i don't know when need to use it ?
With Set::combine , i can extract data with this format ?:

   1. Array(
   2.   'username'=>array(
   3. 'id'=>1,
   4. 'password'=>'abc'
   5. }

I think it can't extract as above .

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Tr.lời: Re: Can't CakeLog use in CLI ?

2011-04-16 Thread Điển
I change use Ubuntu OS, CakeLog write direct in Terminal. May it can't write 
in Windows's cmd ? 
Edit: I use as this: CakeLog::write('log',print_r($log)); . It print direct 
in Ubuntu's Terminal but sure it isn't in Windows's cmd.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Tr.lời: Re: Can't CakeLog use in CLI ?

2011-04-16 Thread Điển
I change use Ubuntu OS, CakeLog write direct in Terminal. May it can't write 
in Windows's cmd ? 

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Tr.lời: Re: Can't CakeLog use in CLI ?

2011-04-16 Thread Điển
I can't use CakeLog::write('log','test'); in Shell

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


Can't CakeLog use in CLI ?

2011-04-15 Thread Điển
I can't use CakeLog::write(); write log when run CakePHP's Shell Task 
. Can't CakeLog use in CLI ?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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


CakeDC's oauth_lib

2011-01-18 Thread Điển
https://github.com/CakeDC/oauth_lib

I use Cakedc's oauth_lib, but i stuck at this code:

$RequestToken = $this->Session->read('request_token');
$AccessToken = $RequestToken->getAccessToken(array('oauth_verifier' =>
$options['oauth_verifier']));
$response = $AccessToken->request('GET', 'http://api.twitter.com/1/
help/test.json');
debug($response) i get error 4.01
[raw] => Array
(
[status-line] => HTTP/1.1 401 Unauthorized
..
[body] => {"request":"\/1\/help\/
test.json","error":"Incorrect signature"}
[response] => HTTP/1.1 401 Unauthorized
)
I tested with many case but it don't work.
please, help me .

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