Thanks, Jeremy. I think I'm going to opt for roughly the same thing. Use my
pushSSL() function - analogous to your __unforceSSL() - on all controllers
that don't require SSL, then use the switching style for those that do
require SSL.
It just seems weird to me that they have a function in Secur
Can anyone help me out, here?
--
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 unsubscribe from this group, send email to
cake-php+unsub
Ah, well, then I'm out of my element, Donnie. (Sorry for the Big Lebowski
reference).
--
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
Considering that this is the way CakePHP handles errors, yes, it is
certainly the most efficient option on its face. Others may dispute that.
I wouldn't really consider using Routes, because the routes are determined
*before* the existence of any Controllers or Actions is confirmed. I do,
howev
Waterschaats,
Have a look at the Error Controller:
http://book.cakephp.org/1.3/view/1188/Error-Handling
For more information on the types of pre-existing errors - including the
missingController error, have a look at the API:
http://api.cakephp.org/class/error-handler#method-ErrorHandlermissingC
Here's what I don't get about the Security Component: if there's an option
to use the blackholeCallback for requireSecure, why is there no option to
provide a callback for anything else?
I'm using this system as outlined in the book to force SSL on certain
actions. But I'd like to force people
Thanks for this.
--
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 unsubscribe from this group, send email to
cake-php+unsubscr...@google
Ok, many tutorials and bits of code for CakePHP have pointed to using the
following code to redirect traffic from HTTP to HTTPS:
// Only allow HTTPS connections for Admin routes:
if(isset($this->params['admin'])) :
$this->Security->blackHoleCallback = 'forceSSL';
Does anybody know a reason that the Html Helper contains a method to output
table cells and headers, but not a method to output tables? Like, at least
tableStart and tableEnd?
It just looks sloppy to echo '' when everything else is done via the
helper.
--
Our newest site for the community: Ca
Thank you for this information. Basically, I should just not count on CSRF
protection in AJAX, which I get. I'm assuming I must be making some change
to the form in question via AJAX, I guess I'll have to turn off the
validation.
--
Our newest site for the community: CakePHP Video Tutorials
h
I've finally figure out that CakePHP's Security Component will validate form
fields, dumping the user out on a 404 if anything is wrong. Great, but now
the question is: what is wrong?
According to the documentation, the form should be setup via the Form
Helper. It is. But other than that, no gu
Can anyone tell me *why* this would be? And more to the point, why I
wouldn't want to be able to specify a character set that works in all modes?
Here's the thing: because Apache wants to default to charset=iso-8859-1,
that basically means any non-iso characters get mangled in the process.
Beca
Bump. Anybody? Anybody?
--
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 unsubscribe from this group, send email to
cake-php+unsubscr...
Ok, in the app_controller, I've included my Security component and also
added this little snippet of code for admin pages:
if(isset($this->params['admin'])) :
$this->Security->blackHoleCallback = 'forceSSL';
$this->Security->requireSecure();
endif;
That one's strai
Wait. Dang. I just figured it out. Thanks for listening, people.
--
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 unsubscribe from this
I'm getting the error, "DbAcl::allow() - Invalid node" when attempting to
allow node access. The parameters are:
$aro= "1"$aco = "controllers/Pages/delete"$actions =
"*"$value = 1$perms = false$permKeys = array(
"_create", "_read",
Well, there you go. It was my jQuery function that was supposed to clear my
form. Was removing the values on the radios instead of removing 'checked'
attributes.
Thanks again, Cricket!
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakeP
Hey, Cricket!
Its mostly AJAX-y stuff, so the form->create is simply:
echo $form->create(false, array('default'=> false, 'id'=>
'nodeMeta'));
The Model in question is called NavigationNode and so the named field
generally look like 'data[NavigationNode][redirects_to]' and so on.
--
Ou
$form->radio('acts_as', array('PRI' => 'Primary', 'LINK' => 'Link to', '' =>
'Not Set'))
When the above code renders, I get no values for any of the radios that are
created. The radios are created, but no values:
Primary
Link to
Not Set
I am basing my code off of what is in the Book here:
h
Initially, my thought was to have a central website, and much like
WordPress.com and .org, I suppose there will certainly be a central
demonstration of how it works.
But as OSS goes, of course, it should be downloadable to be implemented
anywhere that fits. Someone wants to run a local show for
Initially, my thought was to have a central website, and much like
WordPress.com and .org, I suppose there will certainly be a central
demonstration of how it works.
But as OSS goes, of course, it should be downloadable to be implemented
anywhere that fits. Someone wants to run a local show for
Fair question. But my thinking is: build the tool and let the politicians
decide. I actually don't think this is a question of politicians: it's a
question of the administrators and the managers that actually run the
government and free the politicians to bloviate!
Check out the new CakePHP Que
Hey! Don't want to pollute the group with extraneous crap, but I thought
maybe some of you CakePHPers would take an interest in a new OSS project I'm
trying to get off the ground, based on CakePHP:
http://code.google.com/p/cakephp-politi/
Check out the new CakePHP Questions site http://cakeqs.o
I'm guessing there is more to the problem than the code you're presenting.
Like, where is $id coming from?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
Ah! Thank you, Mr. Loboto!
Hmm... Really seems like that information should belong somewhere else
besides the "Migrating from 1.2 to 1.3" section, doesn't it? No wonder I
never found it.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related quest
You actually want to reference the model then the aco in question. For
example, if you have a Users model and you want to identify a user with an
id of 1, you would actually write:
User.1
Not simply "1." That's very confusing and ambiguous in the documentation.
Took me a while to figure it out.
Because I am setting up a core web engine that will drive a number of
different sites for my company, it makes sense to me to change the location
of the /webroot and /views directories. That way I can keep those under
separate version control and develop the front-end distinctly from the
back-e
Hmmm.. What version of Outlook and what OS? I'd like to know why that isn't
working through CakePHP...
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"Cak
#x27;license', 'rating'));
$xml = $this->render(null, 'blank', '/xml/ups');
$this->output = '';
return $xml;
}
The gist here is that we render the output of a template file into a
variable and then pass it back to wherever its needed.
On D
try not to go outside that
framework too much to bring other stuff in.
On Dec 3, 11:39 am, ryandesign wrote:
> PHP has several ways to generate XML already SimpleXML for
> example. Wouldn't using one of those methods be sufficient?
>
> On Dec 3, 9:34 am, DragonFlyEye wrote
Ok, I'm sure I'm just missing something remarkably obvious, so feel
free to hit me over the head. I'll thank you.
I need to send SOAP requests to UPS for shipping info. As such, I need
to create an XML "file" that can be sent to them, the results of which
being obviously the thing my audience care
I've submitted a patch to Lighthouse. Hopefully they adopt it into the
core. Meanwhile, I'm using my own patched version
http://cakephp.lighthouseapp.com/projects/42648/tickets/1155
On Sep 28, 1:16 pm, DragonFlyEye wrote:
> Ok, no one seems interested in biting on this, so
herefore numerically indexed) value in it will not work once the
Helper has inserted its own value. This is a pretty clear bug in the
code, which sucks because as of this moment, I have no idea what to do
to fix the issue apart from putting in a bug report. Which I guess I
shall do now...
On Sep
Ok, I don't understand this. I'm creating a form which for reasons I
won't go into displays on a page with human-friendly URLs. So, I don't
want to have to use a URL that includes a numeric ID for the database
node I'm working on. I've run into two problems I find exceptionally
odd:
1. When creati
It's not so much wrong as incomplete. Any URL *beginning* with '/
cooks/' will be handled in the above-quoted fashion. But if it begins
*and ends* with '/cooks', without another routing statement, you'll
get the error you're talking about. Have a look at the pre-defined
routing for pages that's alr
Doh!
Never mind. AJAX snafu caused my problem. Guess I didn't think you
could save to a MySQL database id field if it was auto-increment.
On Aug 26, 12:23 pm, cricket wrote:
> On Wed, Aug 25, 2010 at 1:40 PM, DragonFlyEye
> wrote:
> > Here's an interesting one. I
wrote:
> On Wed, Aug 25, 2010 at 1:40 PM, DragonFlyEye
> wrote:
> > Here's an interesting one. I don't know if this has something to do
> > with using the Tree model behavior or not. What is happening is that,
> > when I go todeletearecord, the system clears all val
r' error; doesn't work for any request
> starting with /blog/
>
> Router::connect('/blog/*', array('controller'=>'news_articles'));
> = /blog/ -> shows index (working)
> = /blog/view/1/ -> shows index; should show view()
>
> Rout
That all looks correct, and it would be the same in 1.2. You might
write the following, though:
Router::connect('/blog*', array('controller' => 'news_articles'));
That would push all requests for the /blog directory to the right
controller, then you can create the actions you want and they'll get
Here's an interesting one. I don't know if this has something to do
with using the Tree model behavior or not. What is happening is that,
when I go to delete a record, the system clears all values except for
the ID and leaves the record where it was.
The delete() function seems pretty straight fo
question! I want to know the answer too :P
>
> 2010/8/19 DragonFlyEye :
>
> > Is it possible to configure admin routing that will handle plugins? Or
> > is it better to create an "AdminController" that will handle
> > administration of my site? Or is there another op
Is it possible to configure admin routing that will handle plugins? Or
is it better to create an "AdminController" that will handle
administration of my site? Or is there another option entirely?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related
Yeah, I tried it because I was concerned with some of the performance
comparisons I'd seen between CakePHP and other PHP frameworks. Didn't
spend a whole lot of time on it, but really was not impressed at all.
What is the point of a framework that seems to require MORE coding
than just doing thing
You should include some code so we know what you're talking about.
Either way, probably not an issue with CakePHP.
On Jul 30, 4:37 am, Petter Andreas Strøm wrote:
> Hi,
>
> I have some problems with using GD in Cakephp. Output from i.e. the
> imagejpeg() function reports just wrongly encoded dat
More in my continuing saga of trying to fix the horrible data mess my
company has...
The company's original SQL Server databases are riddled with trademark
symbols, copyright symbols and registered trademark symbols entered
directly into the data. These symbols present a fairly significant
challen
point. what do you mean by make sure the
> addresses are really the way content is being served?
>
> > 2. Cookie settings in Configure::write(): make sure they're set for
> > the exact same location, not /checkout and /wp
>
> i am just confused about this suggestion.
&g
First, have a look at the output query - if you have the element('sql_dump'); ?> set in your layout, it should be at the
bottom. That should give you some clues as to why it's not working.
But you might want to post your $hasMany association to this group so
we can help better. Are you actually sp
s at least as unsuccessful so far as doing it the
CakePHP way and for a variety of reasons, I'd prefer to go CakePHP.
Thanks to anyone who can help.
On Jul 22, 3:15 pm, DragonFlyEye wrote:
> Not really. We're talking about thousands of products for a start. And
> I expect to
Why two separate applications for this? Is one not CakePHP?
Offhand, here's a few things:
1. Localhost can often be a tricky thing for cookies and sessions.
Make sure those addresses are really the way content is being served
up to the browser.
2. Cookie settings in Configure::write(): make sure t
Why do you have a completely separate application for the checkout
aspect of whatever it is you're doing? Seems like if they're both
built in CakePHP, you should probably use the same application.
A couple ideas:
On Jul 30, 10:48 am, Kei Simone wrote:
> Hi all,
>
> i have 2 cake apps. localhost
:
>
> $results = Sanitize::clean($results);
>
> But, wouldn't it be simpler to just write a script that cleans up the
> DB once and forget about it?
>
> On Thu, Jul 22, 2010 at 2:06 PM, DragonFlyEye
> wrote:
> > I'm sure I'm missing something silly, bu
I'm sure I'm missing something silly, but I cannot get this Behavior
to work. I've got data with a bunch of nasty characters in the
database that I need to avoid or escape before presenting to the
browser. Also, it's got a lot of white space at the end of much of the
data because someone erroneousl
count = 0
>
> Cheers,
> Graham / Predominant
>
> On Sun, Jul 18, 2010 at 9:34 PM, DragonFlyEye
> wrote:
> > If I have a relationship where RatingEvent hasMany Ratings, how would
> > I go about retrieving all records where there are no Ratings
> > associated with
If I have a relationship where RatingEvent hasMany Ratings, how would
I go about retrieving all records where there are no Ratings
associated with a RatingEvent?
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this mes
Ok, for those who happen upon this thread looking for a method of
ordering their Tree children, I did a bit of digging into the actual
code and discovered that there are in fact more arguments to the
children() function than are documented in the Book. I've made
corrections to the Book which will h
53 am, Shaz wrote:
> Nope sorry - I haven't any points during which I'd need to reorder a
> tree, and I'm struggling to think of where I'd need do it.
>
> On Jul 8, 1:02 pm, DragonFlyEye wrote:
>
> > Bump. Does anyone out there have any experience with this
Bump. Does anyone out there have any experience with this?
On Jul 7, 9:04 am, DragonFlyEye wrote:
> Better formatting for my function:
> public function admin_save() {
> $this->layout = 'ajax';
> $this->autoLayout = false;
> $this->
('field' => 'line',
'order' => 'DESC'));
endif;
endif;
$this->header('Content-Type: application/json');
echo json_encode($response);
return;
}
On Jul 7, 8:08 am, DragonFlyEye wrote:
> The CakePHP documentation has zero
The CakePHP documentation has zero information on this function. The
API has very little more. I've looked at the code, but am not sure I
fully understand what it's supposed to be doing.
I was under the impression that I could pass reorder() a field out of
the table and it would alter the lft and
What I need, in other words, is a method to say, "this result set will
have a value that should be matched in this result set." No idea how
to do that or if it's even possible.
On Jun 30, 3:30 pm, DragonFlyEye wrote:
> Ok, so what seems to be the case is that the conditi
rimary key. The SubgroupPage table uses
subgroup as it's primary key but contains the value pageid, whereas
the PageSettings table has pageid for the primary key.
On Jun 30, 3:21 pm, DragonFlyEye wrote:
> Hello, again, cricket!
>
> Thanks for the help, but I'm still ge
Hello, again, cricket!
Thanks for the help, but I'm still getting the WHERE [PageSettings].
[pageid] = 'SubgroupPage.pageid' thing. I've never seen CakePHP react
to a query in this manner before!
On Jun 30, 2:30 pm, cricket wrote:
> On Wed, Jun 30, 2010 at 10:15 AM,
I'm trying to make an association between two models that do not use
the primary key as the association. I'm not sure why I'm getting the
results that I am from this:
class SubgroupPage extends AppModel {
var $name = 'SubgroupPage';
var $useTable = 'menu_subgroup_pag
It depends a lot on what the function is and what you plan to do with
it. However, as a general explanation:
Since all Controllers extend the app_controller in the /cake folder,
you can create your own app_controller and put it in the /app/
controllers folder and add your global function there. Th
The company I work for has a very loosly-organized system of
referencing pages which bears a modest resemblance to a Tree
structure. Their "menu" table contains pairs of "pageid" and
"levelid," with another element "line" to indicate the order in which
they appear. Any pageid could potentially be a
I'll bet this is obvious, but my Model data actually contains some
HTML markup (I know, but you work with what you have) and that markup
is being converted to entities before being displayed on the page. Is
this something that CakePHP is doing? Is it happening in the Model or
the Controller? How ca
This isn't really a CakePHP question. Have a look at javascript's
eval() function:
http://www.w3schools.com/jsref/jsref_eval.asp
On Jun 24, 10:56 am, Joakim wrote:
> Hello,
>
> I have a ajax link that returns a json datastructure(writes out the
> json datastructure in the view) and i want to get
r,
you get stuck with the old mistakes.
On Jun 22, 2:33 pm, cricket wrote:
> On Tue, Jun 22, 2010 at 1:01 PM, DragonFlyEye
> wrote:
> > I'd just like to get an opinion from the group:
>
> > I've not used Behaviors before, but I have been looking into it a
> > lit
() function.
>
> http://php.net/manual/en/function.setcookie.php
>
> On Jun 21, 5:50 pm, DragonFlyEye wrote:
>
>
>
> > My cookie variables:
>
> > function beforeFilter() {
> > $this->Cookie->name = 'mag_sess_hst'
I'd just like to get an opinion from the group:
I've not used Behaviors before, but I have been looking into it a
little bit since the one table I'm working with on my current project
is sort of a tree format. It's not an actual tree format and would not
work with the Tree Behavior native to CakeP
Cookie->domain = 'localhost';
$this->Cookie->secure = false; //i.e. only sent if using secure
HTTPS
$this->Cookie->key = '!lftmD5b!nry'; // Dirt Sleep
}
On Jun 21, 12:48 pm, DragonFlyEye wrote:
> Ok, upon further diag
Ok, upon further diagosis, I've discovered that one of my issues had
to do with the fact that I'm developing locally: because the virtual
machines I was browsing these pages on were using the IP address and
I'm developing internally, there was some confusion as to what the
proper cookie domain shou
I'm a bit lost at the moment. I'm trying to use both the Cookies and
the Session components in the same setting and I'm not sure, but it
doesn't appear to be working correctly.
What I want to be able to do is this: I want to be able to set a
Session cookie for a visitor to keep track of their curr
By the way, I did a bit more experimenting with find('list') and
automagic selects. Posted my findings here in case anyone else needed
them:
http://holisticnetworking.net/cake/2010/06/interesting-form-input-behavior-for-selects/
On May 24, 4:48 am, WebbedIT wrote:
> Try the following:
> $state
Bingo!
Thanks for the help.
On May 24, 4:48 am, WebbedIT wrote:
> Try the following:
> $states = $this->Location->find('list', array(
> 'fields' =>array('Location.state', 'Location.state'),
> 'group' => array('Location.state')
> ));
>
> Paul
>
> Check out the new CakePHP Questions sitehttp:/
I've searched the group a bit and haven't found anything that seems to
exactly solve my problem. Let me begin with the basics:
This is a website which I am transitioning from an old ASP site into
CakePHP. The site is driven by an MS-SQL database and being served
from a Macintosh XServer running Ap
By default it appears as though, if I set up a find('list') in the
controller, CakePHP wants to use the ID field in the query regardless
of what I specify (maybe there's an override I don't know about?).
Then when I output that list into the form as a select, it wants to
use the ID field for the va
Ah! Thanks for the reply, Walther. Guess you solved it for both of us!
On Mar 4, 1:43 am, Walther wrote:
> Don't use 'require' ever!
>
> Make use of the tools that CakePHP gives you. In this case
> App::import('Model', 'Order');
>
> As for your problem, it has a very easy solution. Your filename
>
> On Mar 3, 1:42 pm, DragonFlyEye wrote:
>
> > Thanks Dr. Loboto. I'll try reordering the tables and see if that
> > works.
>
> > I see this is a common problem: someone just posted a very similar
> > problem this morning. Anyone else have any ideas
Think outside the box! Rochester New York would be an awesome
location. Or at least, someplace close enough to Rochester that I can
drive to it.
On Feb 24, 11:26 am, Michael Gaiser wrote:
> +San Francisco
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their
I'm having a similar problem. You might want to follow that thread as
well and see if we can resolve our issue!
http://groups.google.com/group/cake-php/browse_thread/thread/7863737f43ef370d/bb09d84d36390086?hl=en#bb09d84d36390086
On Mar 3, 5:08 am, "rain...@gmail.com" wrote:
> Hi
>
> I'm playing
'OrderPayment', ...,
> 'Order') - listed all linked models before the only one really needed.
> Don't know will this help you too.
>
> On Mar 3, 1:12 am, DragonFlyEye wrote:
>
> > Ok, strange behavior which is probably just a misunderstanding of a
Ok, strange behavior which is probably just a misunderstanding of a
n00b, but here goes:
I have models for 'Order,' 'OrderPayment', 'OrderDetail',
'OrderShipment', 'OrderCredit', 'OrderCoupon'. All of these, because
I'm trying to transition from an old system into a new system, have
tables with di
n00b playing around with authentication in CakePHP, here. I've got the
authentication working fine. I can see this because pages which I've
not allow()'ed aren't available if the user is not logged in.
But based on what I've read, both in the documentation and
on http://groups.google.com/group/cak
OK, I'm trying to figure this out and getting wacky results as I test:
I'm playing with custom-built routes in the following format:
/:town-name/:action/:id
The route works fine for correct URLs, but I'm confused as to what
CakePHP does with URLs which don't conform to the regex included in
the
85 matches
Mail list logo