Re: Doubt regarding routing.

2013-06-11 Thread Nikunj Amipara
lready it seems to work too but only at some places...i want > photo/:action to be blocked completely > > > On Mon, Jun 10, 2013 at 7:13 PM, Gaurav Matta wrote: > >> In routes.php >> >> On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote: >> > >>

Re: Doubt regarding routing.

2013-06-10 Thread Gaurav Matta
mipara" wrote: > > > > hi all, > > > > i have doubt regarding routing... > > i want to replace > > > > url : /photo/* with /image/* everywhere basically i want name > of controller to be replaced.. in addition /photo url should no

Re: Doubt regarding routing.

2013-06-10 Thread Nikunj Amipara
i did that already it seems to work too but only at some places...i want photo/:action to be blocked completely On Mon, Jun 10, 2013 at 7:13 PM, Gaurav Matta wrote: > In routes.php > > On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote: > > > > hi all, > >

Re: Doubt regarding routing.

2013-06-10 Thread Gaurav Matta
In routes.php On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote: > > hi all, > > i have doubt regarding routing... > i want to replace > > url : /photo/* with /image/* everywhere basically i want name of controller to be replaced.. in addition /photo u

Re: Doubt regarding routing.

2013-06-10 Thread Gaurav Matta
Try Router::connect('/image/:action',array('controller'=>'photo')) On 10-Jun-2013 6:17 PM, "Nikunj Amipara" wrote: > > hi all, > > i have doubt regarding routing... > i want to replace > > url : /photo/* with /image/* eve

Doubt regarding routing.

2013-06-10 Thread Nikunj Amipara
hi all, i have doubt regarding routing... i want to replace url : /photo/* with /image/* everywhere basically i want name of controller to be replaced.. in addition /photo url should no longer work. or it should be renamed and redirected to /image/* is it possible... if yes

Re: Doubt regarding integrating cakephp and javascript mv framework

2012-10-11 Thread abhijit kakade
Yes, keep your javascriptMVC code in weroot folder and build cakePHP app using REST webservice (cakephp inbuilt feature) this way you build service oriented architecture for your project, I have same structure in my project. On Thu, Oct 11, 2012 at 6:06 PM, Dr. Tarique Sani wrote: > On Thu, Oc

Re: Doubt regarding integrating cakephp and javascript mv framework

2012-10-11 Thread Dr. Tarique Sani
On Thu, Oct 11, 2012 at 3:12 PM, Sathia S wrote: > >> I would develop the javascript MVC application to be independent of >> the CakePHP application and not try to put the js MVC into the webroot >> of the cakePHP app >> >> So it would be easier if you think of your project as two separate >> proj

Re: Doubt regarding integrating cakephp and javascript mv framework

2012-10-11 Thread Sathia S
> I would develop the javascript MVC application to be independent of > the CakePHP application and not try to put the js MVC into the webroot > of the cakePHP app > > So it would be easier if you think of your project as two separate > projects. > > Hi. Thank you for reply. Is that correct way to

Re: Doubt regarding integrating cakephp and javascript mv framework

2012-10-10 Thread Dr. Tarique Sani
I would develop the javascript MVC application to be independent of the CakePHP application and not try to put the js MVC into the webroot of the cakePHP app So it would be easier if you think of your project as two separate projects. Most jsmvc frameworks just expect URL endpoints to get and pos

Doubt regarding integrating cakephp and javascript mv framework

2012-10-10 Thread Sathia S
Hi, I have'nt worked in javascriptmvc with any other server side framework. Eg. can i attain following task with javascript framework, If a user posted a post (saved in database), other user (in another system) will be displayed the post without refreshing the page. i heard than rails with backb

Re: Doubt regarding sessions in cakephp

2012-03-31 Thread euromark
and submitting form.. but whwn i do the >> same in main server.. i didn't get the value of captcha stored in >> session??? pls anyone clear this doubt by giving effective >> solutions??? beacuse of this pblm by project is in vain >> >> -- >> Our newest

Re: Doubt regarding sessions in cakephp

2012-03-30 Thread Gabriel Vila Real
rm.. but whwn i do the > same in main server.. i didn't get the value of captcha stored in > session??? pls anyone clear this doubt by giving effective > solutions??? beacuse of this pblm by project is in vain > > -- > Our newest site for the community: CakePHP Video Tutoria

Doubt regarding sessions in cakephp

2012-03-28 Thread LITTO CHACKO
with captcha and submitting form.. but whwn i do the same in main server.. i didn't get the value of captcha stored in session??? pls anyone clear this doubt by giving effective solutions??? beacuse of this pblm by project is in vain -- Our newest site for the community: CakePHP Video Tuto

Re: doubt of join in cakephp

2012-03-28 Thread LITTO CHACKO
hello,guys i got amuch perfect logic fro our cakephp buddy rodigreas.. he ask me to link from offerpromo table to offer..and use belongs to condition and i write it like this:- function getallhot(){ $this->belongsTo= array('Offer'=>array('className'=>'Offer','foreignKey'=>'o

Re: doubt of join in cakephp

2012-03-28 Thread Loren Cole
gt; array('Offerpromo.end_date <' . date()), 'joins' => array( array( 'table'=>'db_offer', 'alias' => 'Offer', 'conditions'=>''Offer.offer_id = Offerpromo.offer_id)) );

doubt of join in cakephp

2012-03-28 Thread LITTO CHACKO
Hello, i have a doubt regarding join in cakephp. i have a primary key which is a foreign key of other table... i want to retrieve the table along with values s in othertable by checking some condition sin two tables. fields in first table:- db_offer offer_idseller_id

Re: Routing, one little doubt

2012-01-26 Thread Ivan
Anyone know how to do it? Thanks -- 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+un

Routing, one little doubt

2012-01-25 Thread Ivan
Hi all, First, thanks for the answers that you have gave me.. They really helped! I`m having a trouble, in making a simple route. What ever is the controller, or action, if there is a /validate_fields in the end, i want cake to see it like: :controller/validate_fields ex.: /someController/someAct

Re: Doubt in autocomplete jquery

2011-09-29 Thread Sathia S
Hi, Thank you for your reply. > > [{"id":1,"value":"villivakkam","label":"villivakkam", }] > I tried this too . even now i cannot view list. Regards sathia http://www.sathia27.wordpress.com -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the n

Re: Doubt in autocomplete jquery

2011-09-29 Thread luca capra
I think you should add a "label" value to the results [{"id":1,"value":"villivakkam","label":"villivakkam",}] On 29/09/2011 19:03, Sathia S wrote: Hi, I am working in basic of autocomplete in cakephp. When i enter th text in input, i request for server and return json output (i.e) it sho

Doubt in autocomplete jquery

2011-09-29 Thread Sathia S
Hi, I am working in basic of autocomplete in cakephp. When i enter th text in input, i request for server and return json output (i.e) it shows result in firebug. I am not getting list in view. In view file [code] $songs_array = array(); foreach($songs as $key => $value){ array_push($

Doubt with relations

2011-06-05 Thread Juan Manuel
Hi! I've a doubt with a relation, this's my db model *Permissions* (eg: Add, view, edit, ...) - permission_id - description *Pages* (eg: Users, Reports, ...) - page_id - description *Permissions_Pages* (this has all the actions in a page, eg: Users add,

Re: Doubt in Auth component

2011-05-21 Thread Sathia S
On Sun, May 22, 2011 at 9:37 AM, O.J. Tibi wrote: > Hi Sathia, > > In practice, it's actually better to give the user a utility to > "reset" the password instead of "resending" the password. Easiest > steps are: > > * Create a system-generated password, make sure it's in cleartext > first. > * St

Re: Doubt in Auth component

2011-05-21 Thread O.J. Tibi
Hi Sathia, In practice, it's actually better to give the user a utility to "reset" the password instead of "resending" the password. Easiest steps are: * Create a system-generated password, make sure it's in cleartext first. * Store the Auth::password() hash of the generated one into the database

Re: Doubt in Auth component

2011-05-21 Thread Sathia S
> You can't; that's what "hash" means. > > http://en.wikipedia.org/wiki/Cryptographic_hash_function > > To validate a user who's trying to log in, you hash the password the user > entered, then compare it with the hashed password in the database. The > tutorials, demos and documentation should expl

Re: Doubt in Auth component

2011-05-21 Thread Ryan Schmidt
On May 21, 2011, at 11:12, Sathia S wrote: > to hash the password, we can used > $this->Auth->password('password') > > and how to unhash passsword from database . You can't; that's what "hash" means. http://en.wikipedia.org/wiki/Cryptographic_hash_function To validate a user who's trying to

Re: Doubt in Auth component

2011-05-21 Thread Tilen Majerle
cannot :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/5/21 Sathia S > to hash the password, we can used > $this->Auth->password('password') > > and how to unhash passsword from database . > > > Thank u advance > > -- > Regards > > sathia > http://www.sathia27.wordpress.com > > -- > O

Doubt in Auth component

2011-05-21 Thread Sathia S
to hash the password, we can used $this->Auth->password('password') and how to unhash passsword from database . Thank u advance -- Regards sathia http://www.sathia27.wordpress.com -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: Doubt about admin routes / actions and Auth component

2010-11-14 Thread huoxito
I reversed the order > var $components = array('Auth', 'Session'); but it's still not working as expected, i'm running it on cake 1.3.5 On 13 nov, 17:28, cricket wrote: > On Fri, Nov 12, 2010 at 8:20 PM, huoxito wrote: > > I have this in my app_controller > > > var $components = array('Sessio

Re: Doubt about admin routes / actions and Auth component

2010-11-13 Thread cricket
On Fri, Nov 12, 2010 at 8:20 PM, huoxito wrote: > I have this in my app_controller > > var $components = array('Session', 'Auth'); The order of those should be reversed: var $components = array('Auth', 'Session'); At least, at one time that was important. I don't know if it's still necessary.

Re: Doubt about admin routes / actions and Auth component

2010-11-12 Thread huoxito
I have this in my app_controller var $components = array('Session', 'Auth'); function beforeFilter(){ parent::beforeFilter(); # thanks to http://padariadodenilson.wordpress.com/2010/10/04/criando-uma-area-administrativa-com-cakephp/ if (isset($this->params['admin'])) {

Re: Doubt about admin routes / actions and Auth component

2010-11-12 Thread cricket
On Thu, Nov 11, 2010 at 11:44 PM, huoxito wrote: > Thats what I thought as well, but it doesnt happen, > > If I just let $this->Auth->allow(‘*’) in my app_controller all actions > are accessible without being logged in, even my admin_* methods Perhaps Auth isn't properly configured in AppControll

Re: Doubt about admin routes / actions and Auth component

2010-11-11 Thread huoxito
Thats what I thought as well, but it doesnt happen, If I just let $this->Auth->allow(‘*’) in my app_controller all actions are accessible without being logged in, even my admin_* methods On 11 nov, 18:22, cricket wrote: > On Wed, Nov 10, 2010 at 10:26 PM, huoxito wrote: > > found what i was loo

Re: Doubt about admin routes / actions and Auth component

2010-11-11 Thread cricket
On Wed, Nov 10, 2010 at 10:26 PM, huoxito wrote: > found what i was looking for, guess I just had to add this condition, > thanks to this post > http://padariadodenilson.wordpress.com/2010/10/04/criando-uma-area-administrativa-com-cakephp/ > > if (isset($this->params['admin'])) { > $this->Auth->d

Re: Doubt about admin routes / actions and Auth component

2010-11-10 Thread huoxito
found what i was looking for, guess I just had to add this condition, thanks to this post http://padariadodenilson.wordpress.com/2010/10/04/criando-uma-area-administrativa-com-cakephp/ if (isset($this->params['admin'])) { $this->Auth->deny(‘*’); } else { $this->Auth->allow(‘*’); } Is there a si

Doubt about admin routes / actions and Auth component

2010-11-10 Thread huoxito
I hadn't tried to use admin routes in cakephp yet. When i first read about I believed that I would get through it quickly but no I cant figure out a way to let all my actions, without the admin prefix, be accessed without a user logged in, authenticated by the Auth component. I already added

Re: DOUBT

2010-08-27 Thread Graham Weldon
You need to create the database table called "catgories". That kinda looks like a typo in your controller or model name also. Did you mean "categories"? On 27/08/2010, at 6:32 PM, anbu arasu wrote: > Hai, I successfully baked model for the table "catgories", but when try to > bake controlle

Re: DOUBT

2010-08-27 Thread Jeremy Burns | Class Outfit
Is your table really named catgories (notice the missing 'e')? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 27 Aug 2010, at 09:32, anbu arasu wrote: > Hai, I successfully baked model for the table "catgories", but when try to > bake controller for the sam

DOUBT

2010-08-27 Thread anbu arasu
Hai, I successfully baked model for the table "catgories", but when try to bake controller for the same table, I faced the following named error *"Missing database table 'catgories' for model 'Catgory'* can any one help me... Check out the new CakePHP Questions site http://cakeqs.org and help o

Doubt

2010-07-18 Thread anbu arasu
Dear cronies I had faced one error when I run cakephp, that is.. *Notice*: Trying to get property of non-object in *C:\xampp\htdocs\aha\cakephp\cake\libs\cache\file.php* on line *244* *Fatal error*: Call to a member function cd

Re: doubt

2010-03-11 Thread thiru malai
See this http://coding.derkeiler.com/Archive/PHP/comp.lang.php/2008-05/msg01238.html On Thu, Mar 11, 2010 at 1:14 PM, selvam dilli wrote: > hi > i have a doubt in php > > /*php > $a=10.43; > echo gettype($a); > var_dump($a); > ?> > > */ > the output for gett

