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

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() +

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:

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

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

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

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

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 Cakephphttp://www.pseudocoder.com/blog/8-ways-to-speed-up-cakephp-apps

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:

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' =

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

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

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

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]

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:

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:

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 string:__sendVerifyEmail when

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

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

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(

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,

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 https://lh6.googleusercontent.com/-K0onhL4O8P0/T5ns8fJv5II/JH4/WUwxWvhD_2E/s1600/Capture.JPG then I get stack trace like this New

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

Should DebugKit Toolbar's panel be maximum window ?

2012-04-14 Thread Điển
Should DebugKit Toolbar's panel be maximum window ? http://i.imgur.com/fqOaa.jpg 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

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

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

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

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

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

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

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

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

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

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

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 https://github.com/CakeDC/tags and Categories Pluginshttps://github.com/CakeDC/categories 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

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

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

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',

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

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

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

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/http://gohentai.net/webroot/index.php?url=authors/1781/Yamasaki_Atsushi test_test http://example.com/webrootposts/5978/test_test I don't know as google crawl in pages but it

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/http://gohentai.net/webroot/index.php?url=authors/1781/Yamasaki_Atsushi test_test http://example.com/webroot/posts/5978/test_test I don't know as google crawl in pages but it

Re: How to fix .htaccess in cakephp 2.0

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

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

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

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

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

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,

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

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 cake:nocache in elements with cakephp 1.x but not can't use it . I see it is harder to cache

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 cake:nocache in elements with cakephp 1.x but can't with cake 2.x I see it is harder to cache

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

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

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,

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

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

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

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

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

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

Re: Load components in components

2011-08-15 Thread Điển
I asked in cakephp IRC, A person answer is not: [11:05] savant it will not be slow, I believe it passes those around via reference [11:05] savant so you have nothing to worry about -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

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

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

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

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()

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

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

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 ( ?php echo $content_for_layout; echo $js-writeBuffer();? ) -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

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

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 ?php echo $content_for_layout; echo $js-writeBuffer(); // recommmend ? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the

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

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]

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

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

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

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

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',