Ok so i've gotten as far as instantiating the target controller (i assume
this is the right approach...)
how do I render its output from another controller???
On Mon, Dec 27, 2010 at 9:35 PM, Greg Skerman wrote:
> I should explain a bit better
>
> What i'm trying to do is allow the admini
App::import the parts of cake needed by your tests
See
https://github.com/markstory/cakephp_menu_component/blob/master/tests/cases/components/menu.test.php
- S
On 28 December 2010 04:54, John Maxim wrote:
> I went through Testing at http://book.cakephp.org/view/1196/Testing
>
> Can we crea
Solved, thanks, Ryan.
On Dec 28, 12:19 pm, Ryan Schmidt wrote:
> On Dec 27, 2010, at 21:29, John Maxim wrote:
>
> > On Dec 27, 8:12 pm, euromark wrote:
> >> why dont you look in the many available github reps?
>
> > What are *reps ??
>
> Short for "repositories" -- collections of files.
Check ou
> create separate apps which use separate dbs, not one app where you
> test everything; check the book re useDbConfig; follow a tutorial
> demonstrating how to use the test suite. with that your question
> regarding db config should be resolved.
I think I found it, isn't it this one? Testing 4
I went through Testing at http://book.cakephp.org/view/1196/Testing
Can we create any kind of test in that suite? Are there limitations to
what we are able to test ? or what we can't test on the Test Suite?
Let's say I want to test ACL scripts on the Test Suite?
Check out the new CakePHP Questio
On Dec 27, 2010, at 21:29, John Maxim wrote:
> On Dec 27, 8:12 pm, euromark wrote:
>> why dont you look in the many available github reps?
>
> What are *reps ??
Short for "repositories" -- collections of files.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
th
Hi euromark, thanks I think the closest to what I'm looking for is
from the 3rd link. I didn't know about the github available *reps.
What are *reps ??
regards,
Maxim J.
On Dec 27, 8:12 pm, euromark wrote:
> why dont you look in the many available github reps?
>
> https://github.com/neilcrook
For the example edit is a Auth only access function and User hasMany XModel
so there would need to be an $id to pull the correct record so passing the
$id is needed. Unless I am not following what your saying?
Thanks,
Dave
-Original Message-
From: cricket [mailto:zijn.digi...@gmail.com]
Hi Jeremy, Thanks for your link will definitely look into that.
~~Continue my question~~
I was going to ask about using this: http://book.cakephp.org/view/1027/query
There are 2 options if I'm correct based on cookbook 1.3
~~
Rather than using an auto-increment key as the primary key, you may
als
On Mon, Dec 27, 2010 at 4:54 PM, Dave Maharaj wrote:
> Is there a better way to check if person requesting a record is the owner?
>
>
>
> I am currently doing this for checking but is there a better cleaner way?
>
>
>
> EXAMPLE**
>
>
>
> function edit( $id = null) {
>
> //attempt
>From a normalized standpoint, you either have no need of the "reviews"
table and should move the comments field into the "cars_users" table,
OR
If you need the comments, shouldn't they be linked to the individual
id of the "cars_users" table itself? so cars_users=>id to users for
user comments?
I am writing an application that will allow two different types of
Users (tenant and manager) to create different linked objects
(properties, leases, and User), which they will be able to share.
Here is an example of how I want it to work:
1. A tenant creates and account and adds his Property and
Is there a better way to check if person requesting a record is the owner?
I am currently doing this for checking but is there a better cleaner way?
EXAMPLE**
function edit( $id = null) {
//attempt to get the record belonging to Auth->User
//basically just a find->('f
On Mon, Dec 27, 2010 at 7:10 AM, Leandro Montero wrote:
> So...nothing to say??
Well, what have you done to debug the problem? Have you checked the
logs (both Cake's and Apache's)? Have you debugged $this->data? Does
the file upload array exist? If so, what error value is there? What
abou
On Dec 27, 2010, at 10:02, Jonas wrote:
> This variable:
> suhosin.post.max_value_length
>
> is set to 65000 by default in my apache2 server. If I change it to
> 130 everything works.
>
> I guess it's not a good idea to change the variable for the whole
> site?
I don't see why it would be
On Mon, Dec 27, 2010 at 11:02 AM, Jonas wrote:
> Hello,
>
> I have one form with a lot of data in it (easily 200 people, with
> firstname, surname, date of birth, gender etc) but when I post the
> data, $this->data is cut in half.
>
> This variable:
> suhosin.post.max_value_length
>
> is set to 65
On Mon, Dec 27, 2010 at 7:33 AM, WhyNotSmile wrote:
> Hi everyone, I'm using a plugin from the bakery, and having trouble
> with it. I think it was working a few days ago, so it's maybe
> something I've done that's caused the problem.
>
> The problem is that the controller doesn't seem to be find
Yeah I played around with that setting as well, never changed
anything. All I seem to be able to do is separate logging into
different files based on my log statement, but I can't turn off debug
logging.
Thanks!
On Dec 27, 1:20 am, Vivi Vivi wrote:
> look at
> define('LOG_ERROR', 2);
>
> On 12/2
Hello,
I have one form with a lot of data in it (easily 200 people, with
firstname, surname, date of birth, gender etc) but when I post the
data, $this->data is cut in half.
This variable:
suhosin.post.max_value_length
is set to 65000 by default in my apache2 server. If I change it to
130 ev
Hi Amit - thanks for the reply.
I've done it but no joy. One way I made it appear in the view form was
to change the parent_id argument for parentUsers but in that case when
I tryed to insert another record the parent_id column gets a null
value. Another information that I should've mentioned is t
Happy Holidays for all! And thanks for the good work!
Cheers,
Everton Yoshitani
On Mon, Dec 27, 2010 at 5:23 AM, Meroe Meroe wrote:
> Many thanks!
>
>
> On Sun, Dec 26, 2010 at 9:59 PM, huoxito wrote:
>
>> great! really hope to get to completely understand how cake works to be
>> able to be a
Hi everyone, I'm using a plugin from the bakery, and having trouble
with it. I think it was working a few days ago, so it's maybe
something I've done that's caused the problem.
The problem is that the controller doesn't seem to be finding the
model functions. So, I'm getting:
Fatal error: Call
why dont you look in the many available github reps?
https://github.com/neilcrookes/CakePHP-GData-Plugin
https://github.com/neilcrookes/CakePHP-Twitter-API-Plugin
https://github.com/neilcrookes/CakePHP-Yahoo-Geo-Planet-Plugin
and many more
On 27 Dez., 07:26, John Maxim wrote:
> Hi,
>
> Thank
So...nothing to say??
On Dec 24, 12:25 am, Tilen Majerle wrote:
> ouu...that's other problem then :D
> --
> Lep pozdrav, Tilen Majerlehttp://majerle.eu
>
> 2010/12/23 Leandro Montero
>
> > That's exactly what i'm doingbut nothing.
> > I mean, my code worked perfectly but suddenly it
I should explain a bit better
What i'm trying to do is allow the administrator of the site to manage the
URL structure, without having to expose them to the routes file which would
require programming experience or basic understanding of how the router
works to operate.
The Admin would decide
but $this->redirect will change the URL will it not?
On Mon, Dec 27, 2010 at 9:25 PM, Jeremy Burns | Class Outfit <
jeremybu...@classoutfit.com> wrote:
> You do that with $this->redirect...
>
>
> Jeremy Burns
> *Class Outfit*
> *
> *
> jeremybu...@classoutfit.com
> http://www.classoutfit.com
>
You do that with $this->redirect...
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 27 Dec 2010, at 11:22, Greg Skerman wrote:
> Not actually after a redirect,
>
> I'm trying to hand control to another controller (in a simillar way to what
> request action
Not actually after a redirect,
I'm trying to hand control to another controller (in a simillar way to what
request action does), from within a controller, and then render the
output
So
/nodes/view//
Looks up the Nodes table, for a resource.
the resource record contains Controller and Actio
I would always have a non-inteligent single field as the primary key (id) and
then have a multiple field unique index on the other two fields. I'd also index
them independently for joins and performance. Your second solution looks
closest and it's also the way Cake works. See
http://articles.cl
Happy to be corrected, but I think browser mechanics mean that everything will
be lost when you do a redirect. The best solution is to store the stuff you
want transferred in the session and retrieve it in the other action. You can
also pass small amounts of data as a parameter.
Jeremy Burns
Cl
Anyone got any idea? sorry if this is a completely newb question... Open to
suggestions if its a downright stupid idea..
On Mon, Dec 27, 2010 at 12:17 PM, Greg Skerman wrote:
> Yeah that will only work inside the same controller, where I am trying to
> hand control from one controller to a
look at
define('LOG_ERROR', 2);
On 12/27/10, mikeottinger wrote:
> Hi All, playing with logging levels in my cake 1.2.7 app, I notice
> that even if I set this:
>
> Configure::write('debug', 0);
>
> I still get debug statements written to the debug.log. Is there really
> no way to turn these off?
32 matches
Mail list logo