Re: doubt

2010-03-11 Thread John Andersen
Don't doubt :) search for the reason! For example at: http://lv.php.net/manual/en/function.gettype.php where it is written that: Possibles values for the returned string are: ... * "double" (for historical reasons "double" is returned in case of a float, and not simpl

doubt

2010-03-11 Thread selvam dilli
hi i have a doubt in php /*php $a=10.43; echo gettype($a); var_dump($a); ?> */ the output for gettype( $a) is double an for var_dump is float. how does php treats float and double. what is the difference between float and double in php. regards selvam Check out the new CakePHP Questions s

Re: doubt clarification

2010-03-10 Thread John Andersen
Make a small script that will give you the php information: [code] [/code] Then look for the Apache configuration, find the row named "Loaded Modules" and in the adjoining cell, find mod_rewrite. If it is there, you have mod_rewrite available to you! Enjoy John On Mar 11, 7:45 am, sooraj fra

doubt clarification

2010-03-10 Thread sooraj francis
hi I am new to cakephp. I am using apache version _2.2.15. i dont have access to to the htdocs. Is there any way i enable the mod reewrite option with in our cakephp application using .htaccess. How i can know whether mod_rewrite is enabled. Check out the new CakePHP Questions site http://cakeqs

problem/doubt with many-to-many relations

