Re: How to use Two tables in one model/controller

2007-03-14 Thread [EMAIL PROTECTED]
there are not linked. On Mar 15, 8:55 am, "Daniel.S" <[EMAIL PROTECTED]> wrote: > Are the tables linked? > > On Mar 15, 2:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > hi all, i am new to cakephp. and finding it very interesting and easy > > to work with it. I want to know how can

Set the MIME type for output

2007-03-14 Thread Tazz
Hi, I want to create a view that will output a csv file so i need to set it's mime type when rendering the page so the browser can detect the file as coma delimitted... How would I do so? Thanks --~--~-~--~~~---~--~~ You received this message because you are sub

Re: How to use Two tables in one model/controller

2007-03-14 Thread Daniel.S
Are the tables linked? On Mar 15, 2:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi all, i am new to cakephp. and finding it very interesting and easy > to work with it. I want to know how can we use multiple tables in one > model/controller > > Thanks in advance --~--~-~--~-

Re: Can't find the mysql.sock file.

2007-03-14 Thread Walker Hamilton
This isn't a cakePHP problem. It's a problem with your php setup. Go ask on the php list. ButI bet if you search real hard using this site I found recently called "google" you'll figure out how to edit your php.ini file to point to the right place. On Mar 14, 6:38 pm, "peterhf" <[EMAIL PROTE

How to use Two tables in one model/controller

2007-03-14 Thread [EMAIL PROTECTED]
hi all, i am new to cakephp. and finding it very interesting and easy to work with it. I want to know how can we use multiple tables in one model/controller Thanks in advance --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: Model access from a Vendor?

2007-03-14 Thread Sam Sherlock
>From what I understand you would use the vendor code within the action of a controller eg if you have a articles to deal with vendor('funkyStuff'); $arts = $this->Article->findAll(array('Article.id' => $id)); - S On 15/03/07, E. F. <[EMAIL PROTECTED]> wrote: > > > I have a nice little vendor

Model access from a Vendor?

2007-03-14 Thread E. F.
I have a nice little vendor package that locates places within a radius of a zipcode among other things. But currently it needs to run a query against a zipcode table in my database. I was wondering if anyone knows how I could access the model so that I could run a query? I know that I can modify

Re: Gettext unstable ¿?

2007-03-14 Thread Nico
About point 4: Replying to myself in case anybody has the same problem: restarting apache did the trick. My system: - Debian testing kernel 2.4.27-3-386 - Apache 2.2.3-3.3 - PHP 5.2.0-8 - gettext 0.16.1-1 - php-gettext 1.0.7-2 - CakePHP 1.1.13 I had installed everything, but never restarted ap

Re: Random switching locales?

2007-03-14 Thread Nico
Replying to myself in case anybody has the same problem: restarting apache did the trick. My system: - Debian testing kernel 2.4.27-3-386 - Apache 2.2.3-3.3 - PHP 5.2.0-8 - gettext 0.16.1-1 - php-gettext 1.0.7-2 - CakePHP 1.1.13 --~--~-~--~~~---~--~~ You receive

Re: email form

2007-03-14 Thread Sam Sherlock
I have tried to get this going with cakePHP 1.2 In the comments it mentioned that you need email & output components by rdOS I was unable able to find either of these - a verity of searches on google and have double checked the bakery What Email component are you using? (CakePHP 1.2 has its own

Can't find the mysql.sock file.

2007-03-14 Thread peterhf
Working through my first tutorial for using Cake PHP and got this error message: Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) in / Library/WebServer/Documents/cake/cake/libs/model/dbo/dbo_mysql.php on line 102.

Re: i18n

2007-03-14 Thread Alexandre
I read this post. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For

Re: Cakephp on a subdomain ... HELP

2007-03-14 Thread [EMAIL PROTECTED]
I use subdomains frequently, with no problems at all. I think we will need a lot more info to help you sort this out: 1. Can u set the document root for your subdomain? If so, have you set it to cake/app/webroot"? 2. What exactly is the your directory structure? 3. Does your subdomain work withou

Cakephp on a subdomain ... HELP

2007-03-14 Thread Synt4x
I'm hosting a cakephp script on a subdomain, wich works like this. I created a folder called "cakescript" in my public_html folder and created a subdomain with the same name. That works. Now, when I go to this subdomain I keep getting "400 baad request" errors. I've tried EVERYTHING with this .h

Bake error model_php4.php on line 445

