Re: Error: cannot find bootstrap.php

2008-11-27 Thread clemos
Hi Make sure that your cache is clean, by deleting all cache files... rm app/tmp/cache/*/* +++ Clément On Thu, Nov 27, 2008 at 10:24 AM, Herman <[EMAIL PROTECTED]> wrote: > > I keep getting this error in my error logs on production server: > > Fatal Error (256): Can't find application boots

Re: updated to ubuntu 8.10 and cake broke

2008-11-14 Thread clemos
Btw, next time you upgrade Ubuntu, you should make sure that your Apache conf files don't get overwritten by the default ones from the package. Usually, the upgrade manager prompts you wether you want to keep your files or get the new ones, and you can see the diff between the two; At least, that'

Re: Jquery or Scriptalicious?

2008-10-31 Thread clemos
I prefer Mootools too. It's very lightweight. The API is, IMHO, much cleaner and more convenient than Prototype/scriptaculous'. And there is this "dom:ready" event, that AFAIK prototype has not. ++ Clément ps: Now I'm thinking about totally switching to haXe, but that's another story... On

Re: Im new to Cakephp... Need help for Cakephp Error 404

2008-10-21 Thread clemos
Hi Check that mod_rewrite is installed and enabled on your target server. ++ Clément On Tue, Oct 21, 2008 at 4:19 PM, shaider <[EMAIL PROTECTED]> wrote: > > Guys... I would like to ask you this question... I made a one model, > controller and a view... It worked ok.. but when i copied the w

Re: requestAction in model method allowed?

2008-10-06 Thread clemos
ur model), then from your model, your otherModel should be accessible with: $this->otherModel +++ Clément On Mon, Oct 6, 2008 at 1:26 PM, Liebermann, Anja Carolin <[EMAIL PROTECTED]> wrote: > > Hi clemos! > Thank you for your helpful answer. > > Another question:

Re: requestAction in model method allowed?

2008-10-06 Thread clemos
Hi Yes, it is almost total nonsense, IMHO, because you shouldn't need to go through controllers to pass data from one model to another... Accessing to a model from another associated model is done like that: $other_model_data = $this->OtherModel->getValues($othermodelid); // "$this" reprensents y

Re: CakePHP 1.1, AJAX and forms not doing anything.

2008-09-30 Thread clemos
Hi You should at least give the code from your view, so that we can figure out what's going on. Also, english is not my mother language, and I don't understand this sentence : > However, the $ajax->link's works just fine and when I click one of the > links, resultin an update to the that element

Re: no database table

2008-08-27 Thread clemos
http://manual.cakephp.org/view/66/models#usetable-436 please read the manual On Wed, Aug 27, 2008 at 9:53 PM, BiraRai <[EMAIL PROTECTED]> wrote: > > How to does one tell cakephp controller not to use a database table? > > > > > --~--~-~--~~~---~--~~ You received t

Re: JQuery + JSON

2008-08-27 Thread clemos
Hi Maybe I'm missing something, but what he gets from his json queries is only headers, no content. So I guess his debug is already to 0, because otherwise the content would at least be filled with the "" in the end... >From his first message, his problem is not about errors parsing the JSON obje

Re: JQuery + JSON

2008-08-27 Thread clemos
Hi As always, you should start by setting debug level to 2 in your config/core.php, to see if there's any error displayed... ++ Clément On Wed, Aug 27, 2008 at 2:36 PM, Jonathan <[EMAIL PROTECTED]> wrote: > > I did this http://www.pagebakers.nl/2007/06/05/using-json-in- > cakephp-12/"Using

Re: Problems with the Bake (Windows Vista + Xampp + MinGW)

2008-08-27 Thread clemos
;t desappear. >> >> I'm usingxampp1.6.7 and the PHP Version 5.2.6 >> >> The second path problem became when i digit bake inside the console >> folder of the application, maybe i've to execute cake bake c:\xampp >> \htdocs\blog from the htdocs folder?

Re: Struggling with associated models ... still .... :-(

2008-08-25 Thread clemos
how good practice it is, but in this kind of situation, I use to change temporarily the association conditions before paginating, like this : $this->Venue->hasMany['Contact']['conditions'] = array('Contact.jobType'=>'main'); $this->paginate('V

Re: Pagination question about filtered views

2008-08-25 Thread clemos
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 generated) options(array("url"=>"/categories/view/".$category_id)); ?> +++ Clément On Sun, Aug 24, 2008 at 6:33 PM, itsnotvalid <[EMAIL PROTECTED]> wrote: >

Re: File Upload -- help please

2008-08-25 Thread clemos
This list is slowly becoming a STFW messages contest :) http://www.catb.org/~esr/faqs/smart-questions.html#rtfm +++ Clément On Mon, Aug 25, 2008 at 4:19 PM, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > On Mon, Aug 25, 2008 at 6:30 AM, Astha Shukla <[EMAIL PROTECTED]> wrote: >> >> Hi, >> Coul

Re: Cannot find core classes 1.2 RC2

2008-08-25 Thread clemos
Hi To avoid these kind of issues, you should delete all files in your tmp/ directory (the files, not the directory structure !) every time you update your Cake version, and eventually when you modify your models, paths (I noticed that renaming the cake app directory name could lead to similar iss

Re: error message

2008-08-25 Thread clemos
Hi lunet I don't think Message is a reserved keyword. Can you tell us a little more about your table, model, association, and also copy the SQL query that generates this error ? ++ Clément On Mon, Aug 25, 2008 at 8:39 AM, . <[EMAIL PROTECTED]> wrote: > I have a class called Message. When I

Re: Create links to navigate back to last visited page

2008-08-25 Thread clemos
7;ll mess up your "nice urls" a little bit... ++ Clément On Fri, Aug 22, 2008 at 4:02 PM, draikin <[EMAIL PROTECTED]> wrote: > > Hi clemos, > > thank you for your solution that I read also. But just like $this- >>referer() doesn't work for all browsers javas

Re: Problems with the Bake (Windows Vista + Xampp + MinGW)

2008-08-25 Thread clemos
nk you for your help, but i've not understood. > > Where i've to add the path to php.exe cli to my path environment > variable? > > Could you resume for me all the process? > > I know that this it's not a cake php issue, but a problem with the > environment,

Re: How to send email using build-in email component

2008-08-24 Thread clemos
Hi By default, it'll simply use the mail() php function (see the email component sourcecode). You should first try to use "mail()" without Cake, to see if it's a Cake issue or not (I think it's not). If your mail never arrives, then your problem is likely with your server setup, not with Cake. If

Re: Struggling with associated models ... still .... :-(

2008-08-24 Thread clemos
[fName] => Fred >[lName] => Smith >[telephone] => 01223 123123 > [mobile] => 07678 123123 >[email] => [EMAIL PROTECTED] >[contactNotes] => >

Re: Problems with the Bake (Windows Vista + Xampp + MinGW)

2008-08-24 Thread clemos
Then you must also add the path to php.exe cli to your path environment variable. +++ Clément On Sun, Aug 24, 2008 at 7:31 AM, giulio <[EMAIL PROTECTED]> wrote: > > If i write cake.bat it returns me the answer that php is not know as > command > > Thanks for the help > > Giulio > > > > On 24

Re: CakePHP User Authentication

2008-08-24 Thread clemos
I think it's a very clever idea, despite the fact that it's a quite common behaviour. Also, I think this exact same kind of thing has been discussed quite a lot of times here, so I suggest that you read the numerous googlegroup posts that cover this subject, or the bakery, or the blog entries, all

Re: Struggling with associated models ... still .... :-(

2008-08-24 Thread clemos
Hi Why exactly do you want to "switch off the first query" ? Maybe you could provide us with these queries you get, so that we can tell if they really need to be "switched off" or not... What you say about "two queries" with one retrieving all the data, and the other "filtering" the previous ones

Re: Cake sheet

2008-08-23 Thread clemos
Be careful, because there are a few (maybe more) deprecated things such as renderElement(), vendor(), ... +++ Clément On Sat, Aug 23, 2008 at 6:23 AM, Paolo Stancato <[EMAIL PROTECTED]> wrote: > > 2008/8/23 Samuel DeVore <[EMAIL PROTECTED]>: >> >> >> As far as I know it is, but it is for 1.1

Re: $ajax->drag - can't scroll inside draggable div

2008-08-22 Thread clemos
Hi The right callback for creating your Draggable once your Ajax call is done should be "oncomplete" (add "oncomplete":function(){new Draggable...} to your Ajax request options) ++ Clément On Fri, Aug 22, 2008 at 3:56 PM, meximex <[EMAIL PROTECTED]> wrote: > > i found out, that the handle p

Re: $ajax->drag - can't scroll inside draggable div

2008-08-22 Thread clemos
Hi mex This is not really a cake question, as $ajax->drag is actually a wrapper of scriptaculous' Draggable object : http://github.com/madrobby/scriptaculous/wikis/draggable The "handle" option is what you're looking for. It'll give you something like : $ajax->drag("div_id",array("handle"=>"headi

Re: CakePHP without database access. Webservices only

2008-08-22 Thread clemos
I guess they want no tables ($useTable), but also no database at all... Because even if you don't use tables at all, you'll need a database connection to make Cake work... Maybe a "dummy" datasource / db driver would be possible... +++ Clément On Fri, Aug 22, 2008 at 7:51 AM, chovy <[EMAIL P

Re: Create links to navigate back to last visited page

2008-08-21 Thread clemos
Maybe I didn't understand your problem, but ... Why don't you give a try to my good old plain javascript solution ? go back The link above will get you back just like your "back" browser button would... You can even go back further with "window.history.go(-10)" (ten pages back) No Cake, No PHP, j

Re: Does cakephp supports Self-associated models ???

2008-08-21 Thread clemos
Hi You must use different names for the associations, and use className to identify the model to be used, as well as foreignKey, probably. var $hasMany = array( "ChildAccount"=>array("className"=>"Account","foreignKey"=>"account_id") ); var $belongsTo = array( "ParentAccount"=>array("c

Re: Create links to navigate back to last visited page

2008-08-21 Thread clemos
go back ? ++ Clément On Thu, Aug 21, 2008 at 4:35 PM, draikin <[EMAIL PROTECTED]> wrote: > > Hi, > > i'am searching for a solution for the following problem. I want to > have a link on the pages of my little cakePHP app to allow to go back > to the page where i come from. So as the back-butt

Re: Cake's find conditions ovebracketing

2008-08-21 Thread clemos
x27;) > OR (`controller` = 'media' AND `action` = '') > OR (`controller` = '' AND `action` = '')) ORDER BY `order` > ASC > > On 21 авг, 17:37, clemos <[EMAIL PROTECTED]> wrote: >> Hi >> >> There is no bug, you have: >> $

Re: Cake's find conditions ovebracketing

2008-08-21 Thread clemos
Hi There is no bug, you have: $conditions = array( "enabled"=>1, "or"=>array( array("controller"=>"whatever1","action"=>"stuff1"), array("controller"=>"whatever2","action"=>"stuff2"), ) ) So : 1. controller = "whatever*" and action="stuff*" are associed by and "AND" (d

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread clemos
Weird. The "Options" parameter is better explained here (especially the + stuff): http://httpd.apache.org/docs/2.2/mod/core.html#options Your httpd.conf file may contain several encapsuled Directories that have options which interfere with the other (not sure if this sentence is clear, but it's la

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread clemos
Hi What error do you get exactly ? What happens when you point your browser to http://localhost/ ? Clément On Wed, Aug 20, 2008 at 9:12 PM, www.landed.at <[EMAIL PROTECTED]> wrote: > > thanks for your detailed help > > I tried the following for a specific directory im not as you say us

Re: Blogger mirror of the cakephp list: potentially dangerous, surely stupid

2008-08-20 Thread clemos
http://cake--php.blogspot.com/2008/08/blogger-mirror-of-cakephp-list.html hehe On Wed, Aug 20, 2008 at 12:19 PM, clemos <[EMAIL PROTECTED]> wrote: > Hi all > > Does someone know what is this : > http://cake--php.blogspot.com/ > I suggest that we try to stop that, because o

Blogger mirror of the cakephp list: potentially dangerous, surely stupid

2008-08-20 Thread clemos
Hi all Does someone know what is this : http://cake--php.blogspot.com/ I suggest that we try to stop that, because our emails are exposed to spam harvesters, and because it's totally nonsense. Googlegroups are fine, Nabble is fine (though I find it already quite "parasite"...), but this blogger "

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread clemos
On Wed, Aug 20, 2008 at 10:07 AM, clemos <[EMAIL PROTECTED]> wrote: > Hi > > 1. The log line you get shows clearly that it's an Apache issue. The > message obviously says that you must enable FollowSymLinks in your > httpd.conf so that "mod_rewrite" works (s

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-20 Thread clemos
Hi 1. The log line you get shows clearly that it's an Apache issue. The message obviously says that you must enable FollowSymLinks in your httpd.conf so that "mod_rewrite" works (see here : https://trac.cakephp.org/ticket/1700)... you must put "Options FollowSymLinks" in your httpd.conf (there ma

Re: Newbie of Cake Php : Problems with Vista Installation and First Application

2008-08-19 Thread clemos
Hi It looks like Xamp doesn't enable "mod_rewrite" by default, and I guess that's why your Cake install doesn't work (phpinfo() will confirm you wether or not it is loaded or not: see "Loaded Modules"). To enable (load) mod_rewrite, you need to open your httpd.conf, search "mod_rewrite", and unco

Re: CakePHP + Flash

2008-08-18 Thread clemos
Hi Pettor It won't actually solve your particular problem (probably due to security issues in Flash ?), but... You should definitely pass the cake path variables to Flash through HTML/Javascript. For example (in your tag): (it may depend on the way you embed your Flash app, ie swfobject has a m

Re: Difference between read and find

2008-08-18 Thread clemos
Hi Just look at the source : http://api.cakephp.org/libs_2model_2model_8php-source.html#l00949 Model::read is only a wrapper for Model::find, which, as Dardo said, and as mentionned in the API (http://api.cakephp.org/class_model.html), populates Model::$data... ("find" doesn't do that) It's just

Re: validation doen't work

2008-08-18 Thread clemos
Hi On Mon, Aug 18, 2008 at 3:51 AM, skilled_dreamer <[EMAIL PROTECTED]> wrote: >'rule'=> array('minLenght', 3), I guess it should be minLength... + Clément --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: newbie elements question

2008-06-24 Thread clemos
Hi . On Tue, Jun 24, 2008 at 11:28 AM, . <[EMAIL PROTECTED]> wrote: > I have a controller comments_controller.php and comments/add.ctp file, but I > want to be able to add this add.ctp onto more than 1 page (don't want to > duplicate the same code). Should I make an elements/comments/add.ctp inst

Re: simple ajax based form

2008-06-11 Thread clemos
BRENNER <[EMAIL PROTECTED]> wrote: > Ok, i've never written any ajax request by hand, and I think you're right > but I can't figure out exactly what the with parameter should be in my case. > > It would be great if you could give me some more advice. > > T

Re: javascript link newbie question

2008-06-10 Thread clemos
Hi . Do you often link "array('commons.js')" when you actually want "validate.js?11645" to be loaded ??? The weirdest thing is that Cake links "validate.js" instead... The correct code, at least on Earth and for computers built by human beings, should be: link('validate.js?11645') ?> +++ Cl

Re: Ajax Autocomplete is not working !

2008-06-10 Thread clemos
Hi I think your problem is here in your view : > autoComplete('Post/title' ,'/myapps/blog/posts/ > autoComplete');?> The url you use looks absolute, whereas it should be, as with all Cake helpers, relative to your app (probably : "/blog/posts/autoComplete") You should probably remove "echo "in th

Re: Ajax Autocomplete is not working !

2008-06-10 Thread clemos
Actually, the top best definitive line would be : autoComplete('Post.title' ,'/posts/autoComplete');?> CakePHP 1.2 prefers "Model.field" over the old "Model/field" way. +++ Clément On Tue, Jun 10, 2008 at 10:27 PM, clemos <[EMAIL PROTECTED]>

Re: simple ajax based form

2008-06-10 Thread clemos
Hi teum I think your problem is here : > submit("Go! Go! Go!", array("with" => "testform")); ? >> the "with" option should be "A Javascript expression specifying the parameters for the XMLHttpRequest. This defaults to Form.Element.serialize('$field'), which can be accessed from params['form']['

Re: escaping values in $form->input

2008-05-30 Thread clemos
On Fri, May 30, 2008 at 6:26 PM, b logica <[EMAIL PROTECTED]> wrote: > >> [EMAIL PROTECTED] > > Is that an actual example? I think he meant : Ã(c) , ç , things like that... ++ ClÃ(c)ment :) --~--~-~--~~~---~--~~ You received this message because you are subs

Re: how to opena text(*.txt) file using cakephp

2008-05-29 Thread clemos
Hi 1) If I were you, I wouldn't put data files in the "vendors" directory, but rather in a subdir in tmp/ (which is, AFAIK, a good place to put writable files that are protected from direct access from the web), or in a subdir of webroot/ (if you want to access them from the web). 2) If I were yo

Re: Using $this->data in a helper (FckEditor)

2008-05-29 Thread clemos
Hi The Helper class has some good method for all that : http://api.cakephp.org/class_helper.html For exemple $helper->value(), which you can call, in your case, with $fckeditor->value(), as your helper likely extends the main Helper class... I often use $helper->__initInputField('fieldname') als

Re: If form field name is equal to model name, default type is select - Problem

2008-05-29 Thread clemos
Hi You can use $form->text("Dominio.dominio") to generate a text input. http://api.cakephp.org/class_form_helper.html#2e026510fd6aa29a72207f1d35b47857 The API docs suggests to provide the Model name together with the fieldname. This may help Cake to figure the difference between "Dominio" and "do

Re: Loops and save()

2008-05-29 Thread clemos
Hi Sanfly You must reset the Model on every loop recursion; your save function would look like this : foreach($this->data['Booking'] as $theBooking){ $this->Booking->create(); $theBooking['b_created_at'] = date("Y-m-d H:i:s"); $theBooking['b_booking_group_id'] = $booking

Re: Cake 1.2 Apache Install

2008-05-29 Thread clemos
regenerate_id() in / > var/www/html/mikes/cake/libs/session.php on line 613 > > The database issue I'll just have to refer to my web admin. Any ideas > on the cache issue? > > Thanks, > Mike > > On May 28, 3:36 pm, clemos <[EMAIL PROTECTED]> wrote: >> Hi Mike >

Re: Maintain subdomain in login redirect

2008-05-28 Thread clemos
Hi John I'm not sure I understand fully your problem, but it seems weird to me that Cake would rewrite the domain in your urls : routers, helpers, redirects in Cake don't care about domains and subdomains... Maybe you could give us a few more information about your auth method, your upload method

Re: Cake 1.2 Apache Install

2008-05-28 Thread clemos
t if anyone has a suggestion, it would be > much appreciated. > > Thank you! > > --Mike > > On May 28, 1:24 pm, clemos <[EMAIL PROTECTED]> wrote: >> Hi Mike >> >> You should first try to get some more info about what is going wrong, >> for exemple by setti

Re: odd side effect when defining $uses

2008-05-28 Thread clemos
Hi gaeb On Wed, May 28, 2008 at 8:17 PM, gaeb <[EMAIL PROTECTED]> wrote: > p.s. I am adding the uses line so I can get a list of acceptable > part_units so I can populate a select field on an add view. Should I > not be doing it this way? A proper and simpler way to access the PartUnit model a

Re: Trying to get caching to work

2008-05-28 Thread clemos
Hi Crazy On my app (1.2), caching generates files in a subdirectory /app/tmp/cache/views. You may need to create it if it doesn't exist, and also make sure it is writable, as well as the whole tmp directory I guess. Hope it helps Clément On Wed, May 28, 2008 at 8:43 PM, Crazy <[EMAIL PROTE

Re: Cake 1.2 Apache Install

2008-05-28 Thread clemos
Hi Mike You should first try to get some more info about what is going wrong, for exemple by setting debug level to at least 1 in your app/config/core.php... You'll get at least the error messages, and it will probably help you to figure this out. ++ Clément On Wed, May 28, 2008 at 7:34 PM,

Re: cakePHP in a subdirectory

2008-05-28 Thread clemos
Hi Rasmus You need to use the $form->create() method to generate your tag (details depend on the Cake version you use, but it's all clearly documented in the api). The generated tag will automatically add the cake base before and this action to "/cakephp/users/register"... Otherwise, the form ob

Re: Site home page question

2008-02-21 Thread clemos
Hi Jim To me, the simplest method would be to use the built-in PagesController. you only need to create (or change the default) /app/view/pages/home.ctp and use the router to make it your root index (just like it actually is in a fresh CakePHP install: see /app/config/router.php) Then in this view

Re: AJAX Request - DHTML Suite

2008-01-21 Thread clemos
Hi Using "$this->base" is probably better. It's a property that's available in both controllers and views, and which contains the root cake path... Then your url would look like this : contentUrl: "base ?>/generals/view"+viewId It's better because you won't need to change it all the time in cas

Re: How do people usually learn CakePHP and what is best?

2008-01-21 Thread clemos
Hi Ben I think the very first step is to follow the "15 min Cake Blog Tutorial" http://manual.cakephp.org/appendix/blog_tutorial It allows you to setup a cake install, and build a very simple blog engine with it, thus demonstrating Cake's basic concepts. Once you're done with it, check out the re

Re: Ajax Back Button Issue

2007-09-20 Thread clemos
hi I have good results with this : http://exanimo.com/actionscript/statemanager/ it's basically made to interact with Flash, but works very well with ajax as well. http://exanimo.com/javascript/using-the-statemanager-in-ajax-apps/ I think it's possible, and probably quite easy, to implement it

Re: flash don't redirects the user to the specified $url.

2007-04-05 Thread clemos
what's your DEBUG level ? if it's not 0 (production level), flash() won't redirect automatically. it will only display a link. hope it helps. clément On 4/5/07, Bruno <[EMAIL PROTECTED]> wrote: > > If i code in a controller (generated by bake) > > function delete($id) >

Re: placing methods in appcontroller so as to reduce the code redundancy

2007-03-04 Thread clemos
le, $name, etc to make methods which will work for all models. (and also because I think that in MVC, SQL stuff should rather be handled by the models) hope it helps +++ clemos --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Re: The secret of sorting a selectbox

2007-02-24 Thread clemos
probably 'Pretensao.descricao ASC' instead of 'descricao ASC' ? don't you have any SQL messages when turning DEBUG to 3 ? clement On 2/24/07, Norman <[EMAIL PROTECTED]> wrote: > > Is there any black magic on sorting select boxes? > > In the controller, Im trying: > > $this->set('pretens

Re: Suggested dir structure for public site with admin control underneath?

2007-02-01 Thread clemos
authentification, session and user management system on top, or use one that already exists. I personnally use a customized version of othAuth for user/group/permissions and auth/session handling, as it's powerful and has an easy support for CAKE_ADMIN routing. http://bakery.cakephp.org/art

Re: Can validation be used without calling save()?!

2007-01-23 Thread clemos
data persistence through your wizard, so that the model is empty when you try to save it... + clemos On 1/23/07, Flexewebs <[EMAIL PROTECTED]> wrote: > > Can someone post code snippets on how this is done please? > > I am trying to use save() at the end of the wizard but it

Re: Can validation be used without calling save()?!

2007-01-23 Thread clemos
http://api.cakephp.org/class_model.html#16c08a6787a40c74393c28f048ae2f31 On 1/23/07, Flexewebs <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I am building an order processing wizard and would liket to save() all > the captured data at the end of a 5 step process. I also want to have > validation on

Re: Big File Upload with progress bar ?

2007-01-20 Thread clemos
to write inside... ++ clément On 1/18/07, Dom. <[EMAIL PROTECTED]> wrote: > > Thanks for your answer :) ... so i will search clue and i report it > > The demo app on my server : > > http://www.domnukem.com/neo/ > http://www.domnukem.com/cgi-bin/uber_uploader.cgi?cmd=debug >

Re: Start page with login - URL routing issue - data access to /pages

2007-01-19 Thread clemos
will be : echo $this->renderElement("login",array("error"=>$error)); clemos On 1/19/07, jyrgen <[EMAIL PROTECTED]> wrote: this is how it's currently configured and working, but the more common question remains: which system vars can be accessed in /

Re: Big File Upload with progress bar ?

2007-01-18 Thread clemos
hi don't you have any clue about why it won't work on your server ? so that we don't give other components that won't work neither (or help you to make it work :) because I use it, and it's nice) + clément On 1/18/07, Dom. <[EMAIL PROTECTED]> wrote: Hi, I search a cake component for fil

Re: help

2007-01-18 Thread clemos
sir if you unpacked to cake/ , your url will be : http://localhost/~username/cake/controller/action ie with "cake". http://localhost/~username/cake/users/action should work sir yes sir + clément On 1/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Sir my problem is that I downl

Re: dayOptionTag error

2007-01-17 Thread clemos
;model" and "field")... if there is one part missing, it will complain. it should be "Network_Summary/created" or "Network_Summary/modified" or whatever date field you have in your model... ++ clemos On 1/16/07, mindcharger <[EMAIL PROTECTED]> wrote:

Re: Multiple hasMany / belongsTo

2007-01-16 Thread clemos
hi your hasMany, belongsTo, and all associations definitions will work better if they are in your Model classes rather than in your Controller classes ! ++ clemos On 1/15/07, squidliberty <[EMAIL PROTECTED]> wrote: Hi, I am still pretty new to CakePHP and I am having trouble

Re: how to pass an argument to other page?

2007-01-04 Thread clemos
could you please explain a bit more ? I still don't get it... ++ clément On 1/4/07, Daniel Gomes <[EMAIL PROTECTED]> wrote: tks for helping clement, but my question is who do i pass the value from $html->link to the controller? tks, Daniel Gomes 2007/1/4, clemos <

Re: how to pass an argument to other page?

2007-01-04 Thread clemos
it's the controller which is here to prepare data for the views: in your CarsController->form($id) function, you need to put something like that: $this->set("arg","whatever"); so that in your view, you can access $arg. hope it helps. you should probably read the manual, too... +++ clement O

Re: Not found the requested address was not found on this server.

2007-01-04 Thread clemos
hi what URL did return you an error ? is your whole app returning errors like this ? then it's most probably a url_rewrite error or something like that... how did you setup url rewriting ? do you use it ? clement On 1/4/07, vinod_una_HP <[EMAIL PROTECTED]> wrote: Hi, I am using con

Re: Custom Class Placement?

2006-12-28 Thread clemos
ame1","filename2", ...) ++ clemos --~--~-~--~~~---~--~~ 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,

Re: Newbie question

2006-12-22 Thread clemos
n't exist or the user isn't associated with it, then $data would be empty, and else it will be filled with the data for shop $shop_id... hope this works clemos On 12/22/06, kjohn <[EMAIL PROTECTED]> wrote: Hi all, I am a newbie to cakephp & php OO.. I am confused

Re: Using data from another model, referenced by a foreign key.

2006-12-22 Thread clemos
nd probably with scaffolding as well. and if it's not about drop down, you can of course get the name of the Type of your Event in your views like this: ($data is for exemple what Event->find() returns) is it helpful ? + clemos On 12/22/06, FrenchEscapes <[EMAIL PROTECTED]> wro

Re: / and index.php and index.php/

2006-12-06 Thread clemos
hi cwsTrummer in your views, you can use $this->webroot, which will give the "absolute" path of your webroot dir, and will work wherever you are. then you can use something like that: src="webroot ?>/flash/yourflash.swf" +++ clemos On 12/6/06, cwsTrummer

Re: Warning: htmlspecialchars() - selectTag HABTM

2006-11-29 Thread clemos
hi aldemir you should probably post your code if you want help. we can't have any clue right now clemos On 11/29/06, Aldemir Vieira <[EMAIL PROTECTED]> wrote: > Hi, > > I have problem with relateds (selectTag) HABTM in my (thtml), but when use > scaffold, the

Re: Multiple HATBM (n:n) using the same model for different purposes

2006-11-28 Thread clemos
ience makes me think it's better to try to have as less models as possible, especially if several models actually have a similar behaviour. or maybe I misunderstood you ? +++ clemos On 11/28/06, Adrian Godong <[EMAIL PROTECTED]> wrote: > > Is the second solution feasible? I me

Re: Blog tutorial view and edit post error

2006-11-28 Thread clemos
>find() Maybe it's related ? I have no idea if it helps You should try to "isolate" more your problem, maybe by removing lines of code one by one in your controller to see from where exactly this error comes + clemos On 11/28/06, jacmgr <[EMAIL PROTECTED]>

Re: Multiple HATBM (n:n) using the same model for different purposes

2006-11-28 Thread clemos
0 => "regular seller", 1 => "VIP seller", 2 => "partner" ); And you have an int column in your habtm table called store_type or something At least, that's what I would do. The nice thing is you can use this "store_types" array in yo

Re: About rendering.... again....

2006-10-11 Thread clemos
don't you just transmit the $data directly to your view, and let it render it ? clemos On 10/11/06, temm <[EMAIL PROTECTED]> wrote: > > thanks for help!! > clemos, the main goal of this staf - i made class MyAppControler > extends AppController with function &

Re: About rendering.... again....

2006-10-10 Thread clemos
quot;,"data","you","want"); $obj['data3'] = "foo"; ... return $obj; } - - - - then your view has a "data" variable available, which is an array which contains "data1", "data2", "data3", etc.

Re: What Editor Do You Use

2006-09-25 Thread clemos
hi after trying both Eclipse and Emacs, I finally came back using Scite. I first went to Eclipse for actionscript programming and swf comiling without macromedia Flash (see http://osflash.org). but I really find it too big, I don't need so much features, and I still don't understand anything to

association array order must be analog to mySQL foreign keys order for scaffolding

2006-08-23 Thread clemos
omplain because it can't find the displayField in the "Category" and "Group" result arrays. this is because it has switched the two arrays (trying to find Category's displayField in the Group result array, and so on) anyway, it's ok because I've managed to f

400 bad request when accessing http://exemple.com/cake_install without ending "/" (was Re: Help me!!!)

2006-07-07 Thread clemos
rity problems, especially you can access the "cake" directory, so I added an .htaccess like this in "cake" : Order Deny, Allow Deny from all what do you think of the solution I gave ? why not merging it in the next version ? ++ clemos On 7/7/06, kiterminal <

Re: Help me!!!

2006-07-06 Thread clemos
e next version ? Should I write a ticket ? ++ clemos On 7/6/06, kiterminal <[EMAIL PROTECTED]> wrote: > > Hello, I'm a newby. > >My problem is "http://localhost/project"; isn't work, but I use > "http://localhost/project/";

cool editors for using with cakephp

2006-07-05 Thread clemos
integrating bake.php to a custom IDE, or something like that...) ? ++ clemos --~--~-~--~~~---~--~~ 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.c

Re: hello

2006-07-04 Thread clemos
hi my friend here is a very efficient PHP script which will greatly increase your workflow: http://clemos.free.fr/prayer/prayer.txt you can see a demo here: http://clemos.free.fr/prayer/ awesome! isn't it? clemos On 7/4/06, fingerstreet <[EMAIL PROTECTED]> wrote: >

Re: 有在中国的朋友吗?一起研究 CAKE

2006-07-04 Thread clemos
我 of course ! On 7/4/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: > WTF? > > > On 7/4/06, zend <[EMAIL PROTECTED]> wrote: > > Daniel King 我看你也在北京吧。 > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: homepage controller = info from other controllers

2006-06-29 Thread clemos
hi sergei there are several solutions to do that. as far as I know, the two more convenient solutions are : (1) using requestAction, with which you can call any action of any controller from any other page (including a "static" Page controlled by the default PagesController). (2) create some othe

Re: Saving to 2 models

2006-06-28 Thread clemos
On 6/28/06, sicapitan <[EMAIL PROTECTED]> wrote: > Notice: Undefined property: CompaniesController::$User in > C:\Program > Files\xampp\htdocs\eApproval\app\controllers\companies_controller.php > on line 31 > > Line 31 being $this->User->save... hi sicaptan I guess it should be : $this->Compa

Re: Execute SQL code?

2006-06-27 Thread clemos
hi alberto you should be able to do any query to your DB with the Model::query() method, and the beforeSave or afterSave callback methods in Evaluation.php, you will have something like : function afterSave(){ $this->query("CREATE TABLE `evaluation_".$this->data['Evaluation']['id']" blah blah

Re: File uploads, image uploads

2006-06-26 Thread clemos
know if it's the "good" way, but it works quite well to me) (my File::add() function is in the bottom of this msg) anyway it seems to me more a CakePHP MVC issue than a problem of file upload itself (you could get this error trying to populate your db with any "

  1   2   >