2009-12-05 Thread Lorenzo Bettini
Hi I'm following this tutorial (in particular Part 4): http://www.ibm.com/developerworks/opensource/tutorials/os-php-cake4/section4.html it uses a join table for a many-to-many relation between Users and Products (representing favorite products of users): CREATE TABLE products_users ( produ

Acl doubt - Implementing it to other resources than actions

2009-11-16 Thread jgonca
Hi, I'm developing a project with CakePHP and after read some tutorials about Acl and Auth, I still have a doubt. In all the tutorials I've read, the Acl system is based on allowing or denying access to actions. I will need this too, but I'll also need to allow or deny access t

Re: Doubt in cake php

2009-09-30 Thread theChrisWalker
On the other hand, to answer your question, you can always use: ClassRegistry::init('ModelName')->find(...) to read data from a model in a view. I often use this approach in cached elements, that display things like "yesterdays stats" where the read access is needed but only once per day then c

Re: Doubt in cake php

2009-09-29 Thread Travis L
I don't see it as making the controller "fat", really. It's where this call belongs. I usually think of fat controllers as doing some of the models' heavy lifting for them. But in this case, putting the code in your controller is clearly the right thing to do, by Cake's MVC principles. Don't w

Re: Doubt in cake php

2009-09-29 Thread Walther
Just be careful with requestAction. If you don't cache properly you can dramatically slow down your application. Mark Story has some good tips on requestAction use at his blog (http://mark-story.com/) On Sep 28, 12:15 pm, John Andersen wrote: > It will not be much more fat, as the only thing eac

