Re: AD7six Upload Behaviour

2008-08-31 Thread Josoroma
Hi, Somebody knows how to use and configure at model level the upload behavior of AD7Six, but without using the attachments table? http://groups.google.com/group/cake-php/browse_thread/thread/8ac41ad9dfd4bb7d/a1b2160874e5da48 Any help is welcome. Thanks in advance. --~--~-~--~~--

Trying to set up CakePHP for the first time

2008-08-31 Thread JBeckton
I am in the process of learning PHP and wanted to get started with a framework as well. I have several years dev experience with another web language and I just feel naked when building apps without a framework. I was hoping that CakePHP would be easy to get running but that has not been the case

Re: method find using regex

2008-08-31 Thread Luigi Castro Cardeles
On Aug 30, 10:03 pm, Rafael Bandeira aka rafaelbandeira3 <[EMAIL PROTECTED]> wrote: > > athttp://book.cakephp.org/view/73/retrieving-your-data, is some info > > about usind find with regex (at conditions param). I can't find one > > example of usage and there is nothing at the docs. Someone can gi

Re: failed to open stream: Permission denied ...

2008-08-31 Thread fhx
Hi David, thx for the reply. I deleted everything in .../apps/tmp/cache, but the same messages still appear. I read also the other linked posting, but don't know right now how to use it. I know what a shell is and what a script is, but don't know what is meant there with writing a shell script ...

ORDER BY conundrum

2008-08-31 Thread seanislegend
OK, so I'm using Find to retrieve data as I need to set recursive to 1. I've got a 'filter' form on my page which allows a user to sort how a bands' shows are displayed. The choices are by band name, date and location and either ascending or descending. My problem is with ordering...when the use

Re: Migration from CakePHP 1.1.x to CakePHP 1.2.x - how to acces controller component from view?

2008-08-31 Thread Dardo Sordi Bogado
Also, for reading session values use the session helper, avoid accessing controller/components in view, you certainly can push all de data from the controller to the view. I'm no MVC cop, but try to keep views clean. On Thu, Aug 28, 2008 at 4:14 AM, Bernhard J. M. Grün <[EMAIL PROTECTED]> wrote:

Re: Best practice for plugin configuration

2008-08-31 Thread Dardo Sordi Bogado
I'm not using it in plugins right now, but in my apps I use a config like this: APP/config/settings.php true, 'options' => array( ?> Also I'm not aware of any convention about plugins config, but I would choose a sepparated config file for every plugin, but it's j

Re: Best practice for plugin configuration

2008-08-31 Thread Filippo Toso
On 31 Ago, 20:30, Filippo Toso <[EMAIL PROTECTED]> wrote: > > Is there a naming convention for the configuration fields? > > // /app/config/plugin_name.php: > $config['Plugins']['PluginName']['config_field_1'] = true; > $config['Plugins']['PluginName']['config_field_2'] = false; > $config['Plugin

Re: Best practice for plugin configuration

2008-08-31 Thread Filippo Toso
Dear Dardo, > Look at Configure::load(). > > I would prefer to use good defaults if there is no plugin config > loaded, and then have the plugin config in the app/config/plugin.php. Thank you for the suggestion. Is there a naming convention for the configuration fields? Maybe something like th

Re: 404 Error When Accessing Controllers Using XAMPP

2008-08-31 Thread fabio . sfuncia
On Sun, Aug 31, 2008 at 6:24 PM, Wole <[EMAIL PROTECTED]> wrote: > > Thanks for the reply. I tried adding RewriteBase /myapp to app/ > webroot/.htaccess but no luck. I still get the same error. I'm not > even sure mod_rewrite is working properly in XAMPP, because even if I > make an error in a .ht

Re: Best practice for plugin configuration

2008-08-31 Thread Dardo Sordi Bogado
Look at Configure::load(). I would prefer to use good defaults if there is no plugin config loaded, and then have the plugin config in the app/config/plugin.php. The benefits are that if you need to change something, just need to create a config in the app config dir, so plugin code gets untouch

Re: 404 Error When Accessing Controllers Using XAMPP

2008-08-31 Thread Wole
Thanks for the reply. I tried adding RewriteBase /myapp to app/ webroot/.htaccess but no luck. I still get the same error. I'm not even sure mod_rewrite is working properly in XAMPP, because even if I make an error in a .htaccess file, say like purposefully misspelling RewriteBase, I don't get a 5

Re: DESCRIBE happening too often

