Re: host free for cake

2007-08-10 Thread phpjoy
i'd go for a 4$ host (CHEAP) or install mysql/apache on your own computer with the "xampp" server. free hosts i saw are crap.. On Aug 10, 4:24 pm, tuiBR <[EMAIL PROTECTED]> wrote: > Please, > > somebody knows webserver free that run cakephp ? > > tranks! --~--~-~--~~~---

Re: CAKE_SESSION_STRING - what it's behavior?

2007-08-10 Thread phpjoy
Just making sure.. :-) Thank you. By the way, I really enjoy your blog. It's a great piece of work. On Aug 10, 2:05 pm, "Geoff Ford" <[EMAIL PROTECTED]> wrote: > Nope size is not an issue here :) > > Geoff > > On 8/10/07, phpjoy <[EMAIL PROTECTED]> wrote: > > > > > > > so it's size doesn't matte

Re: Auth1.2 component not showing methods.

2007-08-10 Thread phpjoy
Ok I checked some more: The Auth isAuthorized fails here: function isAuthorized($type = null, $user = null, $object = null) { if (empty($user) && !$this->user()) {//THIS IS CALLED, FAILS HERE. return false; } } So I went and checked the A

Re: Auth1.2 component not showing methods.

2007-08-10 Thread Dr. Tarique Sani
On 8/10/07, Gwoo <[EMAIL PROTECTED]> wrote: > > the Auth component is not moving anymore > Oh Great! I will get down to documenting it again... T -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://saniso

$javascript->endBlock() question

2007-08-10 Thread francky06l
Hello bakers, I found a strange "behavior" of the javascript->codeBlock() in cake 1.2: if you use such code in view : test codeBlock(); ?> alert('test'); endBlock(); ?> The view is empty, only the layout is shown, but this : is ok This also works : test cacheEvents(false, true); ?> code

$this->Session and pr()

2007-08-10 Thread Christopher E. Franklin, Sr.
In case anyone who is having this problem: *Note: These are the components, not the helpers Do not do: pr($this->Session); Do: pr($this->Session->read()); On a side note, you CAN do: pr($this->Cookie); and get back any values you set. Thanks Delixe, nukem, jails --~--~-~--~~--

Re: Maths

2007-08-10 Thread francky06l
Oups sorry that can't work ... I missed something in the problem at first ...Will thin more about it :-) On Aug 11, 1:26 am, francky06l <[EMAIL PROTECTED]> wrote: > maybe (not tested).. > > $foo = array( 0, 57.81, 73.906, 97.26, 0, 32.79, 77.81, 28.912, 0, > 0, 0, > 0, 0, 0, 27.12 ); > arsort($

Re: Maths

2007-08-10 Thread francky06l
maybe (not tested).. $foo = array( 0, 57.81, 73.906, 97.26, 0, 32.79, 77.81, 28.912, 0, 0, 0, 0, 0, 0, 27.12 ); arsort($foo); $val = current($foo); array_walk($foo, create_function('&$v, $k, $val', '$v = $v > 0 ? $val : 0;'), $val); ksort($foo); On Aug 10, 5:11 pm, "Gonzalo Servat" <[EMAIL P

Re: Error Handling in Ajax Forms

2007-08-10 Thread francky06l
In you ajax submit you can update several div's, so you can have part updating the side bar (no error) or redraw your form. you can either have 2 "views" and you render the one appropriate to the case, of a single view with a conditional update: Hope that helps On Aug 10, 7:36 pm, "[EMAIL PROTEC

is it possible to globally set 'readonly' in formhelper?

2007-08-10 Thread chewie124
Hi - Was wondering - does anybody have any ideas/suggestions on what to tweak to be able to globally set a 'readonly' flag in the formHelper? IE, I'd like to be able to do something in my view like: $form- >setReadOnly(true);, and then ever form input rendered via a $form- >text() or $form->input

auth.php - Using cake_1.2.5427alpha

2007-08-10 Thread Reggie Mason
I'm not sure under which conditions it occurs but in my new install of 1.2.5427, in CAKE/lib/controllers/components/auth.php:778, in AuthComponent::_normalizeURL it seems possible for $paths['base'] to be an empty string. This causes an error in the call to stristr. I no longer get the error,

Re: removing certain columns from automatic joins

2007-08-10 Thread mmahgoub
thanks worked for me! On Aug 7, 7:53 pm, francky06l <[EMAIL PROTECTED]> wrote: > You can define in your model model relation, the fields (using the > "fields" key ie : > > class Customer extends AppModel { > > var $name = 'Customer'; > var $hasMany = array( >

Re: Default Controller View

2007-08-10 Thread 1Marc
I found the solution here: http://bakery.cakephp.org/articles/view/custom-urls-from-the-site-root On Aug 10, 1:27 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > Conventionally no - index is the default action. Rename your default > actions to index. > > Technically - you could fiddle with $this->par

Re: Help with Advanced Installation

2007-08-10 Thread takabanana
Cool - got it working (at least locally). here's my setup: AppServ\www\cake\ AppServ\www\cake\cake\ AppServ\www\cake\docs\ AppServ\www\cake\vendors\ AppServ\www\cake\index.php AppServ\www\acakesite\app\config\ AppServ\www\acakesite\app\controllers\ AppServ\www\acakesite\app\models\ AppServ\www\

Re: Ridiculous User Management Head Melt

2007-08-10 Thread Sonic Baker
Hey Geoff, Thanks very much for the replies. Think I have it all straightened out in my head now. Cheers, Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to

Error Handling in Ajax Forms

2007-08-10 Thread [EMAIL PROTECTED]
What I am trying to do is pretty simple, at least in theory. I have a bunch of product pages, and to add a product to your shopping cart, you must select a color for the product and a quantity. Then, when you hit 'add to cart', the form submits the data, and then updates a mini cart in the sidebar

Re: Auth1.2 component not showing methods.

2007-08-10 Thread Gwoo
the Auth component is not moving anymore --~--~-~--~~~---~--~~ 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

Help visualising relationships

2007-08-10 Thread [EMAIL PROTECTED]
I have two tables - Lettings and Areas - each row in Lettings needs to associate with an Area. Simple enough - each will be assigned manually. The problem is that the rows in Lettings will come and go over time, so to avoid having to redefine the relationship I need to make a join table that will

Re: host free for cake

2007-08-10 Thread daschl
well, you dont need a host running cakePHP you simply need a host who is running php (and some sort of database if you want to use it) as an option, if he also runs mod_rewrite your address bar looks better :) regards, mike On Aug 10, 4:24 pm, tuiBR <[EMAIL PROTECTED]> wrote: > Please, > > some

Re: help for

2007-08-10 Thread [EMAIL PROTECTED]
Oke.. Thx Before. Im Study now.. if i have the problems, i will ask again.. :) On Aug 10, 9:39 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 8/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > Start here: > > > >http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html

Re: Filtering using manually entered values

2007-08-10 Thread mussond
Hey, thanks for the link :) but I'm not using 1.2 :( The project I'm evolved with uses 1.1, hence my use of query in the 1st place. What do you mean a POST action? using php or is it a cake 1.2 function HttpSocket::post? Is there a way to show my dates and send them back to the controller usin

Re: How to use recursive option in Model or in controller?

2007-08-10 Thread Stachu alernikow
Thank you . Now it works fine !! On 8/9/07, Grant Cox <[EMAIL PROTECTED]> wrote: > > > You should use recursive = 2 (0 = just the subcategory, 1 = the > category associaton, 2 = the category's language association). > > You will want to access the language in your view through: > echo $fi

Re: What's the view cache story in cake 1.2?

2007-08-10 Thread Feris Thia
Have you added : var $cacheAction = array( 'Your action/view URL' => secondsofcache ); in your controller ? for example : var $cacheAction = array( 'cat/' => 21600 ); Regards, Feris On 8/10/07, Kimble <[EMAIL PROTECTED]> wrote: > > Im so frustrated! > > I have a lo

Re: Maths

2007-08-10 Thread Gonzalo Servat
On 8/10/07, Unite <[EMAIL PROTECTED]> wrote: > > > I know this isnt really a CakePHP problem but I need help in my logic > mathematically and since most of you reading this are Maths geniuses > heres the question. > > I have a array and want to make each set have the highest value in the > set. (se

Re: Maths

2007-08-10 Thread Pablo Viojo
UhTry [1] Regards, -- Pablo Viojo [EMAIL PROTECTED] http://pviojo.net [1] http://google.com On 8/10/07, Unite <[EMAIL PROTECTED]> wrote: > > I know this isnt really a CakePHP problem but I need help in my logic > mathematically and since most of you reading this are Maths genius

Re: help for

2007-08-10 Thread Chris Hartjes
On 8/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > Start here: > > > > http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html > > > > Part 2 of the tutorial covers what you are looking for. > > > > sory, i must register first for get the tutorial ? I guess IBM wants p

Re: help for

2007-08-10 Thread [EMAIL PROTECTED]
> > Start here: > > http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html > > Part 2 of the tutorial covers what you are looking for. > sory, i must register first for get the tutorial ? --~--~-~--~~~---~--~~ You received this message because you are

Re: Aliasing a model name in a HABTM association

2007-08-10 Thread David
Hmm - no suggestions? Or maybe I should have chosen a different title for this thread... I realised that the problem is exacerbated when you use forms to add/ change data - the html helper doesn't seem to support strings like 'Merchant/0/id', and 'Merchant/id' is of course ambiguous - does it ref

host free for cake

2007-08-10 Thread tuiBR
Please, somebody knows webserver free that run cakephp ? tranks! --~--~-~--~~~---~--~~ 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 fro

Re: help for

2007-08-10 Thread Chris Hartjes
On 8/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > i want call from database, so, what i must do for get that.. > what script in model, controller and view.. > > please i nead help.. Start here: http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html Part 2 of the tutorial c

Re: Cakeforge software

2007-08-10 Thread Daniel Hofstetter
I think GForge (http://gforge.org/) is used. -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ 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@googlegrou

help for

2007-08-10 Thread [EMAIL PROTECTED]
Halo im so confuise, for use it.. im very beginer cakePHP, i need help from u are in here.. before, sory if my english so bad... i have problem, like this.. option1 option2 option3 i want call from database, so, what i must do for get that.. what script in model, controller and view.. please

Re: url with one more '/' at the beging

2007-08-10 Thread Watcher
You probably got something wrong in your view ... To include a css stylesheet you have to use: echo $html->css('nameofcss'); where nameofcss doesn't need the .css or needs to start with a slash, if it does start with a slash you end up with two slashes at the start of the link and offcourse that

Saving phpBB style tags to a database

2007-08-10 Thread Watcher
I'm currently in the process of developing a website for a client who wants to use phpBB style code tags in his newspost to add some bold and italic stuff ... The problem is that when I try to save a newspost to the database, it saves everything but the string just stops at the --~--~-~

Maths

2007-08-10 Thread Unite
I know this isnt really a CakePHP problem but I need help in my logic mathematically and since most of you reading this are Maths geniuses heres the question. I have a array and want to make each set have the highest value in the set. (sets are seperated by 0's) Array ( [0] => 0 [1] => 57

Cakeforge software

2007-08-10 Thread LS
Sorry if is it a little off-topic, but does anyone know what software is running in cakeforge.org? 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

Re: What's the view cache story in cake 1.2?

2007-08-10 Thread Kimble
Im so frustrated! I have a lot of complex views using > 100 queries. I can't publish the site before I can get the view caching stuff working. All configurations are set, tmp directory is writeable, but nothing gets cached! What can I be doing wrong? --~--~-~--~~~---

Re: CAKE_SESSION_STRING - what it's behavior?

2007-08-10 Thread Geoff Ford
Nope size is not an issue here :) Geoff On 8/10/07, phpjoy <[EMAIL PROTECTED]> wrote: > > > so it's size doesn't matter.. means each install i can put a random 10 > letters number, sha256 it and wrap it up? > > > On Aug 10, 8:23 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > > It is a random string

Re: Auth1.2 component not showing methods.

2007-08-10 Thread Dr. Tarique Sani
On 8/10/07, phpjoy <[EMAIL PROTECTED]> wrote: > > everything. > i tried: > $this->Auth->authorize = '*'; This is not a valid option > and: > $this->Auth->authorize = 'controller'; > Ummm this typically goes in your app_controller beforeFilter - there are several ways you can use the auth co

Re: Auth1.2 component not showing methods.

2007-08-10 Thread phpjoy
everything. i tried: $this->Auth->authorize = '*'; and: $this->Auth->authorize = 'controller'; both in the users controller and in the "production controller". On Aug 10, 7:18 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 8/10/07, phpjoy <[EMAIL PROTECTED]> wrote: > > > $this->Auth->us

url with one more '/' at the beging

2007-08-10 Thread Andrea C.
Hello guys... Today I tried to use cake, on pair.com I make one model and controller with a simple view.. but i get some error with css and link With firebug i noticed, in css link there are 2 '/', something like this -> //cake/css/cake.forms.css If i removed a / I get css style! How can i

Re: URLs for multilingual site

2007-08-10 Thread Langdon Stevenson
Hi konraddo It's bad form posting the same question twice. I expect that will upset a few people. The answer to this question however is almost certainly in the group's history already. I remember it being discussed at least once and I believe that mod_rewrite is involved in the answer. Se

URLs for multilingual site

2007-08-10 Thread konraddo
Hello I don't know how can i do url's in my multilingual site like: mywebsite.com/en/controller_name/action_name/param mywebsite.com/de/controller_name/action_name/param if anyone has an idea please help me Thanks In Advance --~--~-~--~~~---~--~~ You received t

Re: Where's bake2.php?

2007-08-10 Thread Daniel Hofstetter
bake2 has been replaced by the new console infrastructure you can find in cake/console -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

URLs like mywebsite.com/eng/controller_name/action_name/param

2007-08-10 Thread konraddo
Hello I don't know how can i do url's in my multilingual site like: mywebsite.com/eng/controller_name/action_name/param mywebsite.com/de/controller_name/action_name/param if anyone have an idea, please help me cakephp ver. 1.2.0.5427alpha --~--~-~--~~~---~--~~

Any documentation on actsAs tree?

2007-08-10 Thread Pieter Claerhout
Hi all, is there any documentation on how you can use the actsAs tree behavior? I'm wondering how you can use this to get e.g. the children of an item, the path to the item and so on. Regards, pieter -- pieter claerhout . [EMAIL PROTECTED] . http://www.yellowduck.be/ --~--~-~--~---

Re: Filtering using manually entered values

2007-08-10 Thread kabturek
Do a POST to the action when the users clicks submit in the form or do this with ajax if you don't want the whole page to be refreshed Also why are you using query ? its only for sql that can't be handled by cake and your's looks pretty basic. Generally you're doing a search box. http://wiki.kab

Re: CAKE_SESSION_STRING - what it's behavior?

2007-08-10 Thread phpjoy
so it's size doesn't matter.. means each install i can put a random 10 letters number, sha256 it and wrap it up? On Aug 10, 8:23 am, Geoff Ford <[EMAIL PROTECTED]> wrote: > It is a random string that should be (near enough to) unique for your > application. It is used to salt hashes, seed rnd()

Re: Between Join producing invalid SQL

2007-08-10 Thread dmorris
Rahul offered the following solutions, but these didn't work either - does anyone have any other suggestions? $conditions['AND']['Target.month'] = "BETWEEN \'$startMonth\' and \'$endMonth\'"; This lead to the following sql, which didn't work SELECT `Target`.`id`, `Target`.`month`, `Target`.`in