Re: Doubt in cake php

2009-09-28 Thread Jon Bennett
hi Mark > 1.3 will not be implementing object results from models.  1.3 is still > php4 compatible, and is a _minor_ version release.  Switching out the > lower levels of how models work is not a minor change.  Perhaps you > are thinking of CakePHP 2.x? Ahh, ahem - yes, I was -- jon bennett

Re: Doubt in cake php

2009-09-28 Thread mark_story
1.3 will not be implementing object results from models. 1.3 is still php4 compatible, and is a _minor_ version release. Switching out the lower levels of how models work is not a minor change. Perhaps you are thinking of CakePHP 2.x? -Mark On Sep 24, 3:25 pm, Jon Bennett wrote: > Hi, > > >

Re: Doubt in cake php

2009-09-28 Thread John Andersen
It will not be much more fat, as the only thing each function used by a requestAction should be doing, is to call the model and return the models data. Enjoy, John On Sep 28, 12:46 pm, hunny wrote: > On Sep 25, 10:27 am, John Andersen wrote: > > > Look into the controllers method "requestAct

Re: Doubt in cake php

2009-09-28 Thread hunny
On Sep 25, 10:27 am, John Andersen wrote: > Look into the controllers method "requestAction", which allows you to > retrieve the list of clubs in a view! > Enjoy, >    John > > On Sep 24, 11:59 am, hunny wrote: > > > Hi Guys, > > > I am new to cakephp. I am having the following issue: > > > I

