Re: Google Maps

2007-05-06 Thread Arndtinho
Hello, I found an solution now. Regards, Arndtinho On 6 Mai, 19:04, Arndtinho <[EMAIL PROTECTED]> wrote: > Hello, > > how can I use Google Maps in an cake project? > I tried this tutorials > > -http://bakery.cakephp.org/articles/view/geocoding-in-cakephp > -http://bakery.cakephp.org/articles/

Re: searching for a newsletter component

2007-05-06 Thread jyrgen
hey abba, thanks for pointing me to this. Are these services free ? Is there anything comparable in Europe/Germany ? If this causes additional costs for my customer, i guess it's not for me. I'd rather implement my own system (or phplist) then. Regarding the load, well i heavily doubt that the co

Re: Benefits of Admin Routing

2007-05-06 Thread jyrgen
by means of admin routing you can for example put all your backend actions into a subdomain (http://admin.yoursite.com) http://bakery.cakephp.org/articles/view/hosting-admin-urls-on-a-subdomain cheers, jyrgen --~--~-~--~~~---~--~~ You received this message beca

Re: Benefits of Admin Routing

2007-05-06 Thread soytuny
>From what I know, admin routing is mostly an organizational tool. However, if you are using othAuth, it does simplify access control. You only have to add 'admin' to the $othAuthRestrictions array, and all your admin routes are covered. And as far as layouts go, you could put the following line

Re: searching for a newsletter component

2007-05-06 Thread abba bryant
Instead of putting the load of sending the emails on your shared host ( who might well disagree with your newsletter is not spam philosophy ) why not use a service like constantcontact or campaignmonitor? They handle subscriber / unsubscriber and the legal issue with mass email and both of them h

Re: In-depth Model Tutorials

2007-05-06 Thread Walker Hamilton
Start by using these two functions: function beforeSave() { //manipulate data being saved for your model, here. //go back up to the parent beforeSave function return parent::beforeSave(); } function beforeFind($queryData) { //add conditions or or other query info

Re: How do I use i18n and l10n in CakePHP 1.2?

2007-05-06 Thread Aaron Shafovaloff
Any ideas on this? This hang-up has kept me back for days. On May 5, 8:34 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > I have $_SESSION['Config']['language'] set to my desired language > buti18n::translate doesn't even seem to have access to $_SESSION?. I've > done a pr($_SESSION) at line

Re: In-depth Model Tutorials

2007-05-06 Thread cdomigan
A friend of mine who uses RoR extensively saw some of my controllers the other day and remarked that they looked way too bloated. A tutorial on using Models to their full potential would be awesome! Chris --~--~-~--~~~---~--~~ You received this message because yo

Benefits of Admin Routing

2007-05-06 Thread [EMAIL PROTECTED]
Hi all - Cake newbie, first post. Can somebody simply explain the advantages of using Cake's built-in admin routing? I have it enabled and understand the base functionality and it seems to me that it just generates a lot of duplicate code and doesn't necessarily help out with auth or acl. I fee

Re: Update to latest version and I got Fatal Error

2007-05-06 Thread Larry E. Masters aka PhpNut
Read the release announcements. http://bakery.cakephp.org/categories/view/1 -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ --~--~-~--~~~---~--~~ You received this message becau

Re: Update to latest version and I got Fatal Error

2007-05-06 Thread eveloper
Anyone can suggest what's going on? Thank you. On May 6, 8:06 am, eveloper <[EMAIL PROTECTED]> wrote: > It has been a while I have not been using CakePHP because the project > I am working on now wasn't built on using CakePHP. Not even with a > proper frameworks... > > Currently I am back using C

Re: Modifying AppModel to ALWAYS send a WHERE clause

2007-05-06 Thread Walker Hamilton
Try beforeFind in your app_model, not app_controller. I think you're looking for something similar to what I wrote about here: http://walkerhamilton.com/456/global-query-conditions --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Modifying AppModel to ALWAYS send a WHERE clause

2007-05-06 Thread leo
Try beforeFind() in your AppController. see http://bakery.cakephp.org/articles/view/soft-delete-behavior vor an example. Pretty new to cake, but this should help ;) -- leo. On 6 Mai, 17:35, haircut <[EMAIL PROTECTED]> wrote: > Each table in my database has a "company_id" column. For each company

Re: searching for a newsletter component

2007-05-06 Thread jyrgen
chris, if i had the choice i would go for Majordomo or another decent list manager. But i have to deal with shared hosting. i'll check out phplist and see if i can integrate it into the framework. cheers, jyrgen --~--~-~--~~~---~--~~ You received this message bec

Re: searching for a newsletter component

2007-05-06 Thread Chris Hartjes
On 5/6/07, jyrgen <[EMAIL PROTECTED]> wrote: > > > i'm talking about a n e w s l e t t e r. (see above ! ) > don't mix that up with spam. > I can spell newsletter just fine, thanks. When you say mass mail, you're talking about code that loops through a list of names and then send out email to e

Re: searching for a newsletter component

2007-05-06 Thread jyrgen
i'm talking about a n e w s l e t t e r. (see above ! ) don't mix that up with spam. > I've tried to stay away from building spam components, hurts my > reputation on the streets. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Re: searching for a newsletter component

2007-05-06 Thread Chris Hartjes
On 5/6/07, jyrgen <[EMAIL PROTECTED]> wrote: > > > sorry, my question is not so much cake related. > i mean a mass mail mechanism which integrates with the > cake architecture esp. class_phpmailer.php > > in the meantime i found phplist, if you have any experiences > with this, please let me know.

Re: searching for a newsletter component

2007-05-06 Thread jyrgen
sorry, my question is not so much cake related. i mean a mass mail mechanism which integrates with the cake architecture esp. class_phpmailer.php in the meantime i found phplist, if you have any experiences with this, please let me know. --~--~-~--~~~---~--~~ Yo

Re: Trouble trying to print this array.

2007-05-06 Thread Mike Griffin
Hi. Try this. It loops through the inventories and then loops through the photos and keeps all the information as you need it. It might point you in the right direction. Mike. --~--~-~--~~~---~--~~ You received this message

Re: searching for a newsletter component

2007-05-06 Thread Chris Hartjes
On 5/6/07, jyrgen <[EMAIL PROTECTED]> wrote: > > > has anybody implemented a newsletter component or plugin ? > > couldn't find anything here as well as in the bakery . > > thanks, jyrgen > When you say "newsletter component or plugin", what do you think that should contain? -- Chris Hartjes M

Re: Bad link without mod rewrite

2007-05-06 Thread sickrandir
Not using any cake function.. The links are inserted as §I wrote in the first message..like this: Links are insertedi in the posts like this: Missuldisc07 Not solved yet.. :-( On May 1, 12:23 pm, xavi <[EMAIL PROTECTED]> wrote: > Are you using $html->url() or $html->link() to generate the l

Google Maps

2007-05-06 Thread Arndtinho
Hello, how can I use Google Maps in an cake project? I tried this tutorials - http://bakery.cakephp.org/articles/view/geocoding-in-cakephp - http://bakery.cakephp.org/articles/view/google-map-helper but nothing is working. With the second tutorial I can see the grey background and the zoom-cont

Modifying AppModel to ALWAYS send a WHERE clause

2007-05-06 Thread haircut
Each table in my database has a "company_id" column. For each company that uses this application, they will ONLY be seeing rows that match the logged-in user's company_id (stored as a session var). So, for any findAll, read, etc calls I've having to send a WHERE clause of company_id = $this->Sessi

searching for a newsletter component

2007-05-06 Thread jyrgen
has anybody implemented a newsletter component or plugin ? couldn't find anything here as well as in the bakery . thanks, jyrgen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this g

Re: Accessing model functions from view?

2007-05-06 Thread hepper
The possible associations is 'belongsTo', ''hasOne', 'hasMany', 'hasAndBelongsToMany' Try (need an extra db table called and condition_remedy, check http://manual.cakephp.org/chapter/models to set up the extra table correctly) if rating only could relate to one condition 'condition' hasAndBelongs

Re: what relationship is this?

2007-05-06 Thread [EMAIL PROTECTED]
> The problem with your suggestion is say my customer comes along and > now wants the site in french as well as spanish, catalan, italian and > dutch. I would have to go and add all the fields into each table. Did you read my entire post? This is the beauty of my suggestion, not the problem! Doin

Re: Question: Join two tables, count and sort result

2007-05-06 Thread geoffriley
You need to quote with backticks the `Vendor`.`count`. Without the backticks the SQL interpreter thinks that you're attempting to use the function count() again, so it's expecting something to count but finds 'FROM' instead: hence the error. So, make your SQL like this, and you should be okay:

Re: Accessing model functions from view?

2007-05-06 Thread Stacey
I thought about passing a var from the controller, but I'm not sure how to do that on a row by row basis. The reason I'm doing this is probably due to an error in my database logic. I have the following: 'condition' hasAndBelongsToMany 'remedy' 'remedy' belongsToMany 'condition' 'remedy' hasMany

Re: Cake set up problem

2007-05-06 Thread anci wasim
the same problem i m facing please ,give me solution.. On 5/5/07, cakedude <[EMAIL PROTECTED]> wrote: > > > Please help. I'm trying to get cake running in an online environment > but i just want cake to run in on directory and leave the rest of the > site like it is. So my cake dir is www.mysite.c

Re: Use of $conditions

2007-05-06 Thread k4mg
Thanks a lot, worked perfectly. Barry On Apr 30, 6:26 pm, rtconner <[EMAIL PROTECTED]> wrote: > I always thought the docs were a little shady on this. To do what you > want to do... > > $this->Program->findAll(null, null, 'p_date DESC, p_time ASC') > > On Apr 30, 3:01 pm, k4mg <[EMAIL PROTECTED]>

Re: Application specific configuration

2007-05-06 Thread Grzegorz Pawlik
there's a config component based on database- look up on bakery :) On May 6, 7:22 am, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > Or create a file called app/config/config.php like the following: > > $config['app'] = array( > 'setting1' => 'value1', > 'setting2' => 'value2' >

Re: Accessing model functions from view?

2007-05-06 Thread hepper
Why not if (isset($var)) { // Do something with $var } On 6 Maj, 06:39, Stacey <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm having a problem trying to access 'hasField' in a view. I have a > calculated field that is only created if there is a value to put in > the field. So, I need to first