2008-08-31 Thread Dardo Sordi Bogado
All that describes (and other stuff) are chached in debug level 0, so check yur app/config/core.php settings and by the way reading the manual (http:://manual.cakephp.org) doesn't hurt. On Fri, Aug 29, 2008 at 3:54 PM, cmbg <[EMAIL PROTECTED]> wrote: > > Hi all -- > > I have tried to manually def

Reporting solution for CakePHP

2008-08-31 Thread Alex Seim
Hello, I would like to know if anyone has any reporting solution to suggest that works well with cake (like Crystal Reports or something) thanx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To pos

Problem with FCKEditor

2008-08-31 Thread Warringer
I want to add the FCKEditor to a Cake project. But with every FCKHelper I use, I run into the same problem... It appear to work, however the FCKEditor does not load correctly. The iframe does appear, but the fckeditor.html is not loaded. Apparently it does not exist... Looking at it with Fireb

using javascript with form element

2008-08-31 Thread assaggaf
i wanna to know how to make event for simple input --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this g

Re: Pagination question about filtered views

2008-08-31 Thread teknoid
Try (in the view):$paginator->options(array('url' => $this- >passedArgs)); see manual for more details. On Aug 31, 7:35 am, itsnotvalid <[EMAIL PROTECTED]> wrote: > but seems that $paginator->numbers() still doesn't give the right > result after changing the option. > > On Aug 25, 12:59 am, clem

Re: Auth - can't login

2008-08-31 Thread Jeroen
No I didn't have. Thanks! Problem solved! What a stupid mistake On 31 aug, 02:35, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > Has your user table a field called `username` ? > > On Sat, Aug 30, 2008 at 6:00 PM, Jeroen <[EMAIL PROTECTED]> wrote: > > > I followed the instructions > > on

Re: Pagination question about filtered views

2008-08-31 Thread itsnotvalid
but seems that $paginator->numbers() still doesn't give the right result after changing the option. On Aug 25, 12:59 am, clemos <[EMAIL PROTECTED]> wrote: > Hi > > You need to set the "url" option of the paginator, by writing this > kind of code on top of your view (before the paginator links are

Re: 404 Error When Accessing Controllers Using XAMPP

2008-08-31 Thread fabio . sfuncia
Try to add RewriteBase /myapp in app/webroot/.htaccess On Sun, Aug 31, 2008 at 12:26 PM, Wole <[EMAIL PROTECTED]> wrote: > > So far I have successfully setup CakePHP using XAMPP on my Mac. I am > able to view the main page for my application with the CSS working. > Next I created a users table

404 Error When Accessing Controllers Using XAMPP

2008-08-31 Thread Wole
So far I have successfully setup CakePHP using XAMPP on my Mac. I am able to view the main page for my application with the CSS working. Next I created a users table, user.php model, users_controller.php, and my views/users/index.ctp page. The problem is when I view http://localhost/myapp/users in

Re: failed to open stream: Permission denied ...

2008-08-31 Thread David Persson
Hi Frank, Try flushing your caches by deleting the files in ../app/tmp/ cache/(models|persistent|views) directory. The cache files are sometimes written with wrong file permissions if you execute bake (or any other shell) prior to visiting one of your app's pages via browser. This way th

Re: it would be helpfull if you could post the solution

2008-08-31 Thread RichardAtHome
CakePHP is very clever, but it doesn't have a mind reading module (yet). Give us some details please :-) On Aug 30, 12:04 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I read the manual and the ibm code and they are the same. How did you > solve the problem ? --~--~-~--~~-

Re: please help me with the set class

2008-08-31 Thread MarcS
thank you very much, works like a charm. Too bad that there is no way to have the people not be indexed by their ids but just starting with zero though But for most cases this is fine On Aug 26, 10:51 am, grigri <[EMAIL PROTECTED]> wrote: > Set::combine($data, '{n}.Person.id', '{n}', '{n}.Person

Re: saveAll with 'validate' => 'first' has problems

2008-08-31 Thread hansashish
Would like to add that since the 'dob' field is not in the data that I am tying to save, and it is not marked as 'required', Why should Model::saveAll( $data, array ('validate' => 'first')) give an error on this? Also, if you try - Model::saveAll( $data) without the validate option, it does not

having trouble to initiate any posts in the CakePHP group

2008-08-31 Thread xfh
Hi, I'm having trouble to initiate any posts in the CakePHP group. I thought I added a posting already by google groups, but it didn't show up anywhere again ... it also didn't forward to my e-mail and I guess it still won't with this new test posting. Please send me a link to your reply if p

failed to open stream: Permission denied ...

2008-08-31 Thread xfh
I thought I added this posting already by google groups, but it didn't show up anywhere again, so I post it new ... it also didn't forward to my e-mail and I guess it still won't with this new posting. Please send me a link to your reply if possible to[EMAIL PROTECTED] because I also don't get

Re: nested condition

2008-08-31 Thread haj
yeah, i figured out that later. Only, "NOT sth IN ('a', 'b')" was kinda unnatural to me in the mind of SQL, i was used to "sth NOT IN('a','b')" way. On Aug 30, 9:11 pm, Rafael Bandeira aka rafaelbandeira3 <[EMAIL PROTECTED]> wrote: > > Only, unfortunately, I found out cake can't yeild expressio

Changes to home.ctp and default.ctp Not Displaying

2008-08-31 Thread Wole
I recently downloaded the nightly version of CakePHP. Everything has been setup and looks like it's working. When I go to the main page I see the setup messages and each one is green so I know everything is setup and good to go. The problem I have is changing the home.ctp and layout.ctp pages. Whe

No home.cpt or defualt.cpt Files in app Folder

2008-08-31 Thread Wole
I recently downloaded the nightly version of CakePHP. Everything has been setup and looks like it's working. When I go to the main page I see the setup messages and each one is green so I know everything is setup and good to go. The problem I have is changing the home.cpt and layout.cpt pages. Whe