Problems clone cakephp 3 + netbeans

2014-05-14 Thread José López
Good afternoon. took time with cakephp working fine in all versions , but 
it is now trying to clone three cakephp dev for ubuntu composer.phar from 
me and then a series of problems arise for download cakephp / vendor from 
git so the composer uses a second option , once the download directories 
cakephp vendor and gives the perimisos to tmp folder and configures the 
achievement app.php run the file from my browser http://localhost/APP 
framework , but then after a couple of minutes after having confirmed the 
welcome page of this cake becomes blank when refreshing the browser, then I 
move to the directory where is the cakephp vendor folder before another 
directory cakephp had noticed that strangely disappears . My question is 
how to do this does not continue happening since I've been cloning the 
cakephp version 3 but I can not always going to stay the same and I do not 
know if the composer is that I delete the files from the vendor or other 
reason. Using netbeans as development , Grateful that can help me .

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


pagination on cakephp 1.3

2014-05-14 Thread tuan kim
hi ,
Thanks for you support always,
I have a problem with Pagination,
When I use CakePHP Pagination I get the default url like this:

localhos/posts/index/

and the title of  website is  design website 
when I click to page number 4, the title is still design website 
But I want the title when I click to page number 4  is design website page 
4
So, please help me to solve this problem

-- 
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: When is a form post not a form post?

2014-05-14 Thread euromark
with table i meant form.. :)


Am Mittwoch, 14. Mai 2014 12:08:28 UTC+2 schrieb euromark:

 I am not quite sure why you are making this into your own science project 
 :)
 it is fairly simple actually

 have an id field in your table = edit = PUT
 dont have an id field in your table = add = POST

 That's documented - and exactly as easy and straightforward as it sounds

 If you don't care about PUT/POST in your actions, you can indeed just 
 check for both (as I have always done so far):

 if ($this-request-is(array('post', 'put')) {}

 This works for all edit and add actions. Always.

 Done in a few seconds.. :)



 Am Mittwoch, 14. Mai 2014 02:09:51 UTC+2 schrieb Reuben:

 So, having decided to always specify the action is the Form::create, so I 
 can only be concerns with detecting a POST for form submissions, I'd really 
 like to make sure that is covered in my unit testing.

 But that's a tricky one.

 I guess I would need to write a unit test for any view that has a form, 
 and mock the FormHelper to expect that any create() had an array with an 
 action entry to specify the expected action.  Writing unit tests for views 
 is generally frowned on, so much so, that an example of how to do this is 
 not given in the doco.

 If the issue holds my attention long enough, I'll post back.



-- 
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: When is a form post not a form post?

2014-05-14 Thread euromark
I am not quite sure why you are making this into your own science project :)
it is fairly simple actually

have an id field in your table = edit = PUT
dont have an id field in your table = add = POST

That's documented - and exactly as easy and straightforward as it sounds

If you don't care about PUT/POST in your actions, you can indeed just check 
for both (as I have always done so far):

if ($this-request-is(array('post', 'put')) {}

This works for all edit and add actions. Always.

Done in a few seconds.. :)



Am Mittwoch, 14. Mai 2014 02:09:51 UTC+2 schrieb Reuben:

 So, having decided to always specify the action is the Form::create, so I 
 can only be concerns with detecting a POST for form submissions, I'd really 
 like to make sure that is covered in my unit testing.

 But that's a tricky one.

 I guess I would need to write a unit test for any view that has a form, 
 and mock the FormHelper to expect that any create() had an array with an 
 action entry to specify the expected action.  Writing unit tests for views 
 is generally frowned on, so much so, that an example of how to do this is 
 not given in the doco.

 If the issue holds my attention long enough, I'll post back.


-- 
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: When is a form post not a form post?

2014-05-14 Thread Reuben Helms
I guess because it threw me.

In most cases, I've previously checked isPost, now is('post'). In other
places, I would check for data, but that's not good practice now, because
GET data is also on the request.

Also, when I see method=post on the form element, and POST on the HTTP
call, then I would expect the method on the request to also be post. If
method() is going to report PUT, then I would expect that the actual form
method, and HTTP verb would also be PUT. After all, that's convention (over
configuration, or code obfuscation).

On Wednesday, May 14, 2014, euromark dereurom...@gmail.com wrote:

 I am not quite sure why you are making this into your own science project
 :)
 it is fairly simple actually

 have an id field in your table = edit = PUT
 dont have an id field in your table = add = POST

 That's documented - and exactly as easy and straightforward as it sounds

 If you don't care about PUT/POST in your actions, you can indeed just
 check for both (as I have always done so far):

 if ($this-request-is(array('post', 'put')) {}

 This works for all edit and add actions. Always.

 Done in a few seconds.. :)



 Am Mittwoch, 14. Mai 2014 02:09:51 UTC+2 schrieb Reuben:

 So, having decided to always specify the action is the Form::create, so I
 can only be concerns with detecting a POST for form submissions, I'd really
 like to make sure that is covered in my unit testing.

 But that's a tricky one.

 I guess I would need to write a unit test for any view that has a form,
 and mock the FormHelper to expect that any create() had an array with an
 action entry to specify the expected action.  Writing unit tests for views
 is generally frowned on, so much so, that an example of how to do this is
 not given in the doco.

 If the issue holds my attention long enough, I'll post back.

  --
 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 a topic in the
 Google Groups CakePHP group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/cake-php/3ypcXFatKQk/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 cake-php+unsubscr...@googlegroups.comjavascript:_e(%7B%7D,'cvml','cake-php%2bunsubscr...@googlegroups.com');
 .
 To post to this group, send email to 
 cake-php@googlegroups.comjavascript:_e(%7B%7D,'cvml','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 2.4.9 authenticated Application

2014-05-14 Thread bobkill01
I look at the possibilities offered by CakePHP for authenticated 
applications but I do not understand in what cases I should use this or 
that rule among the three listed below.

Simple Authentication and Authorization Application
Simple Acl controlled Application
Simple Acl controlled Application - part 2

For example, if I want to create a simple site with an administrator who 
manages the site and frontend part. I have to use what solution? Can I 
manage a website with standard methods in the controller (edit, add ...) or 
I have to use ... admin_edit in core.php  *** ? I am a beginner, thank you 
for your understanding.

Thank's


***  
* Set to an array of prefixes you want to use in your application. Use for
 * admin or other prefixed routes.
 *
 * Routing.prefixes = array('admin', 'manager');
 *
 * Enables:
 * `admin_index()` and `/admin/controller/index`
 * `manager_index()` and `/manager/controller/index`
 *
 */
//Configure::write('Routing.prefixes', array('admin'));

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


Authake error

2014-05-14 Thread Julio Rodriguez
Hello, 

I'm using authake (https://github.com/mtkocak/authake) and getting the 
following error after successful login:
Anyone know how to resolve this?

*Warning* (2): array_merge(): Argument #1 is not an array 
[*CORE/Cake/Routing/Router.php*, line *1119*]
Code Context

array_merge - [internal], line ??
Router::reverse() - CORE/Cake/Routing/Router.php, line 1119
AuthakeComponent::getPreviousUrl() - 
ROOT/plugins/Authake/Controller/Component/AuthakeComponent.php, line 194
UserController::login() - ROOT/plugins/Authake/Controller/UserController.php, 
line 437
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 490
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 185
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 160
[main] - APP/webroot/index.php, line 108



TIA


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