Selected options using selectTag

2007-08-05 Thread [EMAIL PROTECTED]
Is there a way for s generated via the selectTag helper method to be pre-selected in a multiple select list if they exist in a join table? Sorry, that is a dense sentence, let me see if I can explain. I have two models, Product and Color. A product HABTM colors, and colors HABTM products. On the

Re: Linking a HABTM Association to extra data beside the tag?

2007-08-05 Thread Jim Newfer
rtconner, Thank you for the reply. Now I'm not sure you understand me correctly, or I am not sure I understand myself :P. I am aware of this method, filtering a HABTM relationship creating a "dummy" model in the join table. I already have something like this and it works perfectly. What I don't

View this page "Cake Apps/Sites In The Wild"

2007-08-05 Thread Andres Monroy-Hernandez
- added site Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-05 Thread walterbyrd
On Aug 5, 9:09 pm, housebolt <[EMAIL PROTECTED]> wrote: > Check out this tutorial: > > http://cakephp.org/screencasts/view/3 I will have to wait until I'm off my Linux box. Although certainly no "show shopper" it bugs me a bit that an open source project like cake would not be a little more Linu

Re: Cake not working on secondary domain

2007-08-05 Thread Geoff Ford
In the secondary domain in the .htaccss file try this: RewriteEngine on RewriteBase /full/path/to/domain/secondarydomain/cake/ RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] And also try it without the tags. YOu also might need to put it in the other

Re: Using the bakery

2007-08-05 Thread Geoff Ford
The bakery is not a shopping cart application. Have a look at BakeSale http://bakesalehq.com/ Geoff -- http://lemoncake.wordpress.com On Aug 6, 11:31 am, ChOsEn <[EMAIL PROTECTED]> wrote: > I'm new to Cake Php. And i was wonder how to use the bakery to > implement a shopping cart. Any suggestio

Re: Levelling Order

2007-08-05 Thread Geoff Ford
Look into findAllByThreaded() it does what you need without the extra overhead of an association. It requires a parent_id field (rather than parentid) and no other association or anything. Geoff -- http://lemoncake.wordpress.com On Aug 6, 12:37 pm, housebolt <[EMAIL PROTECTED]> wrote: > I believ

Re: Reset problem

2007-08-05 Thread jenson
Hi friend, Here is a solution for ur question my friends,its working for me just include this in ur view thtml file. input('Modelname/clear', array ('type' => 'reset', 'value' => 'Reset'));?> With regards, Jenson .A On Sat, 04 Aug 2007 10:13:10 -, sharath wrote > Hi All, >In my editin

Using the bakery

2007-08-05 Thread ChOsEn
I'm new to Cake Php. And i was wonder how to use the bakery to implement a shopping cart. Any suggestions or ideas?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send emai

Re: problem implementing user - session login system

