Re: How to create button in layout with ***Helper in CakePHP 1.2.0.5875-pre-beta

2007-10-26 Thread Chambrln
I put together a simple formButton helper if you want to use it it appears to work. '' ); /** * Creates a input type="button" * * @param string $fieldName The label appearing on the button * @param array $options * @return

Re: How to render a view into a layout

2007-10-25 Thread Chambrln
It sounds like you are wanting to render links for the site. I would suggest making it an element and placing the html in /views/elements/ sitelinks.ctp then you can use echo $this->renderElement('sitelinks'); in your view where you want the links to show up. On Oct 24, 4:16 pm, "David Coll"

Re: Newbie error: "the view for TasksController::index(), could not be found"

2007-10-25 Thread Chambrln
I don't know which version you are using, but if you are using 1.2.* the file needs to be named index.ctp in that folder On Oct 25, 2:26 am, Thomas Armstrong <[EMAIL PROTECTED]> wrote: > Hi. > > I'm trying to create a simple sample to test CakePHP, and I'm > following the steps from:http://graha

Re: How to create button in layout with ***Helper in CakePHP 1.2.0.5875-pre-beta

2007-10-25 Thread Chambrln
I had the same problem yesterday. I don't use buttons regularly, but wanted to on a form. Got the same message that you did. If you look in the core in the form helper it dies before it processes any code. I'm guessing they haven't worked out the bugs yet. I would suggest if you want to use bu

Re: How can I post a form to different controller/actions if the form has two submit buttons

2007-10-25 Thread Chambrln
I would suggest trying to capture the event on the controller side and process your data accordingly. Perhaps you should just put a checkbox on the form so the user can select to "Delete" or "Flag" the application. Then you just need 1 submit button. --~--~-~--~~~--

Re: New to Cake PHP, Question Regarding Functions.

2007-10-16 Thread Chambrln
It sounds like the way you have your current website setup is not going to work for the way Cake works. Cake is geared more towards the Model, Controller, View approach which gives you a controller with specific functions and models associated to that controller. You may want to take a look and

Re: generateList from seperate table, having problems.

2007-10-12 Thread Chambrln
If you want a list of all authors, not just authors associated to that lesson use: $this->User->generateList(..); (fill in with what you had) I'm assuming your controller has $uses = arra('Lessons', 'Users'); or similar... On Oct 12, 8:04 am, EVan <[EMAIL PROTECTED]> wrote: > My applicati

Re: cakePHP and ecommerce security reisks

2007-10-11 Thread Chambrln
There's nothing that says you have to name your field with the model/ field method. If you're concerned about this give it a different name, but then you will need to parse the $this->data array and restructure it if you intend to use $this->model->save($this->data); I doubt this is efficient, es

Re: HTML4 Strict Doctype doesn't validate using $html->docType('html4-strict')

2007-10-04 Thread Chambrln
t like the look of the extra space, but it wasn't enough to bother with for me. On Oct 3, 7:37 pm, "Jay Gilmore (smashingjay)" <[EMAIL PROTECTED]> wrote: > On Oct 3, 7:30 pm, Chambrln <[EMAIL PROTECTED]> wrote: > > > > > There is a ticket opened for this p

HTML4 Strict Doctype doesn't validate using $html->docType('html4-strict')

2007-10-03 Thread Chambrln
There is a ticket opened for this problem but it was converted to an Enhancement instead of a bug and nothing appears to have been done about it. If you use the HTML helper to set your DOCTYPE and want your page to validate here is a workaround until this is fixed. In your /cake/libs/view/helper

Re: IIS reloaded with 1.2

2007-03-28 Thread Chambrln
and demo servers are working fine having deleted all the .htaccess > files. It's something I'll dig into in a bit more detail in another week > or so, in the meantime any other pointers would be appreciated. > > > > Chambrln wrote: > > I am currently using 1.2 with

Re: IIS reloaded with 1.2

2007-03-27 Thread Chambrln
I am currently using 1.2 with IIS as well. I do not have ISAPI Rewrite configured for use at the moment and was having similar problems. There is a Constant defined in /app/config/core.php that you need to uncomment on line 40 - define ('BASE_URL', env('SCRIPT_NAME')); This basically tells cak