Re: How to apply permission to XML folder in webroot

2008-11-16 Thread David C. Zentgraf
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: > >

Re: If you call the method of the controller through requestAction, the latter is unable to obtain access to methods of models with which it works. Maybe it's wrong?

2008-11-16 Thread Pizgin
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

Re: If you call the method of the controller through requestAction, the latter is unable to obtain access to methods of models with which it works. Maybe it's wrong?

2008-11-16 Thread Pizgin
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

How to apply permission to XML folder in webroot

2008-11-16 Thread bookme
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

If you call the method of the controller through requestAction, the latter is unable to obtain access to methods of models with which it works. Maybe it's wrong?

2008-11-16 Thread Pizgin
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

Re: I don't like the html that the form-helper outputs

2008-11-16 Thread Evert
> > 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

CakePHP bake console and mysql-client 5.0, error - Client does not support authentication protocol requested by server

2008-11-16 Thread Louie Miranda
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.

controller class call another controller class problem ( Undefined property from model)

2008-11-16 Thread sd.riderz
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 --

Re: Can't use internationalization on input label

2008-11-16 Thread Mateo San Román
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(

Re: cake 1.2 paginator of two models toghether

2008-11-16 Thread Sergei
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

hasAndBelongsToMany issue

2008-11-16 Thread omar.laverde
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

Re: auto install database files

2008-11-16 Thread Dardo Sordi Bogado
> 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

Re: I don't like the html that the form-helper outputs

2008-11-16 Thread Dardo Sordi Bogado
> 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

Re: I don't like the html that the form-helper outputs

2008-11-16 Thread validkeys
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

Re: I don't like the html that the form-helper outputs

2008-11-16 Thread Sam Sherlock
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

Re: I don't like the html that the form-helper outputs

2008-11-16 Thread Marcelo Andrade
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

I don't like the html that the form-helper outputs

2008-11-16 Thread Evert
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

Re: auto install database files

2008-11-16 Thread Evert
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

pagination, routing and pagination links

2008-11-16 Thread mindwar
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

Re: cake 1.2 paginator of two models toghether

2008-11-16 Thread Alessio
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

Re: cake 1.2 paginator of two models toghether

2008-11-16 Thread Sayed Raianul Kabir
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

cake 1.2 paginator of two models toghether

2008-11-16 Thread Alessio
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

Re: HABTM using 2 wheres

2008-11-16 Thread thatsgreat2345
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

Re: Edit just one field with form

2008-11-16 Thread thatsgreat2345
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

Edit just one field with form

2008-11-16 Thread jer
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

Re: HABTM using 2 wheres

2008-11-16 Thread Petr 'PePa' Pavel
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

HABTM using 2 wheres

2008-11-16 Thread thatsgreat2345
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

Test asociation problem

2008-11-16 Thread vurkos
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.

Encoding UTF-8

2008-11-16 Thread pranto
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

Re: How to observe a "replaced" select?

2008-11-16 Thread keymaster
> 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

Re: Configuring Cake with openSUSE 11

2008-11-16 Thread Alexandru Ciobanu
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

Re: $__ in cakephp

2008-11-16 Thread Petr 'PePa' Pavel
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

Re: Insult this code

2008-11-16 Thread Petr 'PePa' Pavel
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

Configuring Cake with openSUSE 11

2008-11-16 Thread undbund
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:

$__ in cakephp

2008-11-16 Thread Bhaumik Patel
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

ACL problem, Everyone can access everywhere

2008-11-16 Thread Grafikart
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

[plugins]auto install database files

2008-11-16 Thread Evert
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

Insult this code

2008-11-16 Thread validkeys
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: //

Re: Dynamic Logic

2008-11-16 Thread Marcelo Andrade
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

Re: Easily Validate Cake Models

2008-11-16 Thread Marcelo Andrade
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

Re: Performance

2008-11-16 Thread Kyo
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 --~--~-~--~~~---~--~

Re: Determinate layout controller inside app_error.php

2008-11-16 Thread Kyo
Just extend ErrorHandler and override __outputMessage(). class AppError extends ErrorHandler { function __construct($method, $messages) { parent::__construct($method, $messages); } function __outputMessage($template) { $this->controller->r

Re: possible bug in router.php

2008-11-16 Thread Petr 'PePa' Pavel
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

Re: Determinate layout controller inside app_error.php

2008-11-16 Thread [EMAIL PROTECTED]
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

Re: possible bug in router.php

2008-11-16 Thread Petr 'PePa' Pavel
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