generateList() from different model

2006-06-11 Thread sicapitan
Hi there I have a 'User' model, and a 'State' model with the appropriate controllers. so when i go /users/add_talent which calls add_talent.thtml I have a dropdown which I want to fill with the states. My states db is id,name I have no link in my user model to states, does it need to go into

Re: generateList() from different model

2006-06-11 Thread sicapitan
oops continued : label for=userstateState: /label?php echo $html-selectTag('User/user_id', $states, $selected_state, null, null, false); ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to

radio button select

2006-06-11 Thread sicapitan
?php echo $html-radio('User/twins', array('1' = 'Yes', '0' = 'No')); ? how do i make option 1 (yes) be selected? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Shopping Cart in CakePHP

2006-06-11 Thread Carlos Mauricio Samour
I worked on a similar problem. I have not made a component (yet) But this is what I did. First on the controller I checked if the session data for my invoice header data was stored. I am new at cake. if (!$this-Session-check('documentoventa')) {

Re: OT: Fase v0.8

2006-06-11 Thread Felix Geisendörfer
For the performance part of it. I think you could easily check if the js/css files md5 hash has changed and if not use a cached version. That way you wouldn't need to go through the dispatcher. However this only works if the same js/css include outputs the same js/css with no dynamic data

Re: Arrays in sessions.

2006-06-11 Thread DJ Spark
In the views , you may use $this-controller-Session-read('Transaccion'); spark On 6/10/06, Carlos Mauricio Samour [EMAIL PROTECTED] wrote: Well I just answered my own question by doing this: $this-set('data', $this-Session-read('Transaccion')); Once againg: CAKE RULES! On 6/10/06,

Re: Unobtrusive Javascript / AJAX Helpers

2006-06-11 Thread nate
Ask and ye shall receive: https://trac.cakephp.org/changeset/3047 JavascriptHelper::cacheEvents now supports caching all JavaScript code written with JavascriptHelper, but it also supports outputting the code to an external file and embedding a script tag in your page to link to it (note: your

insert id after save?

2006-06-11 Thread Nick
If I'm saving a record as such: $this-Comment-save($this-params['data']) How do I get the id of the inserted/updated record so I can update associations/execute some custom sql? Thanks! Nick --~--~-~--~~~---~--~~ You received this message because you are

Re: insert id after save?

2006-06-11 Thread nate
http://api.cakephp.org/class_model.html#65b843d323334bdf94b909dca29a6531 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: Shopping Cart in CakePHP

2006-06-11 Thread brandags
Hmm... So can you store a component in the session? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Problems w/ Cake Tutorials Working.. Getting Fatal Errors

2006-06-11 Thread jeannie109
I have read just about every posting for Fatal Errors and I can't find a thing that helps me. I am getting: Fatal error: Call to a member function on a non object /jobboard.bernardtransportation.com/CAKE/app/views/layouts/default.thtml on line 8 I am getting this error on the CAKE/tasks

Re: Problems w/ Cake Tutorials Working.. Getting Fatal Errors

2006-06-11 Thread nate
Add this to your GalleryController: var $helpers = array('Html', 'Javascript', 'Ajax'); --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Problems w/ Cake Tutorials Working.. Getting Fatal Errors

2006-06-11 Thread jeannie109
Nate-- So sorry, I was so excited too, to be finally over with this problem, but, sad to say, it didn't work. As I said above, I am getting the same error with every tutorial I try. http://jobboard.bernardtransportation.com/CAKE/tasks (at least I get something on this page, but it is not

Re: Problems w/ Cake Tutorials Working.. Getting Fatal Errors

2006-06-11 Thread nate
Okay, this is because you're using JavascriptHelper in your default layout, and it is being rendered in an error view (Missing controller). The root of the problem is your URL. It should be http://jobboard.bernardtransportation.com/CAKE/gallery/ (no _controller at the end). Also it looks like