2007-03-14 Thread [EMAIL PROTECTED]
I've been having this error while trying to bake a controller on version 1.1.12.4205 Fatal error: Cannot instantiate non-existent class: healthsinfo in / Users/Rolando/Documents/working/yougotinsurance/cake/libs/model/ model_php4.php on line 445 these are the lines 444 and 445 $this->{$assoc}

Re: i18n

2007-03-14 Thread rtconner
You could start by reading what people have posted before.. http://groups.google.com/group/cake-php/browse_thread/thread/996b916448eb9d6a/ecdcdf40b16387ae?lnk=gst&q=i18n&rnum=1#ecdcdf40b16387ae --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Dynamic database connections

2007-03-14 Thread [EMAIL PROTECTED]
How dynamic does your DDC need to be? I guess the question is, are you building the connection based on user input and controller logic? If not you can build whatever you need in the config/database.php file. I replaced database.php with this code, and then created database_production.php and dat

i18n

2007-03-14 Thread Alexandre
How I can do the translations of fields of a database table? --~--~-~--~~~---~--~~ 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

Dynamic database connections

2007-03-14 Thread rtconner
Hello, I have a bit of a hard one here (on Cake 1.2.x, if it matters). Definitely need some ideas. I am trying to create a dynamic database connection (henceforth DDC). Basically all model instances will connect to the dynamically created connection. I can create the connection just fine Connecti

Re: New Auth component asking for login on every page :(

2007-03-14 Thread nate
It's cool y'all, just chill for a bit. Help is on the way... yeah baby, help is on the way. digital spaghetti: If you $this->Auth->fields = array('password' => 'passwd'), that leaves it without a user name. You need to either do: $this->Auth->fields['password'] = 'passwd'; - or - $this->Auth->

Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread gerbenzomp
That's a good one ;) On 14 mrt, 18:24, "djiize" <[EMAIL PROTECTED]> wrote: > to avoid this little space at the end, don't close php tags > (forget the ?> at the end of the file) > seems dirty, but PHP automatically close php tags when reaching end of > file ;) > > On 14 mar, 18:07, "gerbenzomp" <

Re: Form validation

2007-03-14 Thread djiize
to use the Cakebin, just paste your code in the Body field, enter your nick, select the right language and enter a description in the Note field can you past your view in it? On 14 mar, 18:22, "dev_null" <[EMAIL PROTECTED]> wrote: > I am using both Form and Html helpers. > > How do I usehttp://b

Re: obAuth with Cake 1.2.x

2007-03-14 Thread rtconner
I ended up havign to do something like this... loadModel($this->user_model); ... $UserModel = &new $this->user_model; $user = $UserModel -> find($conditions); I'll post the whole thing when I'm conifident it works well. --~--~-~--~~~---~--~~ You received this me

Re: Using Javascript in Static Pages

2007-03-14 Thread dizz
Thanks, works great! On Mar 15, 2:59 am, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > 1. Copy cake/libs/controller/pages_controller.php to your app/controllers. > > 2. Open and change: > > var $helpers = array('Html'); > >to: > > var $helpers = array('Html', 'Javascript');

Using Javascript in Static Pages

2007-03-14 Thread dizz
Hello, how can you access the javascript helper using the static pages? ie. PagesController --~--~-~--~~~---~--~~ 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@googlegroup

RE: Using Javascript in Static Pages

2007-03-14 Thread Mariano Iglesias
1. Copy cake/libs/controller/pages_controller.php to your app/controllers. 2. Open and change: var $helpers = array('Html'); to: var $helpers = array('Html', 'Javascript'); and that's it. -MI --- Rem

Re: Things I need help on

2007-03-14 Thread digital spaghetti
I've just added a helper to the bakery for a country drop down list. You could easily create your own method using the same code to also do one for states. Or if you want to have the list in your db, go with the generateList option. Tane On 3/13/07, rtconner <[EMAIL PROTECTED]> wrote: > > Hello

