Re: do i need to create a controller for all pages in \views\pages\ folder

2011-04-27 Thread Jeremy Burns | Class Outfit
You really need to read the guide...what are you are doing is not utilising Cake at all. Follow the Blog tutorial: http://book.cakephp.org/view/1528/Blog Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 27 Apr 2011, at 08:21, varai wrote: Hi

Need possibility to paginate an custom array

2011-04-26 Thread heohni
Hi, is there any solution available? Or anybody who can create such a function against payment for me? I need this urgently! 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

Re: Need possibility to paginate an custom array

2011-04-26 Thread euromark
such a function against payment for me? I need this urgently! 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

When need to use Set::combine ?

2011-04-17 Thread Điển vũ
9. ) 10. */ With format: [gwoo: The Gwoo], i don't know when need to use it ? With Set::combine , i can extract data with this format ?: 1. Array( 2. 'username'=array( 3. 'id'=1, 4. 'password'='abc' 5. } I think it can't extract as above . -- Our newest site

Re: When need to use Set::combine ?

2011-04-17 Thread cricket
: The Gwoo] = 25 ) */ With format: [gwoo: The Gwoo], i don't know when need to use it ? With Set::combine , i can extract data with this format ?: Array(   'username'=array(     'id'=1,     'password'='abc' } I think it can't extract as above . It's not clear what you're asking

Tr.lời: Re: When need to use Set::combine ?