Re: Doubt in cake php

2009-09-24 Thread John Andersen
Look into the controllers method "requestAction", which allows you to retrieve the list of clubs in a view! Enjoy, John On Sep 24, 11:59 am, hunny wrote: > Hi Guys, > > I am new to cakephp. I am having the following issue: > > I am displaying list of checkbox containing clubs to a login user.

Re: Doubt in cake php

2009-09-24 Thread Martin Westin
Ever heard of a can of worms :) (The whole "-This is MVC. -No, this is MVC" thing can turn nasty at times.) Cake allows no direct access to Models from Views. That is how the MVC pattern has been implemented in Cake even though there are other interpretations in other Frameworks. If everyone had

Re: Doubt in cake php

2009-09-24 Thread Jon Bennett
Hi, > Basically i am looking for something similar like View Helpers in > Zend. We can access the model data in views using view Helpers. Is > there something similar in cakephp. Short answer: you can't. Longer answer: as the current version of cake is both php4 and 5 compatible, it uses arrays

Doubt in cake php

2009-09-24 Thread hunny
Hi Guys, I am new to cakephp. I am having the following issue: I am displaying list of checkbox containing clubs to a login user. The list of clubs I am passing through the models via controllers in the traditional way. Now the logged in user should see his list of clubs automatically ticked. T

set combine little doubt