Re: New Auth component asking for login on every page :(

2007-03-14 Thread digital spaghetti
Yea, unfortunatly I got that today as well (a piss off) I managed to get it implemented, but still hit a few snags: Defining $this->Auth->fields = array('password' = 'passwd'); doesn't seem to work. Just for testing, I changed the var directly in the component and it worked, but it seems at the

Re: Render view in new window?

2007-03-14 Thread digital spaghetti
You could also use some AJAX! You could implement a javascript library like thickbox for jQuery, and using the Request Handler component, when you click on a link you can send the view to the thickbox. You need to check out the thickbox documentation on how to implement it - or if you prefer Pro

Re: obAuth with Cake 1.2.x

2007-03-14 Thread soytuny
I recall I similar problem that I fixed by adding var $uses = array('User', 'LoginAttempts') to app_controller.php. That might be the kludge you need. On Mar 14, 10:52 am, "rtconner" <[EMAIL PROTECTED]> wrote: > Has anyone used obAuth with Cake 1.2.x? I am getting an error that I'm > having t

Re: Multiple databases using same app and cake core

2007-03-14 Thread soytuny
francky06l, Your approach work great! It gets rid of the pesky notices, and it will make it easier to do master reports about all systems. BTW, so I didn't have to change each model, I put the line > var $useDbConfig = CLIENTDB; in app_model.php and that seems to work. Thanks, Russell On

Random switching locales?

2007-03-14 Thread Nico
I'm trying to make gettext work with cake 1.1.x (stable) but I'm having some trouble. I'm running some tests with gettext, doing all locale initialization on the view (yes I know, worse thing to do, but it's just for testing), and I'm getting weird results. At first I thought everything had worked

Cake 1.1 + gettext or cake 1.2?

2007-03-14 Thread Nico
Hi, as many of you before, I'm trying to make gettext work with cakephp and I wanted to ask for advice. I'll number my questions for easy reading: 1. Is it worth the trouble trying gettext to work with cakephp 1.1.x? or is it better to just use 1.2 even though is not finished yet? 2. Some links

Re: Variable to find Current Controller

2007-03-14 Thread dizz
That is exactly what I need it for ;) Thanks again. On Mar 14, 11:16 pm, "djiize" <[EMAIL PROTECTED]> wrote: > it's useful to highlight current menu in a navbar for instance > > I use it to select the correct ad banner for a page (different banner > by theme) > > On 14 mar, 17:11, "Chris Hartjes

Re: Cake Extension and Application Repository

2007-03-14 Thread [EMAIL PROTECTED]
what you are proposing is: 1) a structure (outside of the core code) where 3rd party pieces of code can be put 2) you don't explicitly mention this, but for 1) to work, you need code *in* the core to support this kind of functionality. This is very similar to what i proposed. I paid more attentio

Re: Multiple databases using same app and cake core

2007-03-14 Thread soytuny
Addendum: The last two items cause PHP to give a notice because those constants are defined later on. I had to define the APP_PATH because cake \bootstrap.php and cake\libs\configure.php use it to find core.php and bootstrap.php. This seems to work, and now when I need to fix bugs in my code I

Re: populate select without title field

2007-03-14 Thread francky06l
you can also use the following syntax in generateList(): generateList(null, null, '{n}.Idioma.codi', '{n}.Idioma.descripcio'); that will generate your list using codi and descripcio. hope this helps On Mar 14, 5:51 pm, "djiize" <[EMAIL PROTECTED]> wrote: > it's displayField, not displayName >

Re: Multiple databases using same app and cake core