2007-08-05 Thread housebolt
type in your view and look for something called Config.rand. This sets a unique random identifier in the form of a number, which you can use as a reference in your database. You can access it by typing Session->read('Config.rand'); ? > in your controller. On Aug 5, 5:19 pm, phpcurious <[EMAIL PR

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-05 Thread housebolt
Check out this tutorial: http://cakephp.org/screencasts/view/3 On Aug 5, 3:52 pm, walterbyrd <[EMAIL PROTECTED]> wrote: > I'm still framework shopping. One thing I like about Qcodo is this > inline editing feature: > > http://examples.qcodo.com/examples/dynamic/inline_editing.php > > Is that sor

Re: Help with Advanced Installation

2007-08-05 Thread housebolt
I'm with kabturek on this one. I'd stick with the initial download setup until you learn the ins and outs of cake and its structure. It's simple, just drop the whole download into a folder accessible by your browser, make sure mod_rewrite is on, set up your database.php file in /app/config/ and yo

Re: Levelling Order

2007-08-05 Thread housebolt
I believe you can do it this way: for level 1: $this->Category->findAllByParentId(0, null, 'Category.id ASC'); // Third argument for findallby in your model, in the 'Childnode' array, add 'order'=>'Childnode.name ASC' (or DESC depending on what you want) to the array. var $hasMany = array(

Re: Validation

2007-08-05 Thread pbland
Perfect, that worked! Thanks Abba. --~--~-~--~~~---~--~~ 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 [EMAI

Re: find empty text field & addslashes

2007-08-05 Thread housebolt
You probably have magic_quotes and magic_quotes_gpc set to "ON" in your PHP.ini file. Google "magic_quotes" and "magic_quotes_gpc". On Aug 5, 2:56 am, jyrgen <[EMAIL PROTECTED]> wrote: > hello, > > i'm having problem with slashes being added by cake when > trying to find empty text columns in th

Re: Validation

2007-08-05 Thread abba bryant
try e( $form->input( 'Model.field', array( 'type'=>'password', ... ) ); pbland wrote: > > > I'm also having the same problem in 1.2.0.5427. If in my view I change > form->password to form->input, then the error message displays. How > are people validating passwords and displaying error messa

Model associations problem

2007-08-05 Thread Ruud Gâst
Hello there, I've got a simple construction of two models: users and familymembers; every user belongs to a familymember and a familymember has one user. So the database looks like this: `familymembers` ( `id` int(11) auto_increment, `firstname` varchar(20), `lastname` varchar(100), `gen

Re: problem implementing user - session login system

2007-08-05 Thread phpcurious
Hi, I am also planning to enable HTTPS in the login form in the future... just for security sake... but, making the user session login system must work for now... thanks all for the advice, guyz! On Aug 6, 1:07 am, Vaz <[EMAIL PROTECTED]> wrote: > The way I did it was to save an indicator in th

Re: Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-05 Thread Langdon Stevenson
Hi Walter > I'm still framework shopping. One thing I like about Qcodo is this > inline editing feature: > > http://examples.qcodo.com/examples/dynamic/inline_editing.php > > Is that sort of thing easy to do with CakePHP? It is not an automated process to construct this kind of thing with Cak

Is it reasonably easy to do this sort of inline editing with CakePHP

2007-08-05 Thread walterbyrd
I'm still framework shopping. One thing I like about Qcodo is this inline editing feature: http://examples.qcodo.com/examples/dynamic/inline_editing.php Is that sort of thing easy to do with CakePHP? --~--~-~--~~~---~--~~ You received this message because you ar

Re: Change file paths?

2007-08-05 Thread Jon Bennett
> Well for example for a module based cms it would be nice, as you can > upload new modules and keep them all in the same dir :) I;d look into plugins, they act as mini self contained apps. jb -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett --~--~-~

Re: i18n translation in db tables - how to do this like Symfony?

2007-08-05 Thread Sepulman
Hi, I'm also new cakephp, I'm even new to php, I've used the information in this thread to come up with a (potential) solution for the 'multiple translations without creating a new record' problem. To do this I've combined poLK's example code with yours. A couple pointers; In your update function

Re: Change file paths?

2007-08-05 Thread Mech7
Well for example for a module based cms it would be nice, as you can upload new modules and keep them all in the same dir :) not that it has too.. but i think it looks a bit more tidy, also it is quicker to access files in my editor as the dirs now are a bit far below each other. On Aug 5, 2:00 a

Installing rdBloggery

2007-08-05 Thread slidebay
I am trying to install rdBloggery on localhost to test and to see if it can be integrated in look and feel with my main site... I am working on a WindowsXP machine running XAMPP. Mod_rewrite is not available to me and I am using CakePHp pretty URLs using the routes.php script I have successfully

Re: Validation

2007-08-05 Thread pbland
I'm also having the same problem in 1.2.0.5427. If in my view I change form->password to form->input, then the error message displays. How are people validating passwords and displaying error messages? Thanks, Paul On Jul 18, 7:37 pm, citrus <[EMAIL PROTECTED]> wrote: > I also use Cake 1.2.0.542

Re: how to put one view into another?

2007-08-05 Thread Lokke
You can use requestAction or make your view an element and call renderElement. --~--~-~--~~~---~--~~ 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 unsu

Re: problem implementing user - session login system

2007-08-05 Thread Vaz
The way I did it was to save an indicator in the (web tier) Session object. Most common I have seen is to save the id for that user. Aka: if successful login $this->Session->write('uid', $userid) where userid is the id for the user. The controller should be designed such that if there is a val

Re: cakephp on shared hosted environment

2007-08-05 Thread francky06l
I do same as Baz, the RewriteBase before the RewriteRule. I also had to remove the tags for one on them. On Aug 5, 6:29 pm, Baz <[EMAIL PROTECTED]> wrote: > Usually when I get that error a: > RewriteBase / > > usually clears things up. > > -- > Baz L > Day In The Life of Bazhttp://www.LifeOfBaz.

Re: cakephp on shared hosted environment

2007-08-05 Thread Baz
Usually when I get that error a: RewriteBase / usually clears things up. -- Baz L Day In The Life of Baz http://www.LifeOfBaz.com On 8/5/07, Jon Bennett <[EMAIL PROTECTED]> wrote: > > > > I am actually having the same problem. .htaccess works, but how do I > > remap my /www root to /cake/app/web

Re: Reset problem

2007-08-05 Thread junal
Make sure your reset button inside the "form". On Aug 4, 4:13 pm, sharath <[EMAIL PROTECTED]> wrote: > Hi All, >In my editing form, the fileds are not resetting. > This is my code... > onclick="validation();"> > > Here If I click on reset button, the values are not resetting.. > Is the

Re: i18n and 1.1

2007-08-05 Thread Larry E. Masters aka PhpNut
Just use 1.2 if you plan to do something like this. -- /** * @author Larry E. Masters * @var string $userName * @param string $realName * @returns string aka PhpNut * @access public */ On 8/5/07, nitifixis <[EMAIL PROTECTED]> wrote: > > > Can I "backport" the i18n.php and l10n.php 1.2 libs to 1

Re: i18n and 1.1

2007-08-05 Thread nitifixis
Can I "backport" the i18n.php and l10n.php 1.2 libs to 1.1 ? On Aug 5, 3:09 pm, francky06l <[EMAIL PROTECTED]> wrote: > you need 1.2 > > On Aug 5, 3:03 pm, nitifixis <[EMAIL PROTECTED]> wrote: > > > Does CakePHP 1.1 have i18n support or do I need to use 1.2 for this ? --~--~-~--~~--

Re: i18n and 1.1

2007-08-05 Thread francky06l
No it does not, I did implement something like this for 1.1, but 1.2 is much better. good luck On Aug 5, 4:44 pm, Fran Simó <[EMAIL PROTECTED]> wrote: > __(""); Does'nt work in 1.1? > > On 5 ago, 15:09, francky06l <[EMAIL PROTECTED]> wrote: > > > you need 1.2 > > > On Aug 5, 3:03 pm, nitifixis <[

Re: i18n and 1.1

2007-08-05 Thread Fran Simó
__(""); Does'nt work in 1.1? On 5 ago, 15:09, francky06l <[EMAIL PROTECTED]> wrote: > you need 1.2 > > On Aug 5, 3:03 pm, nitifixis <[EMAIL PROTECTED]> wrote: > > > Does CakePHP 1.1 have i18n support or do I need to use 1.2 for this ? --~--~-~--~~~---~--~~ You re

Re: uploading files

2007-08-05 Thread rtanz
Ok fixed the PEAR problem, now it seems to work without problem, however the file is not being uploaded for some reason. Where should i be adding the upload folder? Am i correct in putting the folder as cake/app/uploads? thanks View: submit('Add');?> Controller: function addfile() {

Re: problem implementing user - session login system

2007-08-05 Thread francky06l
Using database should not make any difference in your code. You can use $this->Session->read('User.id') for example. On Aug 5, 10:40 am, phpcurious <[EMAIL PROTECTED]> wrote: > Hi, > > I am getting frustrated with the session component in cakephp > 1.1.xxx . > I already configured core.php to def

Re: i18n and 1.1

2007-08-05 Thread francky06l
you need 1.2 On Aug 5, 3:03 pm, nitifixis <[EMAIL PROTECTED]> wrote: > Does CakePHP 1.1 have i18n support or do I need to use 1.2 for this ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

i18n and 1.1

2007-08-05 Thread nitifixis
Does CakePHP 1.1 have i18n support or do I need to use 1.2 for this ? --~--~-~--~~~---~--~~ 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

Re: Subdirectory in /webroot/img/

2007-08-05 Thread Pillow
On 5 Sie, 11:55, Preloader <[EMAIL PROTECTED]> wrote: > Hello Pillow, > > I don't think you have to change the .htaccess at all, it should work > from the scratch: You're right. The problem was that file on which I was testing didn't really exist ;) Thx ;) --~--~-~--~~~

Re: cakephp on shared hosted environment

2007-08-05 Thread Jon Bennett
> I am actually having the same problem. .htaccess works, but how do I > remap my /www root to /cake/app/webroot ? I have no idea about servers/ > htaccess files and I think an answer would make a great addition to > the manual. > > My server looks like this > > > home > >> username > >>> cake > >

find empty text field & addslashes

2007-08-05 Thread jyrgen
hello, i'm having problem with slashes being added by cake when trying to find empty text columns in the DB this works fine: (in phpmyadmin) select * from articles where remark != '' it give all articles with "remark" not empty. but this $conditions['Article']['Article.remark'] = "!=''"; is

Re: Subdirectory in /webroot/img/

2007-08-05 Thread Preloader
Hello Pillow, I don't think you have to change the .htaccess at all, it should work from the scratch: image('sub/test.png'); ?> Or directly access the file over the browser: http://mydomain.com/img/sub/test.png Regards, Christoph On 5 Aug., 09:54, Pillow <[EMAIL PROTECTED]> wrote: > Hi, >

Re: cakephp on shared hosted environment

2007-08-05 Thread Feris Thia
Where do you host ? Regards, Feris On 8/5/07, noWookies <[EMAIL PROTECTED]> wrote: > > I am actually having the same problem. .htaccess works, but how do I > remap my /www root to /cake/app/webroot ? I have no idea about servers/ > htaccess files and I think an answer would make a great additio

problem implementing user - session login system

2007-08-05 Thread phpcurious
Hi, I am getting frustrated with the session component in cakephp 1.1.xxx . I already configured core.php to define('CAKE_SESSION_SAVE', 'database'); but how do i retrieve current session to check if current session is still active ? by using $this->cake_session->findAll($id) ? how do i get the

Re: cakephp on shared hosted environment

2007-08-05 Thread noWookies
I am actually having the same problem. .htaccess works, but how do I remap my /www root to /cake/app/webroot ? I have no idea about servers/ htaccess files and I think an answer would make a great addition to the manual. My server looks like this > home >> username >>> cake webroot > ap

Re: cakephp on shared hosted environment

2007-08-05 Thread noWookies
On Aug 5, 3:41 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 8/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Long story short, I have cake running locally fine, but on my shared > > hosting environment Im getting 500 internal server errors. > > The most likely IMO is mod_rewr

Subdirectory in /webroot/img/

2007-08-05 Thread Pillow
Hi, I'm trying to do subdirectory in my /webroot/img/. And my question is how should my /webroot/.htaccces (or /webroot/img/ subdirectory/.htaccess ?) file look like? What I want is of course that I can access my images through http://example.com/img/subdirectory/some_file.jpg Thanks in advanc