No, $this->headers seems to always return an empty array
On 25 Aug, 06:02, jeremyharris wrote:
> When you debug the $this->headers var, what do you get back? Anything
> at all?
>
> If you're not getting anything back then it might be a problem with
> testAction, although there are tests that show
When you debug the $this->headers var, what do you get back? Anything
at all?
If you're not getting anything back then it might be a problem with
testAction, although there are tests that show it works.
On Aug 21, 1:48 am, Christophe Roblin wrote:
> Hi,
>
> I've tried searching the new docs abou
ok thanks.solved already.
On Thu, Aug 25, 2011 at 1:37 AM, Ryan Schmidt wrote:
>
> On Aug 24, 2011, at 07:59, Mohd Hasnol wrote:
>
> > Let me explain. i have 2 roles which are admin and members.it can be
> many admin and members. For admin i can add new admin using add function in
> users control
On Aug 24, 2011, at 07:59, Mohd Hasnol wrote:
> Let me explain. i have 2 roles which are admin and members.it can be many
> admin and members. For admin i can add new admin using add function in users
> controller and using users table. For member i would like using add function
> in members c
either way you should omit the trailing ?> anyway - in all php files
On 24 Aug., 17:34, Teddy Zeenny wrote:
> Are there any spaces or new line characters after the " ?> " ?
>
>
>
>
>
>
>
> On Wed, Aug 24, 2011 at 6:22 PM, pang wrote:
> > Hi,
>
> > I met a very odd problem, I create a new contr
Wow. That was the most comprehensive answer I have ever had to any
question ever! Thanks for all that.
I think I'm going to have to go off and do some learning to achieve
all that but clearly the first step is get the sensitive stuff into
the database. Thanks for explaining everything so clearly.
Fixing warnings and notices is not the answer to his question--With debug
mode off, he should not be getting such messages displayed. At worse, he
should be seeing formatted Cake errors or simply a blank page if something
is wrong.
Perhaps the warnings/notices/errors are being thrown before you
Are there any spaces or new line characters after the " ?> " ?
On Wed, Aug 24, 2011 at 6:22 PM, pang wrote:
> Hi,
>
> I met a very odd problem, I create a new controller which request user
> session to access. the session name is called "User".
>
> When I have ?> at the end of the controller fi
Sarah,
Regarding point 1, if they got into your web server via FTP, they would have
no way of initiating a database connection to get at the data. If they
actually broke into your web server directly, then it is true that they
could look up your database connection details and run MySQL queries
Hi,
I met a very odd problem, I create a new controller which request user
session to access. the session name is called "User".
When I have ?> at the end of the controller file, I can't read session
data, $this->Session->read('User') is empty,
But when I delete the trail signs ?> in the contro
Here's a simple tutorial to help get you started:
http://sopix.wordpress.com/2010/12/28/media-plugin-of-cakephp-tutorial/
Ben
--
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
wi
yes you're right. but the debug mode is for developing purposes and my
question belongs to control the debug mode in app controller.
On 22 Aug., 10:28, "Dr. Loboto" wrote:
> The best way is to fix that warnings and notices. Good app never
> throws this kind of shit.
>
> On 18 авг, 20:18, p r
is it using joint table? But im not clear about it. Sorry, im newbie.
On Wed, Aug 24, 2011 at 8:59 PM, Mohd Hasnol wrote:
> Hi,
> Sorry :).
>
> Let me explain. i have 2 roles which are admin and members.it can be many
> admin and members. For admin i can add new admin using add function in user
Hi,
Sorry :).
Let me explain. i have 2 roles which are admin and members.it can be many
admin and members. For admin i can add new admin using add function in users
controller and using users table. For member i would like using add function
in members controller and members table since members h
Hey there Ben, thanks for the reply, I understand what you're saying
but have a couple of questions:
With regards you point 1 - if someone got access to your web server
would they not be able to get onto your database and get at the paypal
info anyway?
Re point 2 - crikey, database is the way to
maybe its just me - but i really can't follow you.
after reading it three times :)
also the headline does not seem to make sense to me..
please clarify (with live example code etc)
On 24 Aug., 11:18, nOLL wrote:
> Hi,
>
> Is it possible to add in attributes from multiple controller into one
>
There is a cake way for creating subqueries!
See: http://book.cakephp.org/view/1030/Complex-Find-Conditions and scroll
down to the section Sub-queries.
There is an example how to build subqueries the cake way and get efficient
calls to the database.
I would suggest that you are trying to hit th
Hi, I'm trying to do the same with latest Cake2.0
/app/Controller/AppController.php/
App::uses('Controller', 'MyAppController');
class AppController extends MyAppController {
function test(){ die("boo"); }
}
but cake can't find the Controller/MyAppController.php file ("Fatal
error:
Hi,
Is it possible to add in attributes from multiple controller into one
model?
I would like to use certain attributes from other model(username and
password only in members table) into users table.
therefore, members could login to the website based on username and
password that fill in by the
Debug was already set to the highest level listed (2). I get errors for
everything else, but apparently in CakePHP 2.0 Beta, there is some strange
behavior if you don't enable a plugin but try to use it:
1. Component added to AppController for a non-enabled plugin made the entire
AppController
That was the first thing I changed--the problem turned out to be that I
wasn't enabling the module in bootstrap.php. Whoops!
Thanks,
Ben
--
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 hel
and to differ between one attribute "visible=true" and "visible=false"
i wanted to make two paginates with the same model in the same view.
but that wont work in cake...
On Aug 24, 10:03 am, Tomfox Wiranata
wrote:
> i wouldnt be surprised if i did :).
> but i am using the same action "profile" be
Turn on debug, it should,have shown an error message about the plugin not
being loaded
--
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
i wouldnt be surprised if i did :).
but i am using the same action "profile" because the index of the
books is shown on that profile... or to be more specific, in the view
"profile.ctp" i included an
"$this->element" that shows all books, that each user is following.
that is, why i am using one pa
Make sure your components extend Component and not Object.
On Wed, Aug 24, 2011 at 6:48 AM, Ben McClure wrote:
> Hmm... actually I guess it is called but I have some sort of problem with
> one of my components that was preventing AppController from being used
> apparently (although no errors wer
I agree that there are better single query methods in pure SQL, but my
recommendation keeps it in a Cake stylee (rather than using $model->query). I'd
be happy to be put right, but even if you did it using joins in a Cake find, I
think it'd still execute two queries.
Jeremy Burns
Class Outfit
Tomfox,
I think you're approaching this from the wrong angle.
When a user is viewing their profile you're running a different action
to when viewing the index of books. In each of these actions you would
run different paginates/finds on the book model to find what you're
after.
/users/profile/$u
27 matches
Mail list logo