Re: Custom tags.php not working in 1.2

2007-03-20 Thread nateklaiber
Still curious about this - using custom tags in 1.2 - is it possible, and what format is it looking for? It looks like tags.php with a $tags array merging with the $tags in HTML helper. Is this correct? Does it load by default and check for custom tags? On Feb 22, 4:19 pm, "nateklaiber&quo

Re: R: Menu from database

2007-03-19 Thread nateklaiber
Just a 'second thanks' as LSL said. I was looking for this same solution (seems others are too, in other threads) - and this seems to be the best solution/placement to get the desired effect. Seems simple now that I look at it. On Mar 19, 3:30 am, "GMail" <[EMAIL PROTECTED]> wrote: > I made a lit

Re: Using multiple databases with Cake

2007-03-16 Thread nateklaiber
x27;login' => 'root', > > 'password' => 'pass', > > 'database' => 'my_other_db' > > ); > > > // models/first.php:

Re: Using multiple databases with Cake

2007-03-16 Thread nateklaiber
en two databases. I hope I am incorrect - as I would love to find a solution for this. On Mar 15, 6:58 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > Just to clarify, what nateklaiber says is incorrect - you can > definitely have multiple databases used in the same application, all >

Re: Using multiple databases with Cake

2007-03-15 Thread nateklaiber
If you are looking to actually use both databases, I don't think this is possible with cake. The options others are giving you are to switch between development/production/etc databases. Are you looking to use 2 together throughout the application, or just switch between two? I had an issue where

Re: Assigning variables to default layout with PagesController

2007-03-15 Thread nateklaiber
I should mention that it was actually $this->renderElement('shows', array('layoutShows' => $layoutShows) (this was a mistake in my previous post). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To

Assigning variables to default layout with PagesController

2007-03-15 Thread nateklaiber
I have a project I am working on where I have several static pages that use the default layout. This is not an issue. However, I have the default layout broken into several elements. Some of these elements require getting data from a database. I checked other threads here, as well as cakephp.org,

Re: Email Component and UTF8 Subject

2007-03-02 Thread nateklaiber
Cake 1.2 has a new email component, I believe that is what he is referring to. On Mar 2, 10:44 am, "bernardo" <[EMAIL PROTECTED]> wrote: > What component? > The one that uses the phpmailer library handles encoding of the > headers fine. > Also note that by calling utf8_decode you are converting

Re: Custom tags.php not working in 1.2

2007-02-22 Thread nateklaiber
I am now having the same issue in 1.2 trying to create custom tags. The previous loadConfig file used to parse an ini file. Now, it looks to be including a tags.php file. Is it now looking for a tags array or still an ini format? Also, does it need to be manually loaded in custom helpers? On Fe

Question about $this->redirect()

2007-02-16 Thread nateklaiber
In 1.1 you were required to call exit() after your redirect. This was not a problem, but looking at the API for 1.2 - you can specify the exit call within the function: function redirect($url, $status = null, $exit = false) I also like that you can specify a status code as well. However, I have

Re: Using acl.php to create the database with shared domains

2007-02-16 Thread nateklaiber
Nevermind, I figured it out. I just edited the $app to point to '/ home/domains/www.domain.com' and it worked. On Feb 16, 3:03 pm, "nateklaiber" <[EMAIL PROTECTED]> wrote: > My setup is a little different from the default setup for cake (1.2 > nightly). > &g

Using acl.php to create the database with shared domains

2007-02-16 Thread nateklaiber
My setup is a little different from the default setup for cake (1.2 nightly). I have the core cake library shared among several other domains. The structure looks like: /home/core/cake /home/domains/www.domain1.com/webroot /home/domains/www.domain2.com/webroot The core holds files/aliases I nee

Re: Navigation Component / Helper

2007-02-14 Thread nateklaiber
Definitely us an Element. I recently did a project and had the same thing. Several shared navigation elements that I needed in all of my layouts. I created a default layout - and then used renderElement to render them in the layouts/views. I think this is exactly what you are looking for. Email

Re: What editor do you use for CakePHP?

2007-02-12 Thread nateklaiber
Textmate for the editor and Transmit for the FTP client (OS X). It's a great combination, and very flexible with code bundles. On Feb 12, 9:59 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > phpeclipse > > On Feb 12, 1:41 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Top stuff. T

Re: tags.ini.php

2007-02-11 Thread nateklaiber
I believe its been moved to the helper class - but you can still specify custom tags with a tags.ini.php file. I just did this last week with cake 1.2. On Feb 10, 10:15 pm, "NeilKelty" <[EMAIL PROTECTED]> wrote: > I cannot find this file in the builds/nor my current installation - > I've plowed t

Re: How to validate a custom form?

2007-02-07 Thread nateklaiber
I think it is clear. Validation rules are setup in the model. BUT - what if he was making a contact form that never wrote to the database (or even used a model) - but still needed to be validated before the email was sent? I think that is what he is saying - being able to have validation rules ou