2007-03-14 Thread francky06l
you can use the same database.php. In this one you could define different database ie : 'client1', 'client2' etc config ..In your index.php you could define a value set to the spotted DB (ie : define('CLIENTDB', 'client1'); and at the end in your models you could set : var $useDbConfig = CLIENT

Re: Render view in new window?

2007-03-14 Thread francky06l
If this view is generated from a link, just add 'target' => '_blank' into the option array of your originated $html->link On Mar 14, 5:43 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all, > Does anyone know how I would render a view in a new window? > > Thanks! --~--~-~--~---

Re: Form validation

2007-03-14 Thread dev_null
I am using both Form and Html helpers. How do I use http://bin.cakephp.org/ ? --~--~-~--~~~---~--~~ 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 uns

obAuth with Cake 1.2.x

2007-03-14 Thread rtconner
Has anyone used obAuth with Cake 1.2.x? I am getting an error that I'm having trouble fixing. Undefined property: obAuthComponent::$User [CORE\app\controllers \components\ob_auth.php, line 46] It seems that the componant cannot locate a the Model User within the UserController. I have tried loa

Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread djiize
to avoid this little space at the end, don't close php tags (forget the ?> at the end of the file) seems dirty, but PHP automatically close php tags when reaching end of file ;) On 14 mar, 18:07, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > Found it! There was one tiny little space after the php clo

Multiple databases using same app and cake core

2007-03-14 Thread [EMAIL PROTECTED]
Hello all, I was hired to develop an application that is now going to be sold as a service. So customers pay a fee and we install an instance of the application with their branding on our server. I am figuring out how to install and manage the instances. I plan is to share the cake and app fol

Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread gerbenzomp
Found it! There was one tiny little space after the php closing-tag of my app_model.php :) Php isn't a picky programming-language, but with spaces it is ;) Spaces seem to be the only the invisible programming-errors we can make ;) Feed is up-and running! I like the fact that your example is so n

Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread Chris Hartjes
On 3/14/07, gerbenzomp <[EMAIL PROTECTED]> wrote: > > Hi Chris, > > Thanks for the tutorial! Because I use version 1.1, I used your > previous example (http://www.littlehart.net/atthekeyboard/2006/11/29/ > using-cakephps-native-web-service-support/). It worked just fine > (although it seems a lot

Re: populate select without title field

2007-03-14 Thread djiize
it's displayField, not displayName On 14 mar, 17:18, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > in the model you can define the displayName > > var $displayName = 'codi'; > > On 3/14/07, Alexandre <[EMAIL PROTECTED]> wrote: > > > > > > > Hi, > > i'm leaner of cakephp. > > > I need to populate a

Re: populate select without title field

2007-03-14 Thread Alexandre
Thanks --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more option

Render view in new window?

2007-03-14 Thread [EMAIL PROTECTED]
Hi all, Does anyone know how I would render a view in a new window? Thanks! --~--~-~--~~~---~--~~ 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 unsubs

mod_rewrite + admin routing via subdomain -> missing controller

2007-03-14 Thread jyrgen
hi there, i have the following problem: while i managed to get mod_rewrite running, it fails on my subdomain "admin.localhost". ### part of appcontroller dump [controller] => AdminusersController [controllerName] => Adminusers ) [pageTitle] => Missing Controller ### part of appcontrol

Re: Form validation

2007-03-14 Thread djiize
Do you use Form help or Html helper to print form? (cake 1.1 or 1.2 ?) Just an advice, if you follow Cake conventions, you can write your associations like that: var $belongsTo = array( 'School', 'Country', 'Timezone', 'Chattype', 'Chatimage', 'User

Re: Variable to find Current Controller

2007-03-14 Thread Chris Hartjes
On 3/14/07, djiize <[EMAIL PROTECTED]> wrote: > > it's useful to highlight current menu in a navbar for instance > > I use it to select the correct ad banner for a page (different banner > by theme) > Of course. /me slaps himself in the head Just shows that I'm not an interface guy at all. :)

Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread gerbenzomp
Hi Chris, Thanks for the tutorial! Because I use version 1.1, I used your previous example (http://www.littlehart.net/atthekeyboard/2006/11/29/ using-cakephps-native-web-service-support/). It worked just fine (although it seems a lot easier in 1.2!), but I found a strange particularity when I wan

Re: populate select without title field

2007-03-14 Thread Samuel DeVore
in the model you can define the displayName var $displayName = 'codi'; On 3/14/07, Alexandre <[EMAIL PROTECTED]> wrote: > > Hi, > i'm leaner of cakephp. > > I need to populate a select, and i do it > > $idiomas = $this->I18ntag->Idioma->generateList(); > > but i doesn't have the title field, and

Re: Variable to find Current Controller

2007-03-14 Thread djiize
it's useful to highlight current menu in a navbar for instance I use it to select the correct ad banner for a page (different banner by theme) On 14 mar, 17:11, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 3/14/07, dizz <[EMAIL PROTECTED]> wrote: > > > > > Is there a Cake method or variable t

Re: populate select without title field

2007-03-14 Thread djiize
2 ways: if you follow Cake conventions, you should rename your "codi" field to "name" if not, in your Idioma model, add var $displayField = 'codi'; and that's done! On 14 mar, 17:03, "Alexandre" <[EMAIL PROTECTED]> wrote: > Hi, > i'm leaner of cakephp. > > I need to populate a select, and i do

Re: Variable to find Current Controller

2007-03-14 Thread Chris Hartjes
On 3/14/07, dizz <[EMAIL PROTECTED]> wrote: > > Is there a Cake method or variable to get the current controller and > action? > > Thanks in advance. This is a question I see a lot, and wonder why so many people need to know this information? I've used other frameworks and have never run into a

populate select without title field

2007-03-14 Thread Alexandre
Hi, i'm leaner of cakephp. I need to populate a select, and i do it $idiomas = $this->I18ntag->Idioma->generateList(); but i doesn't have the title field, and i see only the id fields, i would like get de filed codi. CREATE TABLE `idiomas` ( `id` int(3) NOT NULL auto_increment, `codi` char

Re: Variable to find Current Controller

2007-03-14 Thread djiize
$this->name and $this->action will be useful and pr($this) in controller or view too ;) On 14 mar, 16:24, "dizz" <[EMAIL PROTECTED]> wrote: > Is there a Cake method or variable to get the current controller and > action? > > Thanks in advance. --~--~-~--~~~---~--~--

Re: Assigning option attributes

2007-03-14 Thread dev_null
I misread the HtmlHelper code. The optionArr is for an array of suboptions! I thought it was for html attributes for the given option array. Sorry. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Form validation

2007-03-14 Thread dev_null
My form is not validating on submission. I'm a newbie, so please be gentle. Here's my model: array('className' => 'School', 'conditions' => '', 'order' => '', 'fore

Re: Database proxy, or something like that...

2007-03-14 Thread [EMAIL PROTECTED]
I don't really think that running all of the queries at once will save u much overhead, unless you have a slow db connection, or an extremely high number of queries. If the connection overhead really is too much, consider using SQLITE. If you want to go ahead with your current plan, cake already

Variable to find Current Controller

2007-03-14 Thread dizz
Is there a Cake method or variable to get the current controller and action? Thanks in advance. --~--~-~--~~~---~--~~ 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@google

Re: Assigning option attributes

2007-03-14 Thread [EMAIL PROTECTED]
The functionality does exist, look at here: http://api.cakephp.org/class_html_helper.html#dc661e84e1710023d94691fad33f40ec If you still need help, please show us your code! Otherwise how would we know if you are "not creating the array correctly". cook On Mar 14, 9:02 am, "dev_null" <[EMAIL PR

Re: mod_rewrite and mod_rewrite (virtual hosts)

2007-03-14 Thread [EMAIL PROTECTED]
Hmmm, I think maybe your question is a bit fuzzy... Are you saying that you have a non-cake app that you want to run on the same domain as your cake install? If so, you should be able to place your app in the webroot folder and use it normally. So this: \webroot\anotherApp\hello.php Should be a

Re: Cake Extension and Application Repository

2007-03-14 Thread [EMAIL PROTECTED]
I think your idea has merit, and many of us would like to see a cake EAR, however... I think cake may not be ready for such a thing. 1. With all of the new stuff planned for cake 2.0, I think the core developers are probably too busy to manage something of this scale (even if they wanted too). 2

RE: email form

2007-03-14 Thread Mariano Iglesias
Happy to know that. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http://www.MarianoIglesias.com.ar -Mensaje origin

Re: email form

2007-03-14 Thread gerbenzomp
@ Mariano: Forget my remarks above: I think I've already solved it: I forgot to create the email view, containing: Which will very likely solve both issues described above :) On 14 mrt, 13:58, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > > I think it would be wise to get familiar with 1.1 first

RE: email form

2007-03-14 Thread Mariano Iglesias
CakePHP 1.2 will deprecate some methods on HtmlHelper, and eventhough they will still work it is highly recommended that you will have to rewrite your forms to use the FormHelper instead. There are some more changes, just check the roadmap on the trac. What Email component are you using? (CakePHP

Re: email form

2007-03-14 Thread gerbenzomp
> I think it would be wise to get familiar with 1.1 first, as that's the > version the manual and most available documentation/info refers to. Cool, I'll stay on the safe side ;) There's still a lot to learn. Is the Cake-code backwards-compatible, or would I have to update parts of my code once

Assigning option attributes

2007-03-14 Thread dev_null
I need to add title="something" tags to my options values of a select tag. Is it possible to do it using HtmlHelper::selectTag() or should I just build the option tags myself? I've tried sending that function an optionAttr array, but I'm either not creating the array correctly, or it's not possibl

Re: Lightbox + Cake

2007-03-14 Thread Grzegorz Pawlik
ofcourse it is. Dot means object member, that's why it is "missing name after . operator" On Mar 12, 11:21 pm, "f." <[EMAIL PROTECTED]> wrote: > Hi, > > >http://img88.imageshack.us/img88/5099/77614616od5.png > > I think string concatenation is done with '+' in Javascript. > Maybe a PHP habit, th

Re: How to use core classes like folder

2007-03-14 Thread sucram
Worked for me ... thx sucram On 14 Mrz., 12:16, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 3/14/07, sucram <[EMAIL PROTECTED]> wrote:> I'd like to show the content > of a folder in a view template. I've seen > > there is a core class with the function ls() > > In your controller > > us

Re: How to use core classes like folder

2007-03-14 Thread Dr. Tarique Sani
On 3/14/07, sucram <[EMAIL PROTECTED]> wrote: > I'd like to show the content of a folder in a view template. I've seen > there is a core class with the function ls() In your controller uses('folder'); $folder = new Folder('/path/which/you/want/to/ls'); $files_in_folder = $folder->ls(); $this-set

Re: Cake Extension and Application Repository

2007-03-14 Thread adi
My proposal is not for something that would be part of the Cake core but rather a structured repository for add-ons. If the repository is well structured and organized users can easily download add-ons and just plug them into the cake framework. The installed add-ons will know what other add-ons

How to use core classes like folder

2007-03-14 Thread sucram
Hi! I'm new to cakephp and object oriented php programming, so please apologize my maybe simple question. I'd like to show the content of a folder in a view template. I've seen there is a core class with the function ls() I've no idea how to implement this ... Any hints for me? Thx sucram --

Re: email form

2007-03-14 Thread AD7six
On Mar 14, 10:53 am, "gerbenzomp" <[EMAIL PROTECTED]> wrote: > BTW: Are you all working with version 1.2, and should I upgrade? Or > wait till it's stable? I think it would be wise to get familiar with 1.1 first, as that's the version the manual and most available documentation/info refers to.

RE: email form

2007-03-14 Thread Mariano Iglesias
That's your decision. If you are confortable with CakePHP 1.2 being in alpha stage (and understanding what that means), then you can certainly upgrade. Otherwise you could stick to CakePHP stable releases. -MI --- Remember,

RE: email form

2007-03-14 Thread Mariano Iglesias
It should look: uses('sanitize'); $sanitize = new Sanitize(); $sanitize->cleanArray($this->data) Is this part of the code working now? -MI --- Remember, smart coders answer ten questions for every question they ask. So b

Re: email form

2007-03-14 Thread gerbenzomp
BTW: Are you all working with version 1.2, and should I upgrade? Or wait till it's stable? Gerben. On 14 mrt, 01:34, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > My bad. > > Good thing I asked him to do new Sanitize() and then pr > > -MI > > ---

Re: email form

2007-03-14 Thread gerbenzomp
Sorry, my mistake: I do have version 1.1 So what should the code read now? When I do this: uses('Sanitize'); $sanitize = new Sanitize(); pr($sanitize); and then exit; I get this: sanitize Object ( ) If I remove "exit;" to let the script go on, the email is sent, but in the email I get: (Error

DB ACL doesn't work

2007-03-14 Thread Jean Noël GERMON
Hello, I've jsut installed cakephp 1.1.13.4550 and I try to use the ACL like it's describe in the documentation (chapter 14). I've created acl tables in my database and add aros and acos (Jimi Hendrix, Bob Marley...). But, when I use the function $this->Acl->check($aro, $aco, "*"), I obtain this

Re: Cake Extension and Application Repository

2007-03-14 Thread [EMAIL PROTECTED]
I had a very similar idea a while ago http://groups.google.com/group/cake-php/browse_thread/thread/31e76e2d24f7 My idea never made it though (phpnut found it too application specific to be put in the framework) On Mar 14, 8:58 am, "adi" <[EMAIL PROTECTED]> wrote: > Hi all, > > This is my firs

Re: HABTM problems

2007-03-14 Thread [EMAIL PROTECTED]
Thanks Langdon - I'll look those up today. I have been searching amongst HABTM posts in this group, but hadn't come across this one. Strangely, it had crossed my mind as a solution, but I thought I was getting too complicated. Off I go, cheers, Dan On Mar 14, 1:27 am, Langdon Stevenson <[EMAIL

Cake Extension and Application Repository

2007-03-14 Thread adi
Hi all, This is my first post here and I must confess I am somewhat of a Cake newbie. I am however an experienced PHP developer, and web-designer. I have spent many years dabbling in a number of CMS systems from Nuke to CPG-Nuke to Joomla to Xoops to Drupal. They all have their various pro's and