2009-06-06 Thread Alexandre Brasil
Hi everybody, I new in cake, could you help me to format a data array? I have this $data array { [0]=> array { ["Timetable"]=> array { ["slot_id"]=> "2" } ["Subject"]=> array { ["name"]=> "CAD" } ["Typeclass"]=> array { ["name"]=> "T1" } ["Room"]=> array {

Re: doubt

2009-04-17 Thread fain182
> I used the following codebut it is not working. what is not working? saving? validation? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegrou

doubt

2009-04-17 Thread Banu
Hai I want to validate the user input from the text box from the form to be not empty before saving it. I used the following codebut it is not working. This one is in models_controller function add() { if(!empty($this->data)) { $ModelName=$this->data['models'

Doubt

2009-04-17 Thread Banu
I am having two models(Model,Vehicle) Each of the model having two table,(models,vehicles) Now my problem is that in my vehicles table I am having following field (model_id,Number,model_id) For inserting record to this i am using form with text box for number input and combo box for model which re

Re: Custom query Doubt/problem please help me..

2008-11-22 Thread Takuo Doi
Hi. The error messages indicates the undifined index of "total". Is it right? I think you mistake the data structure which Model::query returns. If you put the statement "print_r ($t);" in the model code, you can understand the problem quickly. The structure of $t is below: Array ( [0] =>

Custom query Doubt/problem please help me..

2008-11-22 Thread renju
Any body can explain Custom Queries with example... My problem is that ..i have two table 1)campaigns 2)donations i need the total amount of particular campaign by using the sql query.. CODE SELECT sum(amount) as total FROM `v1_donations` WHERE campaign_id=1 campaign Model CODE function getTotal

ACL nodes naming doubt

2008-11-04 Thread Fran Iglesias
Hi, I want to have two branches on my AROs tree. One is for a typical controllers/actions authorization systems. It works perfectly. The second one is for a "privileges" based authorization inside actions. For example: I want to allow two groups access to the same action, but one group ca

Re: Doubt with 2ble Auth

2008-04-29 Thread Nicolás Andrade
Thanks Chris, I though exactly the same idea. Retrieve the user from DB using Auth and in isAuthorized check if he's allowed to run certain functions. What I would like to know is where can I check if Admin Routing is being used in that request. I mean, how can I ask Cake if the requested URL is /a

Re: Doubt with 2ble Auth

2008-04-29 Thread Chris Hartjes
On Mon, Apr 28, 2008 at 8:58 PM, Nicolás Andrade <[EMAIL PROTECTED]> wrote: > Thanks for your time. I will print at least the 3 or 4 first pages of the > link you've sent to read in the bed, before sleeping. > > Any other suggestion?? When I have users that need to have different levels of access

Re: Doubt with 2ble Auth

2008-04-29 Thread mbavio
Common sense? Cheers, mbavio On Apr 28, 9:58 pm, "Nicolás Andrade" <[EMAIL PROTECTED]> wrote: > Thanks for your time. I will print at least the 3 or 4 first pages of the > link you've sent to read in the bed, before sleeping. > > Any other suggestion?? > > Greets! > > Nicolás Andrade > (Wikipedi

Re: Doubt with 2ble Auth

2008-04-28 Thread Nicolás Andrade
Thanks for your time. I will print at least the 3 or 4 first pages of the link you've sent to read in the bed, before sleeping. Any other suggestion?? Greets! Nicolás Andrade (Wikipedia Reader) On Mon, Apr 28, 2008 at 7:51 PM, Marcin Domanski <[EMAIL PROTECTED]> wrote: > Ok > You _don't_ need

Re: Doubt with 2ble Auth

2008-04-28 Thread Marcin Domanski
Ok You _don't_ need 2 models for different users , will you make a third one for moderators ? 4th for editors ? 5th... Why not make a user table with an 'is_admin' bool field and check on that ? Or even more generic - a 'role' field. Try to read some more on database design (you can start at wikipe

Re: Doubt with 2ble Auth

2008-04-28 Thread Nicolás Andrade
Problem: Using different tables for Auth Components (Users and Admins Tables) I was thinking... If I browse to /admin/users/ I will be asked for an admin login; and the login will be checked with the admin table. If I browse to /users/editProfile/ I well be asked for an user login; and the lo

Doubt with 2ble Auth

2008-04-28 Thread Nicolás Andrade
Hi to all; as a few days ago was suggested in this list; I started using AUTH component and Admin Routing to validate Administrators. Now, I've 2 "Users" models; (Front End) Users and Admins. Each Admin function has Admin_ on it's name. Ok. In the Users controller appears the problem. The Adm

Re: First Doubt with CakePHP

2008-04-24 Thread John David Anderson
On Apr 24, 2008, at 2:47 PM, Chris Hartjes wrote: > On Thu, Apr 24, 2008 at 4:15 PM, Nicolás Andrade > <[EMAIL PROTECTED]> wrote: >> I mean I can separate tasks using a SiteAdmin folder, password >> protected. >> But in CakePHP, I don't know how to separate things. Any user which >> registers

Re: First Doubt with CakePHP

2008-04-24 Thread Chris Hartjes
On Thu, Apr 24, 2008 at 4:15 PM, Nicolás Andrade <[EMAIL PROTECTED]> wrote: > I mean I can separate tasks using a SiteAdmin folder, password protected. > But in CakePHP, I don't know how to separate things. Any user which > registers himself will use the User model; and me as administrator will use

First Doubt with CakePHP

2008-04-24 Thread Nicolás Andrade
Hello everybody; this is my first message in this group as I've started developing with CakePHP last monday. I saw lot of manuals, HowTos, guides and forums; but I have not found a place where solve this doubt. You know ussually Web Sites have a structure which seems like that: -Root *inde

Re: Doubt regarding associations in the models.

2007-06-30 Thread Walker Hamilton
GO read this again: http://manual.cakephp.org/chapter/models And then create a join table called communities_students Then change your community table's name to "communities". Then do a hasAndBelongsToMany definition in your student and community models. Than read this _again_: http://manual.c

Re: Doubt regarding associations in the models.

2007-06-30 Thread Paul R. Zwiers
Adi, On Sat, 30 Jun 2007, Adi Mallikarjuna Reddy V wrote: > Let us say I have three tables Students, Community and Stu_Comm. They > capture that each community has some students associated with it. I define > three models for the three tables. Now the question, since I captured > hasMany relati

Doubt regarding associations in the models.

2007-06-30 Thread Adi Mallikarjuna Reddy V
Dear all, I have a fundamental doubt in defining associations in the models. Let us say I have three tables Students, Community and Stu_Comm. They capture that each community has some students associated with it. I define three models for the three tables. Now the question, since I captured

Re: cakephp doubt

2007-05-30 Thread Walker Hamilton
uhh..also, you could have misplaced the .htaccess files when you moved everything over mohan wrote: > i have installed and configured cake php successfully in xampp under > the folder htdocs\cake > i got the following message also > > Your database configuration file is present. > > Cake is

Re: cakephp doubt

2007-05-30 Thread Chris Hartjes
On 5/30/07, mohan <[EMAIL PROTECTED]> wrote: > Kindly offer a solution as early as possible I hear that the manual offers a lot of solutions as early as you can read it. Do you have mod_rewrite enabled for your web server? -- Chris Hartjes My motto for 2007: "Just build it, damnit!" @TheBa

Re: cakephp doubt

2007-05-30 Thread John David Anderson (_psychic_)
On May 30, 2007, at 8:30 AM, mohan wrote: > > i have installed and configured cake php successfully in xampp under > the folder htdocs\cake ... > http://localhost/bookmarks/ Should this be http://localhost/cake/bookmarks if you've installed CakePHP in /htdocs/cake? -- John --~--~

cakephp doubt

2007-05-30 Thread mohan
i have installed and configured cake php successfully in xampp under the folder htdocs\cake i got the following message also Your database configuration file is present. Cake is able to connect to the database. i have created a database called project and with table name as bookmarks. I hav

ajax doubt

2006-11-29 Thread Fabio Esposito
Hi people! I'm loving cake-php but have some doubt can you help me? I cant understand very well how to use scriptaculous and prototype ajax libraries. How and where i define my own method for example? In my experience with mojavi framework I uses xajax as ajax library and seems to me very

Re: Doubt with function Find and similar functions

2006-10-18 Thread Ismael S. Kafeltz
It was exactly what i was looking for... Thank you, it worked. I wish this information was documented in cake-api =/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send em

Re: Doubt with function Find and similar functions

2006-10-18 Thread AD7six
Recursive 0 still includes belongsTo and hasOne relationships (IIRC). set recursive to -1 to remove all associations and only query the direct model with no joins. HTH, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Doubt with function Find and similar functions

2006-10-18 Thread Ismael S. Kafeltz
Hello people. I was wondering about this piece of code: $aux = $this->PessoaFisica->find("PessoaFisica.cpf = '{$this->data['Form']['cpf']}'", array('cpf'), null, 0); pr($aux); which outputs this: Array ( [PessoaFisica] => Array ( [cpf] => 123 ) ) Fine, but my