For the moment, even though PHP 5.5 has namespaces, it just seems to work
if you don't use them (namespaces, that is).
You will need to have an App::uses() statement to use load the trait, and
you'll also need the 'use' statement in the class.
And given that namespaces are not in use, also keep
My original question on Stack Overflow
[http://stackoverflow.com/questions/21394852/whats-the-correct-method-for-using-traits-and-namespaces-for-cakephp-2],
and content copied here, should that disappear.
I'm using CakePHP 2.4.5 and PHP 5.5, and would like to use a trait.
I have a trait in Uti
>
> plz uncomment rewrite in apache config file ..
--
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 rece
Hello everyone, I'm having trouble with the authentication system, the
scenario is as follows:
I have a database with two tables (Users and Posts) Posts in have a user-id
field.
My PostsController.php with add () function
set('posts', $this->Post->find('all'));
}
public functi
Is there any public branch where can we see how new FormHelper will be
implemented?
Would love to play with 3.0's little more ...
R
--
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
OK... it was me. All me. I was missing a semi-colon ;p
I do however have a new issue. I manage to call in my Component, but that
component calls one of my controllers and this is now throwing an error
when running in the console. I need all the functionality to be accessible
to both the web bas
Hi folks,
I use mPDF and the solution proposed in this excellent post [1]. Everything
works well if the action uses GET. Example: /controller/action/2.pdf wil
use the view.ctp inside the pdf folder and render the 2.pdf file.
But there are cases that I have to use a form to POST some parameters to
Hi All,
I am new to the cake console and especially to creating a shell to run
in/on it. The research I have done says it should be possible to call App
from the shell and the examples I have seen use code like the below to do
so.
out("Processing...\n");
$collection = new ComponentColl