You'd do this on the server side by setting file system permissions or
with .htaccess directives (hardly a Cake question).
The better thing to do though would be to not put it in the webroot to
begin with, if it's not supposed to ever be accessed.
On 17 Nov 2008, at 16:33, bookme wrote:
>
>
i.e. requested
On 17 нояб, 10:37, Pizgin <[EMAIL PROTECTED]> wrote:
> In this example error. Right will like this.
>
> if (isset($this->params['requesed']))
> return $docTypes;
>
> But that does not play a role.
>
> On 17 нояб, 10:31, Pizgin <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi! Found here
In this example error. Right will like this.
if (isset($this->params['requesed']))
return $docTypes;
But that does not play a role.
On 17 нояб, 10:31, Pizgin <[EMAIL PROTECTED]> wrote:
> Hi! Found here such a nasty thing. If you call the method
> controller through requestAction, the latter
Hi,
I am working on a flash application using XML. Flash file and XML is
inside webroot folder. I want to apply permission on XML file so
that no body can access XML files because these XML files contains
some secrete data.
Please tell me how can I apply permissions on webroot/flash/xml folder
Hi! Found here such a nasty thing. If you call the method
controller through requestAction, the latter can not access
methods model with which he works. Maybe it's wrong?
Example:
The method in the controller DocTypesController:
index()
{
$this->DocType->recursive = 0;
$docTypes = $this->D
> > And since you always put all the inputs in a list-like layout, it's
> > most logical to put it inside a list.
>
> First, I tink lists are for lists, you should look at them from a
> semantic point of view and not use the html for layout. Anyway, you
> can change the tags format of the helpers
Dear All,
I am running cakephp 1.2 and had used the bake several times before.
However, I relocated to a new server and then bake does not work on the new
console.
It says..
Client does not support authentication protocol requested by server
Any ideas? Below is the full terminal transcript.
i have problem with cakephp when i call controller class with a model
from another controller , it look like the model didn't map in to that
class i called
here is my code :
---
model : vo.php
--
Thanks!
On Nov 15, 11:38 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> echo $form->input('names', array( 'label' => __('Names', true)));
>
> On 16 Nov 2008, at 13:15, Mateo San Román wrote:
>
>
>
> > Hello
>
> > When I try to use the __() function on
>
> > echo $form->input('names', array(
What's the problem? Do it without paginator component, with
appropriate find conditions. I did such task in version 1.1.
On 17 нояб, 03:14, Alessio <[EMAIL PROTECTED]> wrote:
> I have two models, news and articles.
>
> I need to show them togheter, and paginate togheter because I want to
> show
Hi to every one,
i am using the hasAndBelongsToMany (cake 1.2) using this tables:
profiles, roles, profiles_roles.
the way how it works it`s that the profile has many roles and the
profiles_roles is the middle table, the problem that i have is that in
the edit.ctp is displaying the id of the rol
> please, somebody?
> btw, some people got confused about something, so here's some further
> explaining:
I use a code very similar (ripped is more accurate) to the cake schema
shell to do the table creation thing (using cake schemas instead of
plain old sql), so its db vendor independent.
Howev
> Like the title says, I don't like the html that the form-helper
> outputs.
> So I was wondering if and how I could take part into the developing of
> CakePHP.
You can start with tickets and patches in trac.cakephp.org.
> Because I would like to improve the html-outputs of some of the
> helpers
just update the html helper to do what you want. Just look in the Cake/
libs/views/helpers directory for the html.php. Copy that into your
helpers directory in app/views. Then you can have it spit out whatever
you want.
On Nov 16, 6:01 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote:
> as Marcelo sa
as Marcelo says 2nd point
http://groups.google.com/group/cake-php/browse_thread/thread/efccb52c57a56537
http://api.cakephp.org/class_form_helper.html
2008/11/16 Evert <[EMAIL PROTECTED]>
>
> Like the title says, I don't like the html that the form-helper
> outputs.
> So I was wondering if and ho
On Sun, Nov 16, 2008 at 7:18 PM, Evert <[EMAIL PROTECTED]> wrote:
> (..)
I'm still a beginner in Cake, but I think you don't need to rely in
FormHelper to make your form pages. Knowing the structure
of the generated code, maybe you must type your desired html
code directly into your views for mor
Like the title says, I don't like the html that the form-helper
outputs.
So I was wondering if and how I could take part into the developing of
CakePHP.
Because I would like to improve the html-outputs of some of the
helpers and stuff.
For example, in the blog-application the form-helper creates
please, somebody?
btw, some people got confused about something, so here's some further
explaining:
Some people thought I just wanted to build a cms with an installer
that installs and uninstalls plugins.
That's not completely true. Even if I don't have a cms I still want
Cake to automatically in
hey,
working on a shoping cart. looking to get the following url structure
/category/subcategory/product
say:
/hardware/cpus/Intel-Q6600
added following to the routes
Router::connect('/:cat/*', array('controller' => 'categories',
'action' => 'view'),
array('pass' => array('cat'))
);
Router::conn
Never nothing is not possible...
I am thinking ...in my chair ;)
I will post a solution...
I need to show contents, news and article, with a particular tag.
I find the news with that tag... and I find the articles with that
tag...
But I need to show them in only a page, and this page must be
pa
I have faced this type problem. but I can't.
On Sun, Nov 16, 2008 at 11:14 AM, Alessio <[EMAIL PROTECTED]> wrote:
>
> I have two models, news and articles.
>
> I need to show them togheter, and paginate togheter because I want to
> show in the same page.
>
> How Can I get this using the paginator
I have two models, news and articles.
I need to show them togheter, and paginate togheter because I want to
show in the same page.
How Can I get this using the paginator?
Is it possible to pass to paginator an array?
--~--~-~--~~~---~--~~
You received this messag
That is the same thing I did, lol however I explained it wrong and
figured out my problem seeing as how I was doing ListOffer rather then
the join table. I just noticed for what I was using I didn't need the
data just to make sure that it existed. So I was able to just do $this-
>User->CompletedOf
Why are you just trying to save one field, all the others going null
are because you don't load the $this->data array when you save it with
anything for those fields and you probably set not default when you
created the fields in your database, so they just assume null as
default. I'm just really
I am total newbie with cakephp, first few days have been total
struggling. I have mysql table with 10 fields. I try to edit one text
field with form, but every time I submit form, all other fields are
set to null. Only field in form survives. Is there any tutorials about
this or can someone help m
Hi mate, this code is for 1.2:
$this->User->find('all', array(
'conditions' => array(
'User.id' => $this->Auth->user('id'),
'ListOffer.id' => $offerid
)
));
Petr
http://blog.pepa.info/
Dne 16.11.2008 19:06, thatsgreat2345 napsal(a):
> I have a HABTM association between user and
I have a HABTM association between user and listoffer however when I
run
$this->User->findAll(array('User.id'=>$this->Auth->user
('id'),'ListOffer.id'=>$offerid));
the debug doesn't show the sql for grabbing the ListOffer, and so it
wont get the offer for that userid has completed. So is there som
Hi.
When testing these models:
A hasMany B
B has Many C
B belongsTo A
C belongsToB
I baked the models, fixtures and case tests. Test database
configuration is present. I'm using 1.2.x.x_16.11.2008 night build,
but with 1.2.0.7692 RC3 happens the same.
When I execute test for C = works fine.
Hi, Groups,
I have a problem about encoding UTF-8, I want to develop a site in
different languages. This is Bangla Language which is possible by
using UTF-8. By I have not got any tutorial or help full files that
can help.
Please provide me help that's why I can use encode UTF-8.
charset('UTF-8
> What is essentially happening is that you are deleting the object from
> the DOM and then adding a completely new one (different internal js
> interpretter IDs). All the registered events are severed on the old
> object.
Thanks. That's what I figured was happening.
> You can still keep your s
undbund wrote:
> Hi guys,
>
> I was trying to configure Cake with openSUSE 11 but I could not make
> mod rewrite work. I can access the Cake folder in the document root
> (http://localhost/~undbund/cake) but the CSS is not coming on the web
> page correctly. I tried to enable mod rewrite using the
The answer is here:
https://trac.cakephp.org/wiki/Developement/CodingStandards#Membervisibility
Petr
http://blog.pepa.info/
Dne 16.11.2008 15:42, Bhaumik Patel napsal(a):
> Can You pls explain what the special meaning for the "$__" in cakephp?
>
> Like the following syntext!
>
> var $__contro
Hi mate,
I suggest using $user['User'] in all situations. I know it looks
redundant at first, to add the extra level when you just know you will
work with a single model data only.
The point though, is that it makes the app as a whole so much easier to
read when you use the same notation everyw
Hi guys,
I was trying to configure Cake with openSUSE 11 but I could not make
mod rewrite work. I can access the Cake folder in the document root
(http://localhost/~undbund/cake) but the CSS is not coming on the web
page correctly. I tried to enable mod rewrite using the following
tutorial
http:
Can You pls explain what the special meaning for the "$__" in cakephp?
Like the following syntext!
var $__controllerVars = array('plugin' => null, 'name' => null, 'base'
=> null);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
Hi, I have a problem with making ACL working, Indeed ARO and ACO
tables are correctly set.
$this->Acl->check(array('model' => 'User', 'foreign_key' => 3),
'Administration') Return true
$this->Acl->check(array('model' => 'User', 'foreign_key' => 4),
'Administration') -- Return false
But
I like the plugin-feature in cake. With that, I can almost build every
site by choosing out of my pre-build plugins. And if a customer wants
a new feature in his/her website I just have to add a folder in the
plugin-directory and it's done... almost.
After adding the folder I still have to get in
Hey Guys,
Sometime I will pass a function an array structured like this: $user
['User']['id'] (the array contains a bunch of other values under the
User key). Other times I will pass the same function an array but with
out the key ($user['id']).
So I use this if statement to get the values:
//
On Sat, Nov 15, 2008 at 10:35 PM, korcan <[EMAIL PROTECTED]> wrote:
>
> Has anyone ever put logic into a db table? I want to allow a user to
> make a variety of selections for how to handle something and store
> them in the DB, however I want the controller to use this logic when
> the user is log
On Sat, Nov 15, 2008 at 4:27 PM, trevorsg <[EMAIL PROTECTED]> wrote:
>
> I've been working on something for the last week or so that I think
> will make everyone's Cake development easier. To me, the most
> frustrating part of starting a new Cake application is going through
> each model and writin
CakePHP supports a variety of Cache Engines such as File storage
engine, APC and Memcache. IMHO, The best way is reduce the number of
modules displayed by default on the site to minimum but i think it
will help reduce the number of queries.
hth
--~--~-~--~~~---~--~
Just extend ErrorHandler and override __outputMessage().
class AppError extends ErrorHandler {
function __construct($method, $messages) {
parent::__construct($method, $messages);
}
function __outputMessage($template) {
$this->controller->r
I found how to submit a new ticket. It's here:
https://trac.cakephp.org/ticket/5759
Petr
Dne 16.11.2008 12:06, Petr 'PePa' Pavel napsal(a):
> Oh ok. I didn't set up auth redirect manually.
>
> Just to make sure we're on the same boat, here's another description of
> the procedure:
> a) I atte
I would manage some error of my application that aren't in CakePHP's
ErrorHandler and in these errors I need to know the layout
On 15 Nov, 16:07, Kyo <[EMAIL PROTECTED]> wrote:
> I'm not clear on what you are trying to do but...I'm assuming you
> already have CakePHP's ErrorHandler class, which c
Oh ok. I didn't set up auth redirect manually.
Just to make sure we're on the same boat, here's another description of
the procedure:
a) I attempt to access
http://teachtheworldguitar.pp/orderItems/delete/30
b) I'm not authorized so I'm redirected to login with the above url
automatically
45 matches
Mail list logo