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
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
- 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
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
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
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
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
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
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
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
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
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
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(
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
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
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
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
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
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
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
> 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
--~--~-~
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
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
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
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
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
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
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.
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
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
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
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 ?
--~--~-~--~~--
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 <[
__(""); 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
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() {
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
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
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
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 ;)
--~--~-~--~~~
> 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
> >
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
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,
>
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
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
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
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
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
47 matches
Mail list logo