2011-04-17 Thread Điển vũ
It may be 2 question : when use Set::combine and extract this data : $this-User-find('all); 1. Array ( [0] = Array ( [User] = Array ( [id] = 4 [username] = myname [password]

Re: Tr.lời: Re: When need to use Set::combine ?

2011-04-17 Thread cricket
On Sun, Apr 17, 2011 at 4:46 PM, Điển vũ meotimdi...@gmail.com wrote: It may be 2 question : when use Set::combine and  extract this data : $this-User-find('all); Array ( [0] = Array ( [User] = Array ( [id] = 4

extends autoComplete - Need ID of chosen element and set it inside hidden field

2011-03-26 Thread Mariano C.
I followed http://book.cakephp.org/view/632/autoComplete, and this work. Now the problem is: I choose an element from suggested items, but actually I haven't ID so this isn't so usefull. It could be better if as soon I choose an element, it's id will be stored immediatly inside an hidden input, so

Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Rishab Jain
Hi All, I need a video capturing through webcam plugin for cakephp. If not cake, then in simple php will also do. Does anybody know of such a plugin? regards, Rishab -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Stephen
Flash may be your answer: http://board.flashkit.com/board/showthread.php?t=737944 On 25 March 2011 10:21, Rishab Jain jairis...@gmail.com wrote: Hi All, I need a video capturing through webcam plugin for cakephp. If not cake, then in simple php will also do. Does anybody know

Re: Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Tran Cao Thai
you can do that with jquery as well On Fri, Mar 25, 2011 at 7:00 PM, Stephen step...@ninjacodermonkey.co.ukwrote: Flash may be your answer: http://board.flashkit.com/board/showthread.php?t=737944 On 25 March 2011 10:21, Rishab Jain jairis...@gmail.com wrote: Hi All, I need a video

Re: Need a 'video capturing through webcam' tool or code

2011-03-25 Thread Stephen
On 25 March 2011 14:03, Tran Cao Thai jasonvoorhees...@gmail.com wrote: you can do that with jquery as well Impressive ! -- Kind Regards Stephen http://www.ninjacodermonkey.co.uk -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new

Newbie having trouble with 'html helper', need to add 'rel' to url...

2011-03-24 Thread adam_g2000
Hi Guys, I'm using the following code: echo $this-Html-image('photos/' . $resource['Resource']['filename'], array( 'alt' = $resource['Resource']['title'], 'url' = array('controller' = 'resources', 'action' = 'lightbox', $resource['Resource']['filename_large']) )); What I need

Re: Newbie having trouble with 'html helper', need to add 'rel' to url...

2011-03-24 Thread cricket
', 'action' = 'lightbox', $resource['Resource']['filename_large']) )); What I need to do is make the resulting link have a 'rel' attribute so it ends up looking like... a href=linketc... rel=prettyPhotoimg src=blah/a ...but I can't figure out from the documentation how to do it. It looks like

Please. I need help with ACL. I no understand one thing about restriction in ACL. Can somebody help me?

2011-03-22 Thread mineiro-df
with the urls. I did all step by step from the tutorial and apparently everything works that it ties the moment that the most weak user manages to do everything when I call the actions through the url. I need that he has access only the actions released to him. Can anybody help me? -- Our newest site

Re: Please. I need help with ACL. I no understand one thing about restriction in ACL. Can somebody help me?

2011-03-22 Thread John Maxim
weak user manages to do everything when I call the actions through the url. I need that he has access only the actions released to him. Can anybody help me? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http

Re: CakePHP set::combine(). Need a numeric array transformed into an associative array.

2011-03-12 Thread ShadowCross
indicated you wanted. Try (not tested): $combine = array('Tree' = Set::combine($this-data, '{n}.{n}', '{n}. {n}.Tree'); If that doesn't generate the array the way you need, can you provide a sample of before and after arrays with at least three elements so I/we can better understand what you

Re: Need help with paginate conditions

2011-03-09 Thread netusco
Hi, I see something... I use $this-paginate = $options; then this: $options['fields'] = array('Member.id'); looks fine to me this: $options['or'] = ... looks out of it's array conditions I would use $options['conditions']['or'] = ... maybe like this the fields would be recognized... then

Need help with paginate conditions

2011-03-08 Thread heohni
Hi, $options['Member.agent_id'] = $this-Session-read('AgentId'); $options['or'] = array( 'mem_nummer LIKE' = '%'.$q.'%', 'mitg_vorname LIKE' = '%'.$q.'%', 'mitg_nachname LIKE' = '%'.$q.'%', 'mitg_strasse LIKE' =

Re: Need help with paginate conditions

2011-03-08 Thread Tilen Majerle
$this-paginate['Member']['conditions'], here are conditions list to search... -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/3/8 heohni heidi.anselstet...@consultingteam.de Hi, $options['Member.agent_id'] = $this-Session-read('AgentId'); $options['or'] = array(

Need help with bindModel

2011-03-06 Thread heohni
Hi, An Agent has many Agentprovisions A Agentprovision hasOne Payment A Payment belongsTo a Member I am now in my Agent Model / Controller. I would like now to get a results set, where I get - all Agentprovisions -- with its Payment -- its Member the first 2 I get already with

Need help with find paginate syntax

2011-03-05 Thread heohni
Hi, $payments = $this-Member-Payment-find('all', array( 'conditions' = array( 'Payment.member_id' = $id ), 'order' = array('Payment.created DESC') )); I would like to paginate this result, how can I do this? I find it difficult to

Re: Need help with find paginate syntax

2011-03-05 Thread jeet bajaj
I think you have to use pagination on Payment model, inside the member controller If it is, then i will suggest the following code, if it can help. class MembersController extends AppController { var $uses = array('Payment’); function xyz(){ $this-paginate = array(

Re: Blog example not working - need edit in View

2011-02-24 Thread Huy Nguyen
.nabble.com/Blog-example-not-working-need-edit-in-View-tp3367716p3383722.html Sent from the CakePHP mailing list archive at Nabble.com. -- 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

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-15 Thread designv...@gmail.com
...@gmail.com wrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS! A NEW USER TO CAKE! Holy shit say it's not so! People

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-14 Thread designv...@gmail.com
if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS! A NEW USER TO CAKE! Holy shit say it's not so! People on the board for more than a month can tell by the name basically

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-14 Thread Meroe Meroe
. -- Larry E. Masters On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything

Re: Blog example not working - need edit in View

2011-02-13 Thread dalvarez
that version instead. I'm downloading the 1.3.7 version now to try it out. -- View this message in context: http://cakephp.1045679.n5.nabble.com/Blog-example-not-working-need-edit-in-View-tp3367716p3383722.html Sent from the CakePHP mailing list archive at Nabble.com. -- Our newest site

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-12 Thread websurfshop
It's an insecurity complex for freshman programmers. Kind of like going out on our first date and realizing your out with a mature naked cake baker. It's enough to make anyone stutter and repeat themselves . ;-/ People will help, you so saying your new over and over is just irritating.

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-12 Thread ibejohn818
and invented the Dubya-Dubya-Dubya Good luck On Feb 11, 4:52 pm, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-12 Thread Jeremy Burns | Class Outfit
if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS! A NEW USER TO CAKE! Holy shit say it's not so! People on the board for more than a month can tell by the name basically if your new

New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread Krissy Masters
I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well then let me just drop everything, BREAKING NEWS! A NEW USER TO CAKE! Holy shit say it's not so! People on the board for more than a month can tell by the name

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread Larry E. Masters
Old hag might get some of us old timers attention. -- Larry E. Masters On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.comwrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread thatsgreat2345
I think the ability to say whether you're new/old doesn't depend on how long you've been using cake but you knowledge of the ins and outs of cake and how it all works. On Feb 11, 4:52 pm, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help or old

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread Ryan Snowden
Or Noobhag Neat On 12 February 2011 09:04, Larry E. Masters php...@gmail.com wrote: Old hag might get some of us old timers attention. -- Larry E. Masters On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help

Re: New vs Old and need help - FEMALE NEEDS HELP!

2011-02-11 Thread Jeremy Burns | Class Outfit
hag might get some of us old timers attention. -- Larry E. Masters On Fri, Feb 11, 2011 at 6:52 PM, Krissy Masters naked.cake.ba...@gmail.com wrote: I do not think it matters if your new and need help or old cakepro and need help. Why the need to emphasize? New you say! Are you? Well

do I need $this-Auth-userModel = 'User'; in every controller beforefilter or not?

2011-02-09 Thread barricades
confused now. Is the tutorial wrong or have I got the wrong end of the stick? do I need $this-Auth-userModel = 'User'; in every controller beforefilter or not? Or can I stick it in the beforefilter of app_controller? Do I need it at all? thanks -- Our newest site for the community: CakePHP Video

Re: do I need $this-Auth-userModel = 'User'; in every controller beforefilter or not?

2011-02-09 Thread Miles J
Most of those settings are default, so now you do not have to add them as long as you follow conventions. For easier convenience, place in your AppController. However, you do need to allow() in every controllers beforeFilter(). On Feb 9, 12:03 pm, barricades davow...@googlemail.com wrote: I'm

Re: confused! need urgent help.

2011-02-05 Thread dario gaston musante
give us more Data... var_dump $city ... On 4 feb, 02:37, andy_the ultimate baker anandghaywankar...@gmail.com wrote: hi, good morning, since i morning i am working on one index view where i want to display the country. ithe the view i m getting sate and city with its respective code

Re: Blog example not working - need edit in View

2011-02-03 Thread david tan
Thank you folks. You are right, the problem is exactly because of phpcake 1.3. When I download the 1.2 and replace the cake folder, everything works... I don't know how, but I hope maybe someone could fix this, it's a great framework though. Thanks again. -David On Wed, Feb 2, 2011 at 8:04

confused! need urgent help.

2011-02-03 Thread andy_the ultimate baker
hi, good morning, since i morning i am working on one index view where i want to display the country. ithe the view i m getting sate and city with its respective code properly, but the country is not displaying here is my code ?php echo $this-Html-link($city['Country']['title'],

Re: confused! need urgent help.

2011-02-03 Thread Jeremy Burns | Class Outfit
I am almost tempted to say: will u please make it short and approachable to ur point, becouse no one is having to read a long theses of ur query on the work so please make it shor and come in pints, so it would be fine to give u answer ...but I won't. What do you see when you do: ?php

Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View. http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead of $this-Html (as pointed out by another person on Stackoverflow)

Re: Blog example not working - need edit in View

2011-02-02 Thread andy_the ultimate baker
clarify ur error clearly On Feb 2, 5:38 pm, Huy Nguyen nvquang...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View.http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
Sorry for being brief. The error is described in the stackoverflow link. Notice (8): Undefined property: View::$Html [APP\views\posts\index.ctp, line 27] Here is the line: echo $this-Html-link($post['Post']['title'], array('controller' = 'posts', 'action' = 'view', $post['Post']['id'])); I

Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
What version of Cake are you using? Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 2 Feb 2011, at 12:43, Huy Nguyen wrote: Sorry for being brief. The error is described in the stackoverflow link. Notice (8): Undefined property: View::$Html

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
The latest one on cakephp.net, 1.3.7. On Wed, Feb 2, 2011 at 7:44 PM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: What version of Cake are you using? Jeremy Burns *Class Outfit* * * jeremybu...@classoutfit.com jeremybu...@mac.com http://www.classoutfit.com On 2 Feb

Re: Blog example not working - need edit in View

2011-02-02 Thread andy_the ultimate baker
r u sure u r using latest version? ok let it be now try $html-link($post['Post']['title'], array('controller' = 'posts', 'action' = 'view', $post['Post']['id'])); On Feb 2, 5:50 pm, Huy Nguyen nvquang...@gmail.com wrote: The latest one on cakephp.net, 1.3.7. On Wed, Feb 2, 2011 at 7:44 PM,

Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
Have you included any other helpers anywhere? If so, they override the defaults, which means that the Html helper is not loaded. Try adding 'Html' to your list of helpers (and 'Form' for good measure, as that will be missing too). Jeremy Burns Class Outfit jeremybu...@classoutfit.com

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
I just downloaded and installed from http://cakephp.org/ within a few hours ago. 1.3.7 Yeah I tried $html-link instead of $this-Html. It works now. I just thought someone might clarify and amend the example for those who attempt at it later on? :) Huy -- Our newest site for the community:

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
No, I tried both adding more helpers and removed the `var $helpers= array()` line. On Wed, Feb 2, 2011 at 7:57 PM, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com wrote: Have you included any other helpers anywhere? If so, they override the defaults, which means that the Html helper

Re: Blog example not working - need edit in View

2011-02-02 Thread andy_the ultimate baker
good for u On Feb 2, 5:58 pm, Huy Nguyen nvquang...@gmail.com wrote: I just downloaded and installed fromhttp://cakephp.org/within a few hours ago. 1.3.7 Yeah I tried $html-link instead of $this-Html. It works now. I just thought someone might clarify and amend the example for those who

Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
That doesn't sound right to me - the convention is $this-Html and it works like a peach. If it didn't, there'd be a revolution. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 2 Feb 2011, at 12:58, Huy Nguyen wrote: I just downloaded and installed from

Re: Blog example not working - need edit in View

2011-02-02 Thread Ryan Schmidt
On Feb 2, 2011, at 06:38, Huy Nguyen wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in View. http://book.cakephp.org/view/1536/Creating-Post-Views I believe the right way is $html instead of $this-Html (as

Re: Blog example not working - need edit in View

2011-02-02 Thread ibejohn818
What version of PHP/Server/Operating system are you running on? This very well could be the issue. On Feb 2, 4:38 am, Huy Nguyen nvquang...@gmail.com wrote: I'm totally new to CakePHP so I followed the Blog example up to this point and get error because $this-Html not found in

Re: Blog example not working - need edit in View

2011-02-02 Thread euromark
i am guessing its the cake1.3 bug do you use ANY variable in the view called $html? it destroys both $html and $this-Html helper objects @Jeremy If so, they override the defaults, which means that the Html helper is not loaded what version are you referring to? cake usually joins both app and

Re: Blog example not working - need edit in View

2011-02-02 Thread Jeremy Burns | Class Outfit
You are right - I stand corrected. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 3 Feb 2011, at 01:04, euromark wrote: i am guessing its the cake1.3 bug do you use ANY variable in the view called $html? it destroys both $html and $this-Html helper

Re: Blog example not working - need edit in View

2011-02-02 Thread Huy Nguyen
I am using PHP 5.3.5 and Apache 2.2.17 bundled in wampserver, running on Windows 7. CakePHP 1.3.7 And no I don't declare any $html variable in the view. I was just following suit the Blog tutorial on CakePHP Book. On Thu, Feb 3, 2011 at 11:10 AM, Jeremy Burns | Class Outfit

Re: Blog example not working - need edit in View

2011-02-02 Thread AD7six
On Feb 2, 1:58 pm, Huy Nguyen nvquang...@gmail.com wrote: I just downloaded and installed fromhttp://cakephp.org/within a few hours ago. 1.3.7 Yeah I tried $html-link instead of $this-Html. It works now. I just thought someone might clarify and amend the example for those who attempt at it

Re: need help

2011-01-31 Thread Amit Badkas
Hi, By setting 'empty' to false won't display the empty option but you need to set an extra option having label as 'select state', right? For this, set 'empty' = 'select state' instead of false in the 4th argument of select(). Hope that helps. Amit Badkas PHP Applications for E-Biz: http

Re: need help

2011-01-31 Thread cricket
On Mon, Jan 31, 2011 at 7:37 AM, Amit Badkas amit.sanis...@gmail.com wrote: Hi, By setting 'empty' to false won't display the empty option but you need to set an extra option having label as 'select state', right? For this, set 'empty' = 'select state' instead of false in the 4th argument

Re: need help

2011-01-30 Thread andy_the ultimate baker
thanks On Jan 29, 7:54 pm, cricket zijn.digi...@gmail.com wrote: On Sat, Jan 29, 2011 at 3:45 AM, andy_the ultimate baker anandghaywankar...@gmail.com wrote: hi, bakers i m working on one drop down list, i m getting all the values but the first option is coming blank. i want set this

need help

2011-01-29 Thread andy_the ultimate baker
hi, bakers i m working on one drop down list, i m getting all the values but the first option is coming blank. i want set this as select state with some value, like we used to in core php. my view code is as fallows ?php echo $form-

Re: New to cake and need advice

2011-01-29 Thread sudarshana sampath
Hi, I think If you can spend some time with (pure) PHP, It is the best option. Participate on at least one project. I found following is in one of excellent CakePHP book. Once readers have gone through the book, there will be no turning back! Web development will never be the same again.

Re: New to cake and need advice

2011-01-29 Thread Dr. Tarique Sani
Go for it! start developing and come back with specific problems - you will find plenty of help Cheers Tarique On Thu, Jan 27, 2011 at 11:20 PM, newguy aimanparv...@gmail.com wrote: Hi everyone Am new to cake and php but I have 5 - 6 years of coding experience in c/c++. I have basic php

Re: need help

2011-01-29 Thread cricket
On Sat, Jan 29, 2011 at 3:45 AM, andy_the ultimate baker anandghaywankar...@gmail.com wrote: hi, bakers i m working on one drop down list, i m getting all the values but the first option is coming blank. i want set this as select state with some value, like we used to in core php.  my view

Re: New to cake and need advice

2011-01-29 Thread newguy
Thanks guys u all have given me lot of hope and encouragement On Jan 29, 6:32 am, Dr. Tarique Sani tariques...@gmail.com wrote: Go for it! start developing and come back with specific problems - you will find plenty of help Cheers Tarique On Thu, Jan 27, 2011 at 11:20 PM, newguy

Re: Need advice for custom ACL

2011-01-28 Thread AD7six
On Jan 26, 5:05 pm, Ernesto e.fanz...@gmail.com wrote: HiJohn thx for your response acting that way will bloat my app i have hundreds of possible combinations :\ why not just do something simple based on configuration so e.g. // app controller beforeFilter Configure::write('authtype',

Re: New to cake and need advice

2011-01-28 Thread Tonu Tusk
All of it should fit into place - on a pure php side of things, make sure you are 100% up to php array usage, all other parts of the language should fall straight into place with any of the primers you have learned so far. After that it is just boning up on the convention side of things and

CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread OldWest
Basically all I want to do is, instead of creating 2 unique views for the admin and user interface, I only want to display the CRUD controls next to the items when the admin IS logged in. Now the way I am currently doing it is checking the Auth session status and echoing out the controller

CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread OldWest
Basically all I want to do is, instead of creating 2 unique views for the admin and user interface, I only want to display the CRUD controls next to the items when the admin IS logged in. Now the way I am currently doing it is checking the Auth session status and echoing out the controller

Re: CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread AD7six
On Jan 28, 8:20 pm, OldWest ja...@jasonwydro.com wrote: Basically all I want to do is, instead of creating 2 unique views for the admin and user interface, I only want to display the CRUD controls next to the items when the admin IS logged in. Now the way I am currently doing it is checking

Re: CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread OldWest
Hey AD7six, I am not sure why I would do all of that if I can just check the Auth status and echo out the edit controls as necessary.. Maybe I did not understand your reply properly. What is the benefit of using that .js? -- Our newest site for the community: CakePHP Video Tutorials

Re: CakePHP View Sharing w/ ACL (so no need for duplicate view files).

2011-01-28 Thread AD7six
On Jan 28, 10:45 pm, OldWest ja...@jasonwydro.com wrote: Hey AD7six, I am not sure why I would do all of that if I can just check the Auth status and echo out the edit controls as necessary.. Maybe I did not understand your reply properly. What is the benefit of using that .js? you asked

Re: Need advice for custom ACL

2011-01-27 Thread Zaky Katalan-Ezra
In that case my honest advice to you is to revise your design. If it's not simple it's should simply not (In Hebrew it sounds better) -- 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

Re: Need advice for custom ACL

2011-01-27 Thread Ernesto
the only alternative path i can see is to make hundreds of controllers, each with his own specific model. this will lead to hundreds of controllers. Right now i'm acting this way: - i use the standard Cake ACL to prevent unwanted page views. - i added an Authorization model, with HABTM

Re: need help in javascript dropdown,

2011-01-27 Thread sanjib dhar
use $this-Form-input('citilist',array('options'=$state_code_list)); in cakephp.Save all cities in database and set variale as state_code_list=$this-Cities-find('list',array('fields'=array('Cities.cityID','Cities.city'))); On Thu, Jan 27, 2011 at 11:23 AM, andy_the ultimate baker

Re: Need advice for custom ACL

2011-01-27 Thread ShadowCross
Ernesto: Some things to try: For your first example: ignore some validation rules if the user has authorization X. - validate the data from the controller, using the $options parameter to specify which subset of the validation rules to apply. There is a (albeit simplistic) example in the

New to cake and need advice

2011-01-27 Thread newguy
Hi everyone Am new to cake and php but I have 5 - 6 years of coding experience in c/c++. I have basic php knowledge through w3schools, I am in doubt whether starting with cake is a good decision or not, am comfortable with MVC architecture and I really want to learn cake framework but my limited

Re: New to cake and need advice

2011-01-27 Thread Ryan Schmidt
that does what they're doing. Try making small changes. The PHP documentation is pretty good at helping you learn how to use individual functions, once you get to something you need a PHP function for. And of course the CakePHP book is there as a reference for how CakePHP fits together

Re: New to cake and need advice

2011-01-27 Thread newguy
building a basic CakePHP application (the blog app is a common one) and try to follow along, built your own app that does what they're doing. Try making small changes. The PHP documentation is pretty good at helping you learn how to use individual functions, once you get to something you need

Re: New to cake and need advice

2011-01-27 Thread Zaky Katalan-Ezra
Go for it I made the transition after 10 years in C#. I guess you want to do web applications so you have to learn new things any way. I think php and cakephp in particular is the best thing to start with. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Need advice for custom ACL

2011-01-27 Thread Ernesto
Hi ShadowCross. thx for your suggestions. i'll surely try them On 27 Gen, 20:31, ShadowCross adri...@jps.net wrote: Ernesto: Some things to try: For your first example: ignore some validation rules if the user has authorization X. - validate the data from the controller, using the

Need advice for custom ACL

2011-01-26 Thread Ernesto
Hello. in my app i need to (some examples): - ignore some validation rules if the user has authorization X - hide or modify some form fields if user hasn't authorization Y - do the usual ACL things (if you're a Customer you can't modify users and so on) not all of those authorizations

Re: Need advice for custom ACL

2011-01-26 Thread Jon Bennett
hi, in my app i need to (some examples): - ignore some validation rules if the user has authorization X - hide or modify some form fields if user hasn't authorization Y - do the usual ACL things (if you're a Customer you can't modify users and so on) not all of those authorizations

Re: Need advice for custom ACL

2011-01-26 Thread Ernesto
HiJohn thx for your response acting that way will bloat my app i have hundreds of possible combinations :\ On 26 Gen, 15:05, Jon Bennett jmbenn...@gmail.com wrote: hi, in my app i need to (some examples): - ignore some validation rules if the user has authorization X - hide or modify

Re: Need advice for custom ACL

2011-01-26 Thread Jon Bennett
HiJohn thx for your response acting that way will bloat my app i have hundreds of possible combinations :\ Not sure what else to suggest, interested to hear if/how you solve it! -- jon bennett - www.jben.net - blog.jben.net -- Our newest site for the community: CakePHP Video Tutorials

Re: Need advice for custom ACL

2011-01-26 Thread Zaky Katalan-Ezra
not all of those authorizations are referred to a specific controller's action so cake's built-in ACL isn't very useful. Then what they refer to? It looks like you need to create an engine to create your views on the fly. -- Our newest site for the community: CakePHP Video Tutorials http

need help in javascript dropdown,

2011-01-26 Thread andy_the ultimate baker
hi, good morning, i m working on project where i want create two drop down, in first i will choose state so that the next drop down should how the cities with respect to the state selected in first. all that i want to create in javascript, for that i have collected all state_code and its cities

Re: Need advice for custom ACL

2011-01-26 Thread Ernesto
like you need to create an engine to create your views on the fly. -- 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

Re: Need Ajax Help

2011-01-24 Thread andy_the ultimate baker
i have added helpers and component of request handler in controller. i have created a view with delete link as bellow ?php foreach ($users as $user): ? tr td?php echo $user['User']['id']; ?/td td?php echo $this-Html-link($user['User']['name'],

Re: Need Ajax Help

2011-01-24 Thread andy_the ultimate baker
i have added helpers and component of request handler in controller. i have created a view with delete link as bellow ?php foreach ($users as $user): ? tr td?php echo $user['User']['id']; ?/td td?php echo $this-Html-link($user['User']['name'],

Re: Need Ajax Help

2011-01-24 Thread ShadowCross
I'm not seeing anything in your code that would produce a confirmation request. Your delete link in your view is echo $html-link('Delete',array('action'='delete', $user['User']['id']),array('class'='confirm_delete')); Are you attaching JS code to the click event of DOM objects with the

Re: Need Ajax Help

2011-01-24 Thread andy_the ultimate baker
thanks ShadowCross i was looking for the same, thank u, by, Andy On Jan 25, 3:49 am, ShadowCross adri...@jps.net wrote: I'm not seeing anything in your code that would produce a confirmation request.  Your delete link in your view is      echo $html-link('Delete',array('action'='delete',

Need Ajax Help

2011-01-23 Thread andy_the ultimate baker
hi, i m new with ajax. i am trying to delete item using ajax, can any one help me regarding ajax, this would be the great help for me thank u andy -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: Need Ajax Help

2011-01-23 Thread Ryan Schmidt
On Jan 24, 2011, at 00:39, andy_the ultimate baker wrote: i am trying to delete item using ajax, Ok, what have you tried so far? -- 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

Do I still need Model::$whitelist when using the Security component? --psybear

2011-01-21 Thread psybear83
Hey everybody to my knowledge, the $whitelist attribute tells a model, which attributes should be writable when it comes to a save. I'm using the Security component which ensures that nobody tampers with my forms (e.g. adding a new input field), so I guess I don't need $whitelist anymore, right

Re: Do I still need Model::$whitelist when using the Security component? --psybear

2011-01-21 Thread euromark
attribute tells a model, which attributes should be writable when it comes to a save. I'm using the Security component which ensures that nobody tampers with my forms (e.g. adding a new input field), so I guess I don't need $whitelist anymore, right? Thanks for your opinion Josh -- Our newest

Re: Do I still need Model::$whitelist when using the Security component? --psybear

2011-01-21 Thread Joshua Muheim
be writable when it comes to a save. I'm using the Security component which ensures that nobody tampers with my forms (e.g. adding a new input field), so I guess I don't need $whitelist anymore, right? Thanks for your opinion Josh -- Our newest site for the community: CakePHP Video

need urgent help

2011-01-18 Thread andy_the ultimate baker
hi, i m trying to redirect the action on a controller but it is redirecting to another controller action. //users_controller.php function admin_add(){ if(!empty($this-data)){ if($this-save($this-data)){

<    1   2   3   4   5   6   7   8   9   10   >