I have created a cakephp site and uploaded to my staging server. The Url is
http://xecutiontech.com/rr-2/
In my staging server the site has been uploaded to the folder named rr-2
that's why the url looks like xecutiontech.com/rr-2. The site looks ok if I
hit the above mentioned url.
My client
Hi guys,
I need store the currently logged in user as a reference for the created
register, the cakebook sample is:
public function add(){
$article = $this-Articles-newEntity();
if ($this-request-is('post')) {
$article = $this-Articles-patchEntity($article,
$this-request-data);*
Hey man,
I need skinny controller. I need remove this code to controller for using
in Model/Entity or Model/Table.
On Thu, Jul 16, 2015 at 11:17 AM, 'Sajoscha Sauer' via CakePHP
cake-php@googlegroups.com wrote:
Hi Rafael,
$userid = $this-Auth-user('id');
$this-request-data['user_id'] =
Hi guys,
I have question for Cake Events conventions:
$event = new Event('Model.Order.afterPlace', $this, []);
“*Order*” or “*Orders*” ?
I abstract modelAlias using in AppTable:
public function afterSave(\Cake\Event\Event $event, $entity, $options) {
if ($entity-isNew()) {
Hi Rafael,
$userid = $this-Auth-user('id');
$this-request-data['user_id'] = $userid;
$article = $this-Articles-patchEntity($article, $this-request-data);
if ($this-Articles-save($article)) {
…
That works for me, hope it helps!
Cheers,
Sajoscha
On Jul 16, 2015, at 3:59 PM, Rafael
Hi guys,
I need loaded components in my Models, actually Auth Component, for store
user id logged. In old version, CakePHP 2.x, i using in my model:
App::uses('AuthComponent', 'Controller/Component');
public function beforeSave() {
if (!$this-id) {
$this-data[$this-alias]['user_id']
yes and yes
the additional files don't hurt :)
Am Dienstag, 14. Juli 2015 17:13:31 UTC+2 schrieb brett.shi...@gmail.com:
Ok, that example clears up my confusion. Basically when cake is
required within the composer file, it gets downloaded to the Vendor
folder.
I then need to edit my
Please check your web server(nginx/apache) logs . without further
information ,I can't say what's wrong.
2015-07-16 14:03 GMT+08:00 Amitava Pramanik
amitava.xecution.technolog...@gmail.com:
I have created a cakephp site and uploaded to my staging server. The Url
is
The CakePHP core team is happy to announce the immediate availability of
CakePHP 3.0.9. This is a maintenance release for the 3.0 branch.
Bugfixes
You can expect the following changes in 3.0.9. See the
[changelog](http://cakephp.org/changelogs/3.0.9) for every